Skip to content

Commit

Permalink
Update var names
Browse files Browse the repository at this point in the history
  • Loading branch information
yhshu committed Jul 11, 2021
1 parent 2caa1cc commit 1296915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/cn/edu/nju/ws/edgqa/eval/Evaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static String getEntityLinkingMetricsStr() {
return null;
}

public static String getRelationLinkingMetricsStr() {
public static String getRelationLinkingMetricsStr() {
try {
return "Relation Linking P: " + relationLinkingMetrics.getPrecision() + ", R: " + relationLinkingMetrics.getRecall() +
", micro F1: " + relationLinkingMetrics.getAverageF1() + ", macro F1: "
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cn/edu/nju/ws/edgqa/utils/SimilarityUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public static double getScoreWithParaphrase(String label, String mention) {
}

//semantic similarity
double semanticScore = score;
double paraphraseScore = score;

//Reverse score will cause semantic drift
/*paraphraseSet = ParaphraseUtil.getParaphraseOfMention(mention);
Expand All @@ -235,7 +235,7 @@ public static double getScoreWithParaphrase(String label, String mention) {
}

//return Double.max(lexicalScore, semanticScore);
return (lexicalScore + semanticScore) / 2;
return (lexicalScore + paraphraseScore) / 2;
}

/**
Expand Down

0 comments on commit 1296915

Please sign in to comment.