Skip to content

Commit 7edcc94

Browse files
Gabor AngeliStanford NLP
Gabor Angeli
authored and
Stanford NLP
committed
Merge branch 'master' of jacob:/u/nlp/git/javanlp
1 parent 29279b8 commit 7edcc94

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

scripts/ner/english.conll.4class.caseless.distsim.prop

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ useKnownLCWords = false
1111

1212
useDistSim = true
1313
distSimLexicon = /u/nlp/data/pos_tags_are_useless/egw4-reut.512.clusters
14+
# right options for egw4-reut.512 (though effect of having or not is small)
15+
numberEquivalenceDistSim = true
16+
unknownWordDistSimClass = 0
1417

1518
map = word=0,answer=1
1619

src/edu/stanford/nlp/pipeline/DependencyParseAnnotator.java

+6-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* This class adds dependency parse information to an Annotation.
1616
*
17-
* Parse trees are added to each sentence under the annotation
17+
* Dependency parses are added to each sentence under the annotation
1818
* {@link edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations.BasicDependenciesAnnotation}.
1919
*
2020
* @author Jon Gauthier
@@ -30,10 +30,11 @@ public class DependencyParseAnnotator extends SentenceAnnotator {
3030
* Maximum parse time (in milliseconds) for a sentence
3131
*/
3232
private final long maxTime;
33+
private static final long DEFAULT_MAXTIME = Long.MAX_VALUE;
34+
3335
/**
34-
* If true, include the extra arcs in the dependency representaion.
36+
* If true, include the extra arcs in the dependency representation.
3537
*/
36-
private static final long DEFAULT_MAXTIME = Long.MAX_VALUE;
3738
private final GrammaticalStructure.Extras extraDependencies;
3839

3940
public DependencyParseAnnotator() {
@@ -90,10 +91,8 @@ public Set<Requirement> requirementsSatisfied() {
9091
}
9192

9293
public static String signature(String annotatorName, Properties props) {
93-
StringBuilder os = new StringBuilder();
94-
os.append(annotatorName).append(".extradependencies:");
95-
os.append(props.getProperty(annotatorName + ".extradependencies", "NONE").toLowerCase());
96-
return os.toString();
94+
return annotatorName +
95+
".extradependencies:" + props.getProperty(annotatorName + ".extradependencies", "NONE").toLowerCase();
9796
}
9897

9998
}

0 commit comments

Comments
 (0)