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 |
---|---|---|
TranslationUnit | tmTu | The translation unit found by the search operation. |
System.Int16 | matchTokenIndex | The index of the token in the match segment where the subsegment match fragment starts |
System.Int16 | matchTokenCount | The number of tokens in the match |
System.Int16 | queryTokenIndex | |
System.Int16 | queryTokenCount | |
System.Int16 | translationTokenIndex | |
System.Int16 | translationTokenCount | |
SubsegmentMatchType | matchType | The type of subsegment match |
System.String | translationFeatureString | |
System.Single | confidence |
Properties
CachedTranslationProposalString
Declaration
public string CachedTranslationProposalString { get; }
Property Value
Type | Description |
---|---|
System.String |
Confidence
Declaration
public float Confidence { get; }
Property Value
Type | Description |
---|---|
System.Single |
MatchTokenCount
The number of tokens in the match fragment
Declaration
public short MatchTokenCount { get; }
Property Value
Type | Description |
---|---|
System.Int16 |
MatchTokenIndex
The index of the token in the match segment (i.e.SourceSegment in TranslationProposal where the subsegment match fragment starts
Declaration
public short MatchTokenIndex { get; }
Property Value
Type | Description |
---|---|
System.Int16 |
MatchType
The type of subsegment match
Declaration
public SubsegmentMatchType MatchType { get; }
Property Value
Type | Description |
---|---|
SubsegmentMatchType |
QueryTokenCount
The number of tokens in the query fragment
Declaration
public short QueryTokenCount { get; }
Property Value
Type | Description |
---|---|
System.Int16 |
QueryTokenIndex
The index of the token in the query segment (i.e. SourceSegment) where the subsegment match fragment starts
Declaration
public short QueryTokenIndex { get; }
Property Value
Type | Description |
---|---|
System.Int16 |
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.Int32 |
TranslationFeatureString
Declaration
public string TranslationFeatureString { get; }
Property Value
Type | Description |
---|---|
System.String |
TranslationTokenCount
The number of tokens in the translation fragment
Declaration
public short TranslationTokenCount { get; }
Property Value
Type | Description |
---|---|
System.Int16 |
TranslationTokenIndex
The index of the token in the translation segment (i.e.TargetSegment in TranslationProposal where the subsegment translation fragment starts
Declaration
public short TranslationTokenIndex { get; }
Property Value
Type | Description |
---|---|
System.Int16 |