0

I am new to NLP.

I am trying to import: edu.stanford.nlp.ling.CoreAnnotations.OriginalTextAnnotation, but I am getting the following error:

The import edu.stanford.nlp.ling.CoreAnnotations.OriginalTextAnnotation cannot be resolved

Please let me know which jar file I should use.

Maciej Lach
  • 1,622
  • 3
  • 20
  • 27
Rookie
  • 1
  • 1

2 Answers2

1
<dependency>
    <groupId>edu.stanford.nlp</groupId>
    <artifactId>stanford-corenlp</artifactId>
    <version>3.5.2</version>
</dependency>

Or directly from here

Jan
  • 13,738
  • 3
  • 30
  • 55
0
  1. Download the stanford nlp zip and extract it
  2. Add the jar to your project as library

To Add jar as library in Eclipse go to How to import a jar in Eclipse
To Add jar as library in Netbeans go to How to use .jar files in NetBeans?

Community
  • 1
  • 1
Ashraful Islam
  • 12,470
  • 3
  • 32
  • 53