| ServerBasedTranslationMemoryLanguageDirectionGetDuplicateTranslationUnits Method |
Returns a set of potentially duplicated translation units in the TM, using a special
DuplicateIterator. A group of TUs are considered potential duplicates
of each other if the internal hash values for their source segments are identical.
There may be several reasons for this being the case:
- The TUs have the same source segment, but different translations
- The TUs have different source segments, but only differ in complex
tokens (controlled through the TM's Recognizers) which will result in
the identical hash values,
- The source segments only differ by whitespace or certain punctuation, which do not
modify the hash values,
- The hashing algorithm leads to collisions in which case the segments may be
entirely different, but still result in the same hash value.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntaxpublic TranslationUnit[] GetDuplicateTranslationUnits(
ref DuplicateIterator iterator
)
Public Function GetDuplicateTranslationUnits (
ByRef iterator As DuplicateIterator
) As TranslationUnit()
public:
virtual array<TranslationUnit^>^ GetDuplicateTranslationUnits(
DuplicateIterator^% iterator
) sealed
abstract GetDuplicateTranslationUnits :
iterator : DuplicateIterator byref -> TranslationUnit[]
override GetDuplicateTranslationUnits :
iterator : DuplicateIterator byref -> TranslationUnit[] Parameters
- iterator
- Type: Sdl.LanguagePlatform.TranslationMemoryDuplicateIterator
The iterator to use
Return Value
Type:
TranslationUnit
The translation units which are potential duplicates, or null if no
more potential duplicates can be found.
Implements
ITranslationMemoryLanguageDirectionGetDuplicateTranslationUnits(DuplicateIterator)
See Also
Comments