Class SubsegmentSearchResults
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SubsegmentSearchResults : IEnumerable<SubsegmentSearchResult>, IEnumerable
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
Constructors
SubsegmentSearchResults(Int16, Int16, Int16)
Initializes a new instance
Declaration
public SubsegmentSearchResults(short sourceFeatureStartIndex, short sourceFeatureCount, short significantFeatureCount)
Parameters
Type | Name | Description |
---|---|---|
Int16 | sourceFeatureStartIndex | |
Int16 | sourceFeatureCount | |
Int16 | significantFeatureCount |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
Properties
Count
Gets the number of results in this instance.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
SignificantFeatureCount
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Declaration
public short SignificantFeatureCount { get; }
Property Value
Type | Description |
---|---|
Int16 |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
SourceFeatureCount
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Declaration
public short SourceFeatureCount { get; }
Property Value
Type | Description |
---|---|
Int16 |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
SourceFeatureStartIndex
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Declaration
public short SourceFeatureStartIndex { get; }
Property Value
Type | Description |
---|---|
Int16 |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
Methods
Add(SubsegmentSearchResult)
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Declaration
public void Add(SubsegmentSearchResult result)
Parameters
Type | Name | Description |
---|---|---|
SubsegmentSearchResult | result |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
Remove(SubsegmentSearchResult)
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Declaration
public void Remove(SubsegmentSearchResult result)
Parameters
Type | Name | Description |
---|---|---|
SubsegmentSearchResult | result |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
RemoveAll(Func<SubsegmentSearchResult, Boolean>)
Removes all the elements that match the condition defined by the specified predicate
Declaration
public int RemoveAll(Func<SubsegmentSearchResult, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<SubsegmentSearchResult, Boolean> | predicate | the predicate to use |
Returns
Type | Description |
---|---|
Int32 |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
Explicit Interface Implementations
IEnumerable<SubsegmentSearchResult>.GetEnumerator()
Returns an enumerator to iterate through the list of search results.
Declaration
IEnumerator<SubsegmentSearchResult> IEnumerable<SubsegmentSearchResult>.GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<SubsegmentSearchResult> |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.
IEnumerable.GetEnumerator()
Returns an enumerator to iterate through the list of search results.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |
Remarks
Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.