Skip to content

Commit e881884

Browse files
committed
merged
2 parents 10de86a + 0cee773 commit e881884

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

ner/config/ner-ontonotes.properties

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# If this matches the default names NER_CONLL or NER_ONTONOTES the labelTypes parameter doesn't have to be set
2-
modelName = OntoNotes
2+
modelName = OntoNotes-myonto
33

44
# A space-separated list of labels the model should predict
55
#labelTypes = PER ORG LOC MISC
66

77
# A path to the modes files. During training this will be the location where the models are stored.
88
# During testing this parameter can point to either a classpath or a local directory.
9-
pathToModelFile = ner/models
9+
pathToModelFile = ner/models-myonto
10+
11+
GazetteersFeatures = 0
12+
PredictionsLevel1 = 0
13+

ner/config/ner.properties

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# If this matches the default names NER_CONLL or NER_ONTONOTES the labelTypes parameter doesn't have to be set
2-
modelName = CoNLL
2+
modelName = CoNLLMINE
33

44
# A space-separated list of labels the model should predict
55
#labelTypes = PER ORG LOC MISC
66

77
# A path to the model files. During training this will be the location where the models are stored.
88
# During testing this parameter can point to either a classpath or a local directory.
9-
pathToModelFile = ner/models
9+
pathToModelFile = ner/models-conll
10+
11+
GazetteersFeatures = 0
12+
PredictionsLevel1 = 0
13+
BrownClusterPaths = 0

ner/scripts/annotate.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ done
6161
for JAR in `ls $LIB/*jar`; do
6262
cpath="$cpath:$JAR"
6363
done
64-
65-
CMD="java -classpath ${cpath} -Xmx12g edu.illinois.cs.cogcomp.ner.NerTagger -annotate $input $output -c $configFile"
64+
va -classpath ${cpath} -Xmx12g edu.illinois.cs.cogcomp.ner.NerTagger -annotate $input $output -c $configFile"
6665
6766
echo "$0: running command '$CMD'..."
6867

ner/src/main/java/edu/illinois/cs/cogcomp/ner/ParsingProcessingData/TextAnnotationConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static NERDocument getNerDocument(TextAnnotation ta, ParametersForLbjCode
4646
String[] tokens = ta.getTokens();
4747

4848
View ner;
49+
System.out.println(ta.getAvailableViews());
4950
if(ta.hasView(ViewNames.NER_CONLL)) {
5051
ner = ta.getView(ViewNames.NER_CONLL);
5152
}else if(ta.hasView(ViewNames.NER_ONTONOTES)){

0 commit comments

Comments
 (0)