Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/HXX97/EDGQA into main
Browse files Browse the repository at this point in the history
  • Loading branch information
yhshu committed Jul 11, 2021
2 parents 1296915 + 89e0b92 commit c9416e0
Show file tree
Hide file tree
Showing 5 changed files with 2,541 additions and 2,800 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/cn/edu/nju/ws/edgqa/domain/edg/EDG.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ private void construct(String question) {
// generate syntax treeNode of taggedQuestion
this.syntaxTreeText = NLPUtil.getSyntaxTree(taggedQuestion);
this.syntaxTreeNode = createTree(this.syntaxTreeText);
System.out.println(NLPUtil.TransferParentheses(this.syntaxTreeText));
System.out.println(NLPUtil.transferParentheses(this.syntaxTreeText));

// parse the syntaxTree, generate nodes and edges
Sent(this.syntaxTreeNode);
Expand Down Expand Up @@ -4023,7 +4023,7 @@ private void Sent(TreeNode root) {
secondNode = matcher1.group(2);
} else {
firstNode = tempQuestion;
String syntaxTree = NLPUtil.TransferParentheses(NLPUtil.getSyntaxTree(tempQuestion));
String syntaxTree = NLPUtil.transferParentheses(NLPUtil.getSyntaxTree(tempQuestion));
System.out.println(syntaxTree);
TreeNode rootNode = createTree(syntaxTree);
LinkedList<TreeNode> toSearch = new LinkedList<>();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/cn/edu/nju/ws/edgqa/main/EDGQA.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import cn.edu.nju.ws.edgqa.handler.QuestionSolver;
import cn.edu.nju.ws.edgqa.utils.FileUtil;
import cn.edu.nju.ws.edgqa.utils.LogUtil;

import cn.edu.nju.ws.edgqa.utils.Timer;
import cn.edu.nju.ws.edgqa.utils.enumerates.DatasetEnum;
import cn.edu.nju.ws.edgqa.utils.enumerates.GoldenMode;
Expand Down
Loading

0 comments on commit c9416e0

Please sign in to comment.