Class SubsegmentSearchResult
Provides details of a subsegment match found for a fragment of the query segment.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SubsegmentSearchResult : SearchResult
Constructors
SubsegmentSearchResult(TranslationUnit, Int16, Int16, Int16, Int16, Int16, Int16, SubsegmentMatchType, String, Single)
Initializes a new instance of the SubsegmentSearchResult class.
Declaration
public SubsegmentSearchResult(TranslationUnit tmTu, short matchTokenIndex, short matchTokenCount, short queryTokenIndex, short queryTokenCount, short translationTokenIndex, short translationTokenCount, SubsegmentMatchType matchType, string translationFeatureString, float confidence)
Parameters
Type | Name | Description |
---|---|---|
Translation |
tmTu | The translation unit found by the search operation. |
System. |
matchTokenIndex | The index of the token in the match segment where the subsegment match fragment starts |
System. |
matchTokenCount | The number of tokens in the match |
System. |
queryTokenIndex | |
System. |
queryTokenCount | |
System. |
translationTokenIndex | |
System. |
translationTokenCount | |
Subsegment |
matchType | The type of subsegment match |
System. |
translationFeatureString | |
System. |
confidence |
Properties
CachedTranslationProposalString
Declaration
public string CachedTranslationProposalString { get; }
Property Value
Type | Description |
---|---|
System. |
Confidence
Declaration
public float Confidence { get; }
Property Value
Type | Description |
---|---|
System. |
MatchTokenCount
The number of tokens in the match fragment
Declaration
public short MatchTokenCount { get; }
Property Value
Type | Description |
---|---|
System. |
MatchTokenIndex
The index of the token in the match segment (i.e.Source
Declaration
public short MatchTokenIndex { get; }
Property Value
Type | Description |
---|---|
System. |
MatchType
The type of subsegment match
Declaration
public SubsegmentMatchType MatchType { get; }
Property Value
Type | Description |
---|---|
Subsegment |
QueryTokenCount
The number of tokens in the query fragment
Declaration
public short QueryTokenCount { get; }
Property Value
Type | Description |
---|---|
System. |
QueryTokenIndex
The index of the token in the query segment (i.e. Source
Declaration
public short QueryTokenIndex { get; }
Property Value
Type | Description |
---|---|
System. |
Repetitions
The number of times this translation fragment was found while subsegment matching the query
Declaration
public int Repetitions { get; set; }
Property Value
Type | Description |
---|---|
System. |
TranslationFeatureString
Declaration
public string TranslationFeatureString { get; }
Property Value
Type | Description |
---|---|
System. |
TranslationTokenCount
The number of tokens in the translation fragment
Declaration
public short TranslationTokenCount { get; }
Property Value
Type | Description |
---|---|
System. |
TranslationTokenIndex
The index of the token in the translation segment (i.e.Target
Declaration
public short TranslationTokenIndex { get; }
Property Value
Type | Description |
---|---|
System. |