| AbstractMachineTranslationProviderLanguageDirectionSearchSingleSegmentInternal Method |
Obtains the translation for a single segment from the machine translation service and
returns it in the
TranslationProposal field of
a
SearchResults. Obtaining the translation may be through a round-trip
to the server.
This method is abstract and must be implemented by derived classes.
To create a search result from a segment, you can use CreateSearchResult(Segment, Segment).
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntaxprotected abstract SearchResults SearchSingleSegmentInternal(
SearchSettings settings,
Segment segment
)
Protected MustOverride Function SearchSingleSegmentInternal (
settings As SearchSettings,
segment As Segment
) As SearchResults
protected:
virtual SearchResults^ SearchSingleSegmentInternal(
SearchSettings^ settings,
Segment^ segment
) abstract
abstract SearchSingleSegmentInternal :
settings : SearchSettings *
segment : Segment -> SearchResults
Parameters
- settings
- Type: Sdl.LanguagePlatform.TranslationMemorySearchSettings
The search settings to apply - segment
- Type: Sdl.LanguagePlatform.CoreSegment
The segment to translate (must not be null)
Return Value
Type:
SearchResultsA
SearchResults data structure if the translation was
successful, and
null otherwise.
See Also
Comments