stanfordnlp / CoreNLP

CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
http://stanfordnlp.github.io/CoreNLP/
GNU General Public License v3.0
9.69k stars 2.7k forks source link

SUTime sample does not work #40

Closed sergey-tihon closed 9 years ago

sergey-tihon commented 9 years ago

Example of SUTime usage on the site has following line

pipeline.addAnnotator(new PTBTokenizerAnnotator(false));

but I cannot find class PTBTokenizerAnnotator in source code of version 3.5.0

Could you please provide correct example?

AngledLuffa commented 9 years ago

Need to import that module

import edu.stanford.nlp.pipeline.PTBTokenizerAnnotator;

On Tue, Dec 2, 2014 at 11:20 PM, Sergey Tihon notifications@github.com wrote:

Example of SUTime usage on the site http://pipeline.addAnnotator(new%20PTBTokenizerAnnotator(false)); has following line

pipeline.addAnnotator(new PTBTokenizerAnnotator(false));

but I cannot find class PTBTokenizerAnnotator in source code of version 3.5.0

Could you please provide correct example?

— Reply to this email directly or view it on GitHub https://github.com/stanfordnlp/CoreNLP/issues/40.

sergey-tihon commented 9 years ago

The problem is that PTBTokenizerAnnotator module\file does not exist since 3.4.1 image

AngledLuffa commented 9 years ago

Right, now I remember. That was changed to just be TokenizerAnnotator now. I will look into fixing the sample to reflect that change. On Dec 3, 2014 1:28 AM, "Sergey Tihon" notifications@github.com wrote:

The problem is that this module\file does not exist since 3.4.1 [image: image] https://cloud.githubusercontent.com/assets/1197905/5278197/c6e82a9c-7ae7-11e4-955d-991017e9946c.png

— Reply to this email directly or view it on GitHub https://github.com/stanfordnlp/CoreNLP/issues/40#issuecomment-65377954.

sergey-tihon commented 9 years ago

Thanks!