C# Class OpenNMT.OpenNmtProvider

Inheritance: ITranslationProvider
Afficher le fichier Open project: OpenNMT/Plugins Class Usage Examples

Méthodes publiques

Свойство Type Description
ListTranslationProviderScheme string

Méthodes publiques

Méthode 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 méthode

public GetLanguageDirection ( LanguagePair languageDirection ) : ITranslationProviderLanguageDirection
languageDirection LanguagePair
Résultat ITranslationProviderLanguageDirection

LoadState() public méthode

public LoadState ( string translationProviderState ) : void
translationProviderState string
Résultat void

OpenNmtProvider() public méthode

public OpenNmtProvider ( OpenNMT.OpenNMTTranslationOptions options ) : System
options OpenNMT.OpenNMTTranslationOptions
Résultat System

RefreshStatusInfo() public méthode

public RefreshStatusInfo ( ) : void
Résultat void

SerializeState() public méthode

public SerializeState ( ) : string
Résultat string

SupportsLanguageDirection() public méthode

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
Résultat 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
Résultat string