Search Results for

    Show / Hide Table of Contents

    Class SubsegmentSearchResult

    Encapsulates the result of a search operation, a memory translation unit, possiby annotated with score, placeables and context information.

    Inheritance
    object
    SearchResult
    SubsegmentSearchResult
    Inherited Members
    SearchResult.ScoringResult
    SearchResult.MemoryPlaceables
    SearchResult.PlaceableAssociations
    SearchResult.MemoryTranslationUnit
    SearchResult.TranslationProposal
    SearchResult.ContextData
    SearchResult.CascadeEntryIndex
    SearchResult.MatchingPlaceholderTokens
    SearchResult.MetaData
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public class SubsegmentSearchResult : SearchResult

    Constructors

    SubsegmentSearchResult(TranslationUnit, short, short, short, short, short, short, SubsegmentMatchType, string, float)

    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.

    short matchTokenIndex

    The index of the token in the match segment where the subsegment match fragment starts

    short matchTokenCount

    The number of tokens in the match

    short queryTokenIndex
    short queryTokenCount
    short translationTokenIndex
    short translationTokenCount
    SubsegmentMatchType matchType

    The type of subsegment match

    string translationFeatureString
    float confidence

    Properties

    CachedTranslationProposalString

    Declaration
    public string CachedTranslationProposalString { get; }
    Property Value
    Type Description
    string

    Confidence

    Declaration
    public float Confidence { get; }
    Property Value
    Type Description
    float

    MatchTokenCount

    The number of tokens in the match fragment

    Declaration
    [DataMember]
    public short MatchTokenCount { get; }
    Property Value
    Type Description
    short

    MatchTokenIndex

    The index of the token in the match segment (i.e.SourceSegment in TranslationProposal where the subsegment match fragment starts

    Declaration
    [DataMember]
    public short MatchTokenIndex { get; }
    Property Value
    Type Description
    short

    MatchType

    The type of subsegment match

    Declaration
    [DataMember]
    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
    short

    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
    short

    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
    int

    TranslationFeatureString

    Declaration
    public string TranslationFeatureString { get; }
    Property Value
    Type Description
    string

    TranslationTokenCount

    The number of tokens in the translation fragment

    Declaration
    [DataMember]
    public short TranslationTokenCount { get; }
    Property Value
    Type Description
    short

    TranslationTokenIndex

    The index of the token in the translation segment (i.e.TargetSegment in TranslationProposal where the subsegment translation fragment starts

    Declaration
    [DataMember]
    public short TranslationTokenIndex { get; }
    Property Value
    Type Description
    short
    In this article
    • Constructors
      • SubsegmentSearchResult(TranslationUnit, short, short, short, short, short, short, SubsegmentMatchType, string, float)
    • Properties
      • CachedTranslationProposalString
      • Confidence
      • MatchTokenCount
      • MatchTokenIndex
      • MatchType
      • QueryTokenCount
      • QueryTokenIndex
      • Repetitions
      • TranslationFeatureString
      • TranslationTokenCount
      • TranslationTokenIndex
    Back to top Generated by DocFX