| AbstractMachineTranslationProviderLanguageDirection Methods |
The AbstractMachineTranslationProviderLanguageDirection type exposes the following members.
| Name | Description | |
|---|---|---|
| AddOrUpdateTranslationUnits |
See AddOrUpdateTranslationUnits(TranslationUnit, Int32, ImportSettings). The default implementation
simply returns null.
| |
| AddOrUpdateTranslationUnitsMasked |
See AddOrUpdateTranslationUnitsMasked(TranslationUnit, Int32, ImportSettings, Boolean). The default implementation
simply returns null.
| |
| AddTranslationUnit |
See AddTranslationUnit(TranslationUnit, ImportSettings). The default implementation
simply returns null.
| |
| AddTranslationUnits |
See AddTranslationUnits(TranslationUnit, ImportSettings). The default implementation
simply returns null.
| |
| AddTranslationUnitsMasked |
See AddTranslationUnitsMasked(TranslationUnit, ImportSettings, Boolean). The default implementation
simply returns null.
| |
| CheckSettings |
Verifies that the search settings are correct, and throws an exception if not. The
default implementation will check on null, and whether the search mode
is consistent with an MT provider.
| |
| CreateSearchResult |
Creates a search result from a pair of source and target language segments.
| |
| CreateSearchResultFromTranslation |
Creates a result from the given source and translation segments.
| |
| CreateSearchResultsFromTranslations |
Creates search results for the specified list of source segments and their translations.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SearchMultipleSegmentsInternal |
Obtains the translation for a set of segments from the machine translation service and
returns it in the TranslationProposal field of
a SearchResults collection. Obtaining the translation should, but does
not have to, result in only a single server round-trip.
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). | |
| SearchSegment |
See SearchSegment(SearchSettings, Segment). The default implementation
validates the settings and then call SearchSingleSegmentInternal(SearchSettings, Segment) to
obtain the result.
| |
| SearchSegments |
See SearchSegments(SearchSettings, Segment). The default implementation
validates the settings and then call SearchMultipleSegmentsInternal(SearchSettings, IListSegment) to
obtain the result.
| |
| SearchSegmentsMasked |
See SearchSegmentsMasked(SearchSettings, Segment, Boolean). The default implementation
collects the non-masked segments and calls SearchMultipleSegmentsInternal(SearchSettings, IListSegment) to
obtain the result.
| |
| SearchSingleSegmentInternal |
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). | |
| SearchText |
See SearchText(SearchSettings, String). The default implementation
creates a new segment from the provided segment and calls
SearchSingleSegmentInternal(SearchSettings, Segment) to obtain the result.
| |
| SearchTranslationUnit |
See SearchTranslationUnit(SearchSettings, TranslationUnit). The default implementation
returns SearchSegment(SearchSettings, Segment), called for the source segment of translationUnit.
Note that a result is computed and returned although SupportsSearchForTranslationUnits is false by default. | |
| SearchTranslationUnits |
See SearchTranslationUnits(SearchSettings, TranslationUnit). The default implementation
collects the source segment of the provided translation units and then calls
SearchSegments(SearchSettings, Segment) to obtain the result.
| |
| SearchTranslationUnitsMasked |
See SearchTranslationUnitsMasked(SearchSettings, TranslationUnit, Boolean). The default implementation
collects the source segments of the translation units and then calls
SearchSegmentsMasked(SearchSettings, Segment, Boolean) to obtain the result.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Translate(String) |
A convenience method which returns a single translation for the input string, using
default settings.
| |
| Translate(Segment) |
A convenience method which returns a single translation for the input segment, using
default settings.
| |
| UpdateTranslationUnit |
See UpdateTranslationUnit(TranslationUnit). The default implementation
simply returns null.
| |
| UpdateTranslationUnits |
See UpdateTranslationUnits(TranslationUnit). The default implementation
simply returns null.
|