C# Class OpenNMT.OpenNmtProvider

Inheritance: ITranslationProvider
Mostrar archivo Open project: OpenNMT/Plugins Class Usage Examples

Public Properties

Property Type Description
ListTranslationProviderScheme string

Public Methods

Method Description
GetLanguageDirection ( LanguagePair languageDirection ) : ITranslationProviderLanguageDirection
LoadState ( string translationProviderState ) : void
OpenNmtProvider ( OpenNMT.OpenNMTTranslationOptions options ) : System
RefreshStatusInfo ( ) : void
SerializeState ( ) : string
SupportsLanguageDirection ( LanguagePair languageDirection ) : bool

Determines the language direction of the delimited list file by reading the first line. Based upon this information it is determined whether the plug-in supports the language pair that was selected by the user.

Method Details

GetLanguageDirection() public method

public GetLanguageDirection ( LanguagePair languageDirection ) : ITranslationProviderLanguageDirection
languageDirection LanguagePair
return ITranslationProviderLanguageDirection

LoadState() public method

public LoadState ( string translationProviderState ) : void
translationProviderState string
return void

OpenNmtProvider() public method

public OpenNmtProvider ( OpenNMT.OpenNMTTranslationOptions options ) : System
options OpenNMT.OpenNMTTranslationOptions
return System

RefreshStatusInfo() public method

public RefreshStatusInfo ( ) : void
return void

SerializeState() public method

public SerializeState ( ) : string
return string

SupportsLanguageDirection() public method

Determines the language direction of the delimited list file by reading the first line. Based upon this information it is determined whether the plug-in supports the language pair that was selected by the user.
public SupportsLanguageDirection ( LanguagePair languageDirection ) : bool
languageDirection LanguagePair
return bool

Property Details

ListTranslationProviderScheme public_oe static_oe property

This string needs to be a unique value. This is the string that precedes the plug-in URI.
public static string ListTranslationProviderScheme
return string