Skip to content

Commit

Permalink
Initialize the stanford corenlp pipelines in NLPUtil at one time;
Browse files Browse the repository at this point in the history
Add the newly generated query logs for lcquad and qald
  • Loading branch information
HXX97 committed Jul 8, 2021
1 parent 2caa1cc commit 89e0b92
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 89e0b92

Please sign in to comment.