public void Reset() { AppLanguage = Enumerators.Language.NONE; LastSelectedDeckId = -1; OpenedFirstPack = false; CurrentTutorialId = 0; }
public void ClassifyText(string text, Enumerators.Language lang) { _gcNaturalLanguage.Annotate(new ClassifyTextRequest() { document = new LocalDocument() { content = text, language = _gcNaturalLanguage.PrepareLanguage(lang), type = Enumerators.DocumentType.PLAIN_TEXT }, }); }
public void SetLanguage(Enumerators.Language language, bool forceUpdate = false) { if (language == CurrentLanguage && !forceUpdate) { return; } CurrentLanguage = language; _dataManager.CachedUserLocalData.AppLanguage = language; LanguageWasChangedEvent?.Invoke(CurrentLanguage); }
public void AnalyzeSyntax(string text, Enumerators.Language lang) { _gcNaturalLanguage.Annotate(new AnalyzeSyntaxRequest() { encodingType = Enumerators.EncodingType.UTF8, document = new LocalDocument() { content = text, language = _gcNaturalLanguage.PrepareLanguage(lang), type = Enumerators.DocumentType.PLAIN_TEXT } }); }
public void SetLanguage(Enumerators.Language language, bool forceUpdate = false) { if (language == CurrentLanguage && !forceUpdate) { return; } string languageCode = language.ToString().ToLower(); I2.Loc.LocalizationManager.SetLanguageAndCode(I2.Loc.LocalizationManager.GetLanguageFromCode(languageCode), languageCode); _currentLanguage = language; _dataManager.UserSave.AppLanguage = language; LanguageWasChangedEvent?.Invoke(_currentLanguage); }
public void AnalyzeEntities(string text, Enumerators.Language lang) { _gcNaturalLanguage.Annotate(new AnnotateTextRequest() { encodingType = Enumerators.EncodingType.UTF8, features = new Features { extractEntities = true, extractEntitySentiment = true, extractSyntax = true }, document = new LocalDocument() { content = text, language = _gcNaturalLanguage.PrepareLanguage(lang), type = Enumerators.DocumentType.PLAIN_TEXT } }); }
public void SetLanguage(Enumerators.Language language) { this.language = language; }
public string PrepareLanguage(Enumerators.Language lang) { return(lang.ToString().Replace("_", "-")); }
public string PrepareLanguage(Enumerators.Language lang) { return(_naturalLanguagenManager.PrepareLanguage(lang)); }
private void LanguageWasChangedEventHandler(Enumerators.Language obj) { UpdateLocalization(); }