public TermInjectorTranslationProviderElementTermReplacementVisitor( TermInjectorTranslationOptions options) { _options = options; _segment = new Segment(); //Create a new trie processor _trieProcessor = new TrieProcessing(); //Initialize the dictionary which will contain the positions and translations //of terms _positionAndTranslationOfTerms = new List <PositionAndTranslation>(); }
public TermInjectorTranslationProviderElementTermExtractionVisitor( TermInjectorTranslationOptions options, Trie glossaryTrie, RegexTrie <TranslationAndReplacement> regexTrie) { _options = options; _trieProcessor = new TrieProcessing(); _trie = glossaryTrie; //Initialize the regex trie _regexTrie = regexTrie; _TermList = new List <PositionAndTranslation>(); }
public TermInjectorTranslationProviderElementTermReplacementVisitor( TermInjectorTranslationOptions options, Trie glossaryTrie, RegexTrie <TranslationAndReplacement> regexTrie) { _options = options; _segment = new Segment(); //Initialize the glossary trie _trie = glossaryTrie; //Initialize the regex trie _regexTrie = regexTrie; //Create a new trie processor _trieProcessor = new TrieProcessing(); //Initialize the dictionary which will contain the positions and translations //of terms _positionAndTranslationOfTerms = new List <PositionAndTranslation>(); //Boolean for indicating whether the original segment has been changed _originalSegmentChanged = false; }