Click or drag to resize
AbstractMachineTranslationProviderLanguageDirection Class
Implements an abstract base class for machine translation providers, and provides overridable default implementations for the most common properties and methods of ITranslationProviderLanguageDirection.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemoryApiAbstractMachineTranslationProviderLanguageDirection

Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
Syntax
public abstract class AbstractMachineTranslationProviderLanguageDirection : ISubsegmentTranslationMemoryLanguageDirection, 
	ITranslationProviderLanguageDirection

The AbstractMachineTranslationProviderLanguageDirection type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCanReverseLanguageDirection
See CanReverseLanguageDirection. The default implementation returns false.
Public propertyLanguageDirection
Gets the current language direction of this instance.
Public propertySourceLanguage
Gets the source language.
Public propertySourceLanguageCode
Gets the source language code.
Public propertyTargetLanguage
Gets the target language.
Public propertyTargetLanguageCode
Gets the target language code.
Public propertyTranslationProvider
The translation provider to which this language direction belongs.
Top
Methods
  NameDescription
Public methodAddOrUpdateTranslationUnits
Public methodAddOrUpdateTranslationUnitsMasked
Public methodAddTranslationUnit
See AddTranslationUnit(TranslationUnit, ImportSettings). The default implementation simply returns null.
Public methodAddTranslationUnits
Public methodAddTranslationUnitsMasked
Protected methodCheckSettings
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.
Protected methodCreateSearchResult
Creates a search result from a pair of source and target language segments.
Protected methodCreateSearchResultFromTranslation
Creates a result from the given source and translation segments.
Protected methodCreateSearchResultsFromTranslations
Creates search results for the specified list of source segments and their translations.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSearchMultipleSegmentsInternal
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).

Public methodSearchSegment(SearchSettings, Segment)
See SearchSegment(SearchSettings, Segment). The default implementation validates the settings and then call SearchSingleSegmentInternal(SearchSettings, Segment) to obtain the result.
Public methodSearchSegment(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment)
Public methodSearchSegments(SearchSettings, Segment)
Public methodSearchSegments(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment)
Public methodSearchSegmentsMasked(SearchSettings, Segment, Boolean)
Public methodSearchSegmentsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment, Boolean)
Protected methodSearchSingleSegmentInternal
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).

Public methodSearchText
See SearchText(SearchSettings, String). The default implementation creates a new segment from the provided segment and calls SearchSingleSegmentInternal(SearchSettings, Segment) to obtain the result.
Public methodSearchTranslationUnit(SearchSettings, TranslationUnit)
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.

Public methodSearchTranslationUnit(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit)
Public methodSearchTranslationUnits(SearchSettings, TranslationUnit)
Public methodSearchTranslationUnits(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit)
Public methodSearchTranslationUnitsMasked(SearchSettings, TranslationUnit, Boolean)
Public methodSearchTranslationUnitsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit, Boolean)
Public methodSubsegmentSearchSegment
See SubsegmentSearchSegment(SubsegmentSearchSettings, Segment). The default implementation simply returns null.
Public methodSubsegmentSearchSegments
Public methodSupportedSubsegmentMatchTypes
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTranslate(Segment)
A convenience method which returns a single translation for the input segment, using default settings.
Public methodTranslate(String)
A convenience method which returns a single translation for the input string, using default settings.
Public methodUpdateTranslationUnit
See UpdateTranslationUnit(TranslationUnit). The default implementation simply returns null.
Public methodUpdateTranslationUnits
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments