Commit 7edcc94 1 parent 29279b8 commit 7edcc94 Copy full SHA for 7edcc94
File tree 2 files changed +9
-7
lines changed
src/edu/stanford/nlp/pipeline
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ useKnownLCWords = false
11
11
12
12
useDistSim = true
13
13
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
14
17
15
18
map = word=0,answer=1
16
19
Original file line number Diff line number Diff line change 14
14
/**
15
15
* This class adds dependency parse information to an Annotation.
16
16
*
17
- * Parse trees are added to each sentence under the annotation
17
+ * Dependency parses are added to each sentence under the annotation
18
18
* {@link edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations.BasicDependenciesAnnotation}.
19
19
*
20
20
* @author Jon Gauthier
@@ -30,10 +30,11 @@ public class DependencyParseAnnotator extends SentenceAnnotator {
30
30
* Maximum parse time (in milliseconds) for a sentence
31
31
*/
32
32
private final long maxTime ;
33
+ private static final long DEFAULT_MAXTIME = Long .MAX_VALUE ;
34
+
33
35
/**
34
- * If true, include the extra arcs in the dependency representaion .
36
+ * If true, include the extra arcs in the dependency representation .
35
37
*/
36
- private static final long DEFAULT_MAXTIME = Long .MAX_VALUE ;
37
38
private final GrammaticalStructure .Extras extraDependencies ;
38
39
39
40
public DependencyParseAnnotator () {
@@ -90,10 +91,8 @@ public Set<Requirement> requirementsSatisfied() {
90
91
}
91
92
92
93
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 ();
97
96
}
98
97
99
98
}
You can’t perform that action at this time.
0 commit comments