Example #1
0
 public ParagraphMap(TokenSelector selector, string text, IEnumerable <PotencialSentenceEnd> sentenceEndPositions)
 {
     _tokenSelector        = selector;
     Text                  = text;
     _sentenceEndPositions = new List <PotencialSentenceEnd>(sentenceEndPositions);
     _initialPoints        = new List <int>();
 }
Example #2
0
        public TextParser(string path)
        {
            var tokenSelector = new TokenSelector(path);

            _paragraphSelector = new ParagraphSelector(tokenSelector);
            _sentenceSelector  = new SentenceSelector(tokenSelector);
            IsMultiThreaded    = true;
        }
 public SentenceSelector(TokenSelector selector)
 {
     _tokenSelector = selector;
 }
Example #4
0
 public ParagraphSelector(TokenSelector selector)
 {
     _tokenSelector = selector;
 }