Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jed326/EasyCCGTrees
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenfontanella committed Oct 27, 2018
2 parents d75af81 + 6ccf9ae commit 762f458
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.DS_Store
.idea/*
easyccg/model_questions
*.tmp
*.pyc
*.class
*.txt
!QALD-questions.txt
!QALD-questions-stripped.txt
out/
2 changes: 1 addition & 1 deletion groupLines.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pathlib
import collections
import argparse
from EasyCCGTrees.to_tree import to_tree, print_tree
from to_tree import to_tree, print_tree
# from EasyCCGTrees.Visualize import build
import itertools
import os
Expand Down
29 changes: 29 additions & 0 deletions output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1249,3 +1249,32 @@
│ ┌<L N/N California, N/N>
└<T N 1 2> ┤
└<L N USA? N>
1, Which presidents were born in 1945?:
┌<L <S[wq]/<S[dcl]\NP>>/N Which <S[wq]/<S[dcl]\NP>>/N>
┌<T S[wq]/<S[dcl]\NP> 0 2> ┤
│ └<L N presidents N>
<T S[wq] 0 2> ┤
│ ┌<L <S[dcl]\NP>/<S[pss]\NP> were <S[dcl]\NP>/<S[pss]\NP>>
└<T S[dcl]\NP 0 2> ┤
│ ┌<L S[pss]\NP born S[pss]\NP>
└<T S[pss]\NP 0 2> ┤
│ ┌<L <<S\NP>\<S\NP>>/NP in <<S\NP>\<S\NP>>/NP>
└<T <S\NP>\<S\NP> 0 2> ┤
└<T NP 0 1> ┐
└<L N 1945? N>
2, Who are the presidents of the United States?:
┌<L S[wq]/<S[q]/NP> Who S[wq]/<S[q]/NP>>
<T S[wq] 0 2> ┤
│ ┌<L <S[q]/NP>/NP are <S[q]/NP>/NP>
└<T S[q]/NP 0 2> ┤
│ ┌<L NP[nb]/N the NP[nb]/N>
│ ┌<T NP[nb] 0 2> ┤
│ │ └<L N presidents N>
└<T NP[nb] 0 2> ┤
│ ┌<L <NP\NP>/NP of <NP\NP>/NP>
└<T NP\NP 0 2> ┤
│ ┌<L NP[nb]/N the NP[nb]/N>
└<T NP[nb] 0 2> ┤
│ ┌<L N/N United N/N>
└<T N 1 2> ┤
└<L N States? N>

0 comments on commit 762f458

Please sign in to comment.