File tree 2 files changed +14
-1
lines changed
examples/sample-maven-project
src/edu/stanford/nlp/pipeline
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ This is an example Maven project with Stanford CoreNLP as a dependency.
2
+
3
+ Make sure to set the RAM with this command:
4
+
5
+ export MAVEN_OPTS="-Xmx14000m"
6
+
7
+ You can build the project with this command:
8
+
9
+ mvn compile
10
+
11
+ You can run example demos with a command like this:
12
+
13
+ mvn exec:java -Dexec.mainClass="edu.stanford.nlp.StanfordCoreNLPEnglishTestApp"
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ else if (granularity.equals("coarse"))
90
90
sourceNERTagClass = CoreAnnotations .NamedEntityTagAnnotation .class ;
91
91
// switch tags
92
92
for (CoreLabel token : tokens ) {
93
- if (!"" . equals ( token .get (sourceNERTagClass )) && token .get (sourceNERTagClass ) != null )
93
+ if (!token .get (sourceNERTagClass ). equals ( "" ) && token .get (sourceNERTagClass ) != null )
94
94
token .set (CoreAnnotations .NamedEntityTagAnnotation .class , token .get (sourceNERTagClass ));
95
95
}
96
96
}
You can’t perform that action at this time.
0 commit comments