File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/edu/stanford/nlp/semgraph Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ public class SemanticGraphEdge
2121 public static boolean printOnlyRelation = false ; // a hack for displaying SemanticGraph in JGraph. Should be redone better.
2222
2323 private GrammaticalRelation relation ;
24- private double weight ;
24+ private final double weight ;
2525
26- private boolean isExtra ;
26+ private final boolean isExtra ;
2727
2828 private final IndexedWord source ;
2929 private final IndexedWord target ;
@@ -87,18 +87,10 @@ public double getWeight() {
8787 return weight ;
8888 }
8989
90- public void setWeight (double weight ) {
91- this .weight = weight ;
92- }
93-
9490 public boolean isExtra () {
9591 return isExtra ;
9692 }
9793
98- public void setIsExtra (boolean isExtra ) {
99- this .isExtra = isExtra ;
100- }
101-
10294 /**
10395 * @return true if the edges are of the same relation type
10496 */
You can’t perform that action at this time.
0 commit comments