Exemplo n.º 1
0
 /// <summary>
 /// Creates a new <see cref="OpenNLPTokenizer"/> </summary>
 public OpenNLPTokenizer(TextReader reader, NLPSentenceDetectorOp sentenceOp, NLPTokenizerOp tokenizerOp) // LUCENENET 4.8.0 specific overload to default AttributeFactory
     : this(AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY, reader, sentenceOp, tokenizerOp)
 {
 }
Exemplo n.º 2
0
        private readonly NLPSentenceDetectorOp sentenceOp; // LUCENENET: marked readonly

        public OpenNLPSentenceBreakIterator(NLPSentenceDetectorOp sentenceOp)
        {
            this.sentenceOp = sentenceOp;
        }