=================================== 0. List of parsers (which I looked up) =================================== x: not available at all -: not available on our system yet: requires some installation process; used online-parser for this comparison 1. Stanford Parser 2. Enju 3. Link Grammar 4. Apple Pie Parser 5. Charniak x 6. MINIPAR x 7. XTAG 8. The RASP System - 9. C&C CCG parser - 10. Collins Parser =================================== 1. Rough Summary of each parser: =================================== 1. Stanford Parser ================= - probalistic NL parser - based on knowledge on language gained from hand-parsed sentence to try to produce the most likely analysis of new sentences - includes such parsers: - optimized PCFG parser - lexicalised dependecy parser - lexicalized PCFG parse 2. Enju ======= - probablisitc HPSG grammar :単語に意味を - HPSG: Head-driven Phrase Structure Grammar (HPSG), a linguistic syntax theory - HPSG > CFG in terms of detailed structure - http://en.wikipedia.org/wiki/Head-driven_phrase_structure_grammar - effecient parsing algorithm - Output parse results in XML format, stand-off format, Delopment: Tsujii Lab, The University of Tokyo ref:http://www.nactem.ac.uk/enju/enju-manual/intro.html 3. Link Grammar ================ - link-grammar - based on relations between pairs of words - basic parameters: - directionality and distance ref: http://www.link.cs.cmu.edu/link/ ref:http://www.link.cs.cmu.edu/link/dict/introduction.html#2 Development: Carnegie Mellon University 4. Apple Pie Parser ==================== - a bottom-up probablistic chart parser - finds the parse tree with the best score - parsing runs within its application => I.O.W ($./parse input.txt) fails - API(C++) is available for programming use Devlopment:New York University 5. Charniak =========== - Lexicalized N-Best PCFG + Discriminative reranking - results: 91.4% according to this page: http://aclweb.org/aclwiki/index.php?title=Parsing_(State_of_the_art) ref: https://github.com/BLLIP/bllip-parser ref: http://cs.brown.edu/~ec/ ref: http://bllip.cs.brown.edu/resources.shtml 6. MINIPAR =============== - 88% precision - 80% recall - very efficient, on a Pentium II 300 with 128M B memory, it parses about 300 words per second. ref:http://webdocs.cs.ualberta.ca/~lindek/minipar.htm 7. XTAG =============== - not so much of info was obtained 8. The RASP System =================== - Robust Accurate Statistical Parser - domain-independent ref:http://www.informatics.sussex.ac.uk/research/groups/nlp/rasp/ 9. C&C CCG parser =================== - CCG is used ref: http://svn.ask.it.usyd.edu.au/trac/candc/wiki 10. Collins Parser =================== - lexicalized PCFG - details are on his thesis ref: http://www.cs.columbia.edu/~mcollins/ =================================== 2. Input text =================================== See the input.txt file. The input.txt file consists of basic English sentences and lines from wikipedia I run . =================================== input.txt =================================== This is a pen . I call him Jonh . I made him do it . The more you study, the longer you live . I believe in what I have been working . The house where I live is near the lake . The house in which I live is near the lake . Dependency grammar is a class of modern syntactic theories that are all based on the dependency relation and that can be traced back primarily to the work of Lucien Tesniere . =================================== 3. Results of each =================================== 1. Stanford Parser ================= See the RESULT_stanford-parser.txt 2. Enju ======= See the RESULT_enju.txt 3. Link Grammar ================ See the RESULT_LinkGrammar.txt 4. Apple Pie Parser ==================== See the RESULT_APPLEPIE.txt like the following <s> This is some text that we should, presumably, parse! </s> (*) The spaces between the tag and first word/ last word(period) is necessary See the RESULT_LinkGrammar.txt 5. Charniak =========== requires tagged text for input to be parsed 6. MINIPAR =============== Unsuccessful in extracting files. tgz2 seems to be corrupted. 7. XTAG =============== Unsuccessful in obtaining the file from its server. The ftp server seems to be down. 8. The RASP System =================== See the RESULT_RASP.txt 9. C&C CCG parser =================== - abandoned installation for other installations required - Up to step 5: http://svn.ask.it.usyd.edu.au/trac/candc/wiki/Installation See the RESULT_CnC_CCGparser.txt 10. Collins Parser =================== - tagged input required - input format seems complex --------------------------------------------------------------------------------------------------------------------------------------------------------- The below is some of parsing results (some of results are not not the raw result; ran them through xml parser) --------------------------------------------- RESULT_APPLEPIE.txt --------------------------------------------- ----- >> I run. (S (NPL I) (VP run) -PERIOD-) >> This is a pen. (S (NPL This) (VP is (NPL a pen)) -PERIOD-) >> I call him John. (S (NPL I) (VP call (NP (NPL him) John)) -PERIOD-) >> I made him do it. (S (NPL I) (VP made (SBAR (SS (NPL him) (VP do (NPL it))))) -PERIOD-) >> The more you study, the longer you live. (S (X (SBAR (X The more) (SS (NPL you) (VP study)))) -COMMA- (X (X the longer) (NP (NPL you) (ADJP live))) -PERIOD-) >> I believe in what I have been working on. (S (NPL I) (VP believe (PP in (NP (SBAR (WHNP what) (SS (NPL I) (VP have (VP been (VP working (PRT on))))))))) -PERIOD-) >> The house where I live is near the lake. (S (NP (NPL The house) (SBAR (WHADVP where) (SS (NPL I) (VP live)))) (VP is (PP near (NPL the lake))) -PERIOD-) >> The house in which I live is near the lake. (S (NP (NPL The house) (SBAR (WHPP in (WHNP which)) (SS (NPL I) (VP live)))) (VP is (PP near (NPL the lake))) -PERIOD-) >Dependency grammar is a class of modern syntactic theories that are all based on the dependency relation and that can be traced back primarily to the work of Lucien Tesniere. Warning: ANode area exhausted (600000) (S (S (NP (NPL primarily) (PP to (NP (NPL the work) (PP of (NPL (NNPX Lucien TesniereDependency) grammar))))) (VP is (NP (NPL a class) (PP of (NP (NPL modern syntactic theories) (SBAR (WHNP that) (SS (VP are all (VP based (PP on (NPL the dependency relation))))))))))) and (S (NPL that) (VP can (VP be (SS (VP traced (ADVP back) (ADJP primarily (PP to (NP (NPL the work) (PP of (NPL (NNPX Lucien Tesniere))))))))))) -PERIOD-) >> --------------------------------------------- RESULT_Charniak.txt --------------------------------------------- (S1 (S (NP (PRP I)) (VP (VBP run)) (. .))) (S1 (S (NP (DT This)) (VP (AUX is) (NP (DT a) (NN pen))) (. .))) (S1 (S (NP (PRP I)) (VP (VBP call) (S (NP (PRP him)) (NP (NNP Jonh)))) (. .))) (S1 (S (NP (PRP I)) (VP (VBD made) (NP (PRP him)) (VP (AUX do) (NP (PRP it)))) (. .))) (S1 (S (SBAR (X (DT The) (RBR more)) (S (NP (PRP you)) (VP (VBP study)))) (, ,) (X (DT the) (JJR longer)) (NP (PRP you)) (VP (VBP live)) (. .))) (S1 (S (NP (PRP I)) (VP (VBP believe) (PP (IN in) (SBAR (WHNP (WP what)) (S (NP (PRP I)) (VP (AUX have) (VP (AUX been) (VP (VBG working)))))))) (. .))) (S1 (S (NP (NP (DT The) (NN house)) (SBAR (WHADVP (WRB where)) (S (NP (PRP I)) (VP (VBP live))))) (VP (AUX is) (PP (IN near) (NP (DT the) (NN lake)))) (. .))) (S1 (S (NP (NP (DT The) (NN house)) (SBAR (WHPP (IN in) (WHNP (WDT which))) (S (NP (PRP I)) (VP (VBP live))))) (VP (AUX is) (PP (IN near) (NP (DT the) (NN lake)))) (. .))) (S1 (S (NP (NN Dependency) (NN grammar)) (VP (AUX is) (NP (NP (DT a) (NN class)) (PP (IN of) (NP (JJ modern) (JJ syntactic) (NNS theories))) (SBAR (SBAR (WHNP (WDT that)) (S (VP (AUX are) (DT all) (VP (VBN based) (PP (IN on) (NP (DT the) (NN dependency) (NN relation))))))) (CC and) (SBAR (WHNP (WDT that)) (S (VP (MD can) (VP (AUX be) (VP (VBN traced) (PRT (RP back)) (PP (ADVP (RB primarily)) (TO to) (NP (NP (DT the) (NN work)) (PP (IN of) (NP (NNP Lucien) (NNP Tesniere))))))))))))) (. .))) --------------------------------------------- RESULT_CnC_CCGparser.txt --------------------------------------------- ----------------------------------------------------------------------------------- input: This is a pen. ----------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="candc.xml"?> <candc> <ccg> <rule type="ba" cat="S[dcl]"> <lf start="0" span="1" word="This" lemma="this" pos="DT" chunk="I-NP" entity="O" cat="NP" /> <rule type="fa" cat="S[dcl]\NP"> <lf start="1" span="1" word="is" lemma="be" pos="VBZ" chunk="I-VP" entity="O" cat="(S[dcl]\NP)/NP" /> <rule type="fa" cat="NP[nb]"> <lf start="2" span="1" word="a" lemma="a" pos="DT" chunk="I-NP" entity="O" cat="NP[nb]/N" /> <lf start="3" span="1" word="pen." lemma="pen." pos="NN" chunk="I-NP" entity="O" cat="N" /> </rule> </rule> </rule> </ccg> </candc> <!-- using model 9000 --> ----------------------------------------------------------------------------------- --------------------------------------------- RESULT_LinkGrammar.txt --------------------------------------------- Opening ./data/4.0.dict Opening ./data/words/words.n.p Opening ./data/words/words.n.1 Opening ./data/words/words.n.2.s Opening ./data/words/words.n.2.x Opening ./data/words/words.n.3 Opening ./data/words/words.n.4 Opening ./data/words/words.s Opening ./data/words/words.n.t Opening ./data/words/words.y Opening ./data/words/words.v.1.1 Opening ./data/words/words.v.1.2 Opening ./data/words/words.v.1.3 Opening ./data/words/words.v.1.4 Opening ./data/words/words.v.5.1 Opening ./data/words/words.v.5.2 Opening ./data/words/words.v.5.3 Opening ./data/words/words.v.5.4 Opening ./data/words/words.v.2.1 Opening ./data/words/words.v.2.2 Opening ./data/words/words.v.2.3 Opening ./data/words/words.v.2.4 Opening ./data/words/words.v.2.5 Opening ./data/words/words.v.6.1 Opening ./data/words/words.v.6.2 Opening ./data/words/words.v.6.3 Opening ./data/words/words.v.6.4 Opening ./data/words/words.v.6.5 Opening ./data/words/words.v.4.1 Opening ./data/words/words.v.4.2 Opening ./data/words/words.v.4.3 Opening ./data/words/words.v.4.4 Opening ./data/words/words.v.4.5 Opening ./data/words/words.v.8.1 Opening ./data/words/words.v.8.2 Opening ./data/words/words.v.8.3 Opening ./data/words/words.v.8.4 Opening ./data/words/words.v.8.5 Opening ./data/words/words.v.1.p Opening ./data/words/words.v.10.1 Opening ./data/words/words.v.10.2 Opening ./data/words/words.v.10.3 Opening ./data/words/words.v.10.4 Opening ./data/words/words.adj.1 Opening ./data/words/words.adj.2 Opening ./data/words/words.adj.3 Opening ./data/words/words.adv.3 Opening ./data/words/words.adv.1 Opening ./data/words/words.adv.2 Opening ./data/4.0.knowledge Opening ./data/4.0.constituent-knowledge Opening ./data/4.0.affix linkparser> ++++Time 0.00 seconds (0.00 total) Found 1 linkage (1 had no P.P. violations) Unique linkage, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=2) +-------Xp------+ +--Wd--+Sp*i+ | | | | | LEFT-WALL I.p run.v . linkparser> ++++Time 0.00 seconds (0.00 total) Found 1 linkage (1 had no P.P. violations) Unique linkage, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=5) +------------Xp-----------+ | +--Ost-+ | +---Wd---+-Ss*b+ +-Ds+ | | | | | | | LEFT-WALL this.p is.v a pen.n . linkparser> ++++Time 0.00 seconds (0.00 total) Found 1 linkage (1 had no P.P. violations) Unique linkage, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=5) +------------Xp-----------+ | +---Osn---+ | +--Wd--+-Sp*i+-Ox-+ | | | | | | | | LEFT-WALL I.p call.v him Jonh . linkparser> ++++Time 0.00 seconds (0.00 total) Found 1 linkage (1 had no P.P. violations) Unique linkage, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=6) +-------------Xp-------------+ | +---I*j---+ | +--Wd--+-Sp*i+-Ox-+ +-Ox+ | | | | | | | | LEFT-WALL I.p made.v him do.v it . linkparser> ++++Time 0.00 seconds (0.00 total) Found 2 linkages (2 had no P.P. violations) Linkage 1, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=16) +-------------------------Xp-------------------------+ | +-----------ER-----------+ | +-----Wd----+------Xc------+ | | | +-DG-+-Cs+--Sp-+ | +--DG--+--Cs-+--Sp-+ | | | | | | | | | | | | LEFT-WALL the more you study.v , the longer.a you live.v . Press RETURN for the next linkage. linkparser> ++++Time 0.00 seconds (0.01 total) Found 2 linkages (2 had no P.P. violations) Linkage 1, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=11) +---------------------------Xp--------------------------+ | +-----------Bsd----------+ | +--Wd--+-Sp*i-+--MVp-+-Js+ +-Sp*i+--PPf-+--Pg*b-+ | | | | | | | | | | | LEFT-WALL I.p believe.v in what I.p have.v been.v working.v . Press RETURN for the next linkage. linkparser> ++++Time 0.00 seconds (0.01 total) Found 2 linkages (2 had no P.P. violations) Linkage 1, cost vector = (UNUSED=0 DIS=1 AND=0 LEN=14) +----------------------------Xp---------------------------+ +-----Wd-----+-----------Ss----------+ +----Js----+ | | +--Ds-+--Mp--+-Cs-+-Sp*i+ +--Pp-+ +--Ds-+ | | | | | | | | | | | | LEFT-WALL the house.n where I.p live.v is.v near.p the lake.n . Press RETURN for the next linkage. linkparser> ++++Time 0.00 seconds (0.01 total) Found 2 linkages (2 had no P.P. violations) Linkage 1, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=17) +-----------------------------Xp-----------------------------+ | +------------Ss------------+ | +-----Wd-----+ +---Cs---+ | +----Js----+ | | +--Ds-+--Mj-+-Jw+ +-Sp*i+ +--Pp-+ +--Ds-+ | | | | | | | | | | | | | LEFT-WALL the house.n in which I.p live.v is.v near.p the lake.n . Press RETURN for the next linkage. linkparser> No complete linkages found. ++++Time 0.73 seconds (0.74 total) Found 1568 linkages (79 of 740 random linkages had no P.P. violations) at null count 1 Linkage 1, cost vector = (UNUSED=1 DIS=1 AND=0 LEN=57) +------------------------------------------------------------------- | +-------------------------------------------- | | +-------------Jp------- +----------Wd----------+ +--Ost--+ | +----------A----- | +----AN----+---Ss--+ +-Dsu+--Mp-+ | +-----A | | | | | | | | | LEFT-WALL dependency.n grammar.n is.v a class.n of modern.a syntactic.a ----------------------------------------Xp------------------------------------ -----------CC-------------------------------------------------------+ -----+ +-----------Jp----------+ | -----+------Bp------+ | +---------D*u--------+ | -----+----R---+--RS-+-O*t+--Mv-+-MVp-+ | +-----AN----+ +-Wdc-+-Ss | | | | | | | | | | | theories.n that.r are.v all based.v on the dependency.n relation.n and that.p ----------------------------------------------------------------------+ | | +---Jp---+ +-----Js-----+ | *b+--Ix-+--Pv--+------MVl------+--MVp-+ +-D*u-+-Mp-+ +---G---+ | | | | | | | | | | | | can.v be.v traced.v [back] primarily to the work.n of Lucien Tesniere . Press RETURN for the next linkage. linkparser> --------------------------------------------- RESULT_RASP.txt --------------------------------------------- (|I:1_PPIS1| |run:2_VV0| |.:3_.|) 1 ; (-2.576) gr-list: 1 (|ncsubj| |run:2_VV0| |I:1_PPIS1| _) (|This:1_DD1| |be+s:2_VBZ| |a:3_AT1| |pen:4_NN1| |.:5_.|) 1 ; (-3.587) gr-list: 1 (|ncsubj| |be+s:2_VBZ| |This:1_DD1| _) (|xcomp| _ |be+s:2_VBZ| |pen:4_NN1|) (|det| |pen:4_NN1| |a:3_AT1|) (|I:1_PPIS1| |call:2_VV0| |he+:3_PPHO1| |Jonh:4_NP1| |.:5_.|) 1 ; (-9.813) gr-list: 1 (|ncsubj| |call:2_VV0| |I:1_PPIS1| _) (|obj2| |call:2_VV0| |Jonh:4_NP1|) (|dobj| |call:2_VV0| |he+:3_PPHO1|) (|I:1_PPIS1| |make+ed:2_VVD| |he+:3_PPHO1| |do:4_VD0| |it:5_PPH1| |.:6_.|) 1 ; (-7.035) gr-list: 1 (|ncsubj| |make+ed:2_VVD| |I:1_PPIS1| _) (|ccomp| _ |make+ed:2_VVD| |do:4_VD0|) (|ncsubj| |do:4_VD0| |he+:3_PPHO1| _) (|dobj| |do:4_VD0| |it:5_PPH1|) (|The:1_AT| |more:2_DAR| |you:3_PPY| |study:4_VV0| |,:5_,| |the:6_AT| |longer:7_JJR| |you:8_PPY| |live:9_VV0| |.:10_.|) 1 ; (-25.734) gr-list: 1 (|ncmod| _ |study:4_VV0| |more:2_DAR|) (|ta| |comma| |study:4_VV0| |longer:7_JJR|) (|det| |longer:7_JJR| |the:6_AT|) (|ccomp| _ |longer:7_JJR| |live:9_VV0|) (|ncsubj| |live:9_VV0| |you:8_PPY| _) (|ncsubj| |study:4_VV0| |you:3_PPY| _) (|det| |more:2_DAR| |The:1_AT|) (|I:1_PPIS1| |believe:2_VV0| |in:3_II| |what:4_DDQ| |I:5_PPIS1| |have:6_VH0| |be+en:7_VBN| |work+ing:8_VVG| |.:9_.|) 1 ; (-17.242) gr-list: 1 (|ncsubj| |believe:2_VV0| |I:1_PPIS1| _) (|ccomp| _ |believe:2_VV0| |work+ing:8_VVG|) (|arg_mod| _ |work+ing:8_VVG| |in:3_II|) (|ncsubj| |work+ing:8_VVG| |I:5_PPIS1| _) (|aux| |work+ing:8_VVG| |have:6_VH0|) (|aux| |work+ing:8_VVG| |be+en:7_VBN|) (|dobj| |in:3_II| |what:4_DDQ|) (|The:1_AT| |house:2_NNL1| |where:3_RRQ| |I:4_PPIS1| |live:5_VV0| |be+s:6_VBZ| |near:7_II| |the:8_AT| |lake:9_NN1| |.:10_.|) 1 ; (-15.784) gr-list: 1 (|ncsubj| |be+s:6_VBZ| |house:2_NNL1| _) (|pcomp| |be+s:6_VBZ| |near:7_II|) (|dobj| |near:7_II| |lake:9_NN1|) (|det| |lake:9_NN1| |the:8_AT|) (|det| |house:2_NNL1| |The:1_AT|) (|cmod| _ |house:2_NNL1| |live:5_VV0|) (|arg_mod| _ |live:5_VV0| |where:3_RRQ|) (|ncsubj| |live:5_VV0| |I:4_PPIS1| _) (|The:1_AT| |house:2_NNL1| |in:3_II| |which:4_DDQ| |I:5_PPIS1| |live:6_VV0| |be+s:7_VBZ| |near:8_II| |the:9_AT| |lake:10_NN1| |.:11_.|) 1 ; (-15.741) gr-list: 1 (|ncsubj| |be+s:7_VBZ| |house:2_NNL1| _) (|pcomp| |be+s:7_VBZ| |near:8_II|) (|dobj| |near:8_II| |lake:10_NN1|) (|det| |lake:10_NN1| |the:9_AT|) (|det| |house:2_NNL1| |The:1_AT|) (|cmod| _ |house:2_NNL1| |live:6_VV0|) (|arg_mod| _ |live:6_VV0| |in:3_II|) (|ncsubj| |live:6_VV0| |I:5_PPIS1| _) (|dobj| |in:3_II| |which:4_DDQ|) (|Dependency:1_NN1| |grammar:2_NN1| |be+s:3_VBZ| |a:4_AT1| |class:5_NN1| |of:6_IO| |modern:7_JJ| |syntactic:8_JJ| |theory+s:9_NN2| |that:10_CST| |be+:11_VBR| |all:12_RR| |base+ed:13_VVN| |on:14_II| |the:15_AT| |dependency:16_NN1| |relation:17_NN1| |and:18_CC| |that:19_CST| |can:20_VM| |be:21_VB0| |trace+ed:22_VVN| |back:23_RL| |primarily:24_RR| |to:25_II| |the:26_AT| |work:27_NN1| |of:28_IO| |Lucien:29_NP1| |Tesniere:30_NP1| |.:31_.|) 0 ; () gr-list: 1 (|ncmod| _ |trace+ed:22_VVN| |to:25_II|) (|ncmod| _ |to:25_II| |primarily:24_RR|) (|dobj| |to:25_II| |work:27_NN1|) (|det| |work:27_NN1| |the:26_AT|) (|iobj| |work:27_NN1| |of:28_IO|) (|dobj| |of:28_IO| |Tesniere:30_NP1|) (|ncmod| _ |Tesniere:30_NP1| |Lucien:29_NP1|) (|aux| |trace+ed:22_VVN| |can:20_VM|) (|aux| |trace+ed:22_VVN| |be:21_VB0|) (|passive| |trace+ed:22_VVN|) (|ncmod| |prt| |trace+ed:22_VVN| |back:23_RL|) (|ccomp| _ |Dependency:1_NN1| |be+s:3_VBZ|) (|ncsubj| |be+s:3_VBZ| |grammar:2_NN1| _) (|xcomp| _ |be+s:3_VBZ| |class:5_NN1|) (|det| |class:5_NN1| |a:4_AT1|) (|iobj| |class:5_NN1| |of:6_IO|) (|dobj| |of:6_IO| |theory+s:9_NN2|) (|ncmod| _ |theory+s:9_NN2| |modern:7_JJ|) (|ncmod| _ |theory+s:9_NN2| |syntactic:8_JJ|) (|ncsubj| |base+ed:13_VVN| |theory+s:9_NN2| _) (|cmod| |that| |theory+s:9_NN2| |base+ed:13_VVN|) (|ncmod| _ |base+ed:13_VVN| |all:12_RR|) (|aux| |base+ed:13_VVN| |be+:11_VBR|) (|passive| |base+ed:13_VVN|) (|iobj| |base+ed:13_VVN| |on:14_II|) (|dobj| |on:14_II| |relation:17_NN1|) (|det| |relation:17_NN1| |the:15_AT|) (|ncmod| _ |relation:17_NN1| |dependency:16_NN1|) --------------------------------------------- RESULT_enju.txt --------------------------------------------- ( ( S ( NP ( N I ) ) ( VP ( V run ) ) ) . ) ( ( S ( NP ( N This ) ) ( VP ( VX ( V is ) ) ( NP ( DP ( D a ) ) ( NX ( N pen ) ) ) ) ) . ) ( ( S ( NP ( N I ) ) ( VP ( VX ( VX ( V call ) ) ( NP ( N him ) ) ) ( NP ( NX ( N Jonh ) ) ) ) ) . ) ( ( S ( NP ( N I ) ) ( VP ( VX ( VX ( V made ) ) ( NP ( N him ) ) ) ( VP ( VX ( V do ) ) ( NP ( N it ) ) ) ) ) . ) ( ( S ( S ( ADVP ( DP ( D The ) ) ( ADVP ( ADV more ) ) ) ( S ( NP ( N you ) ) ( VP ( V study ) ) ) ) ( S ( PN ( PN , ) ) ( S ( ADJP ( DP ( D the ) ) ( ADJP ( ADJ longer ) ) ) ( S ( NP ( N you ) ) ( VP ( V live ) ) ) ) ) ) . ) ( ( S ( NP ( N I ) ) ( VP ( VP ( V believe ) ) ( PP ( PX ( P in ) ) ( NP ( S ( NP ( N what ) ) ( S ( NP ( N I ) ) ( VP ( VX ( V have ) ) ( VP ( VX ( V been ) ) ( VP ( V working ) ) ) ) ) ) ) ) ) ) . ) ( ( S ( NP ( DP ( D The ) ) ( NX ( NX ( N house ) ) ( SCP ( SCX ( SC where ) ) ( S ( NP ( N I ) ) ( VP ( V live ) ) ) ) ) ) ( VP ( VX ( V is ) ) ( PP ( PX ( P near ) ) ( NP ( DP ( D the ) ) ( NX ( N lake ) ) ) ) ) ) . ) ( ( S ( NP ( DP ( D The ) ) ( NX ( NX ( N house ) ) ( S ( PP ( PX ( P in ) ) ( NP ( N which ) ) ) ( S ( NP ( N I ) ) ( VP ( V live ) ) ) ) ) ) ( VP ( VX ( V is ) ) ( PP ( PX ( P near ) ) ( NP ( DP ( D the ) ) ( NX ( N lake ) ) ) ) ) ) . ) ( ( S ( S ( NP ( NX ( NP ( N Dependency ) ) ( NX ( N grammar ) ) ) ) ( VP ( VX ( V is ) ) ( NP ( DP ( D a ) ) ( NX ( NX ( N class ) ) ( PP ( PX ( P of ) ) ( NP ( NX ( NX ( ADJP ( ADJ modern ) ) ( NX ( ADJP ( ADJ syntactic ) ) ( NX ( N theories ) ) ) ) ( S ( NP ( N that ) ) ( VP ( VX ( VX ( V are ) ) ( DP ( D all ) ) ) ( VP ( VP ( V based ) ) ( PP ( PX ( P on ) ) ( NP ( DP ( D the ) ) ( NX ( NP ( N dependency ) ) ( NX ( N relation ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ( COOD ( CONJP ( CONJ and ) ) ( S ( NP ( N that ) ) ( VP ( VX ( V can ) ) ( VP ( VX ( V be ) ) ( VP ( VP ( VP ( V traced ) ) ( ADVP ( ADV back ) ) ) ( PP ( ADVP ( ADV primarily ) ) ( PP ( PX ( P to ) ) ( NP ( DP ( D the ) ) ( NX ( NX ( N work ) ) ( PP ( PX ( P of ) ) ( NP ( NX ( NP ( N Lucien ) ) ( NX ( N Tesniere ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) . ) --------------------------------------------- RESULT_stanford-parser.txt --------------------------------------------- (ROOT (S (NP (PRP I)) (VP (VBP run)) (. .))) nsubj(run-2, I-1) root(ROOT-0, run-2) (ROOT (S (NP (DT This)) (VP (VBZ is) (NP (DT a) (NN pen))) (. .))) nsubj(pen-4, This-1) cop(pen-4, is-2) det(pen-4, a-3) root(ROOT-0, pen-4) (ROOT (S (NP (PRP I)) (VP (VBP call) (SBAR (S (NP (PRP him)) (VP (VBP Jonh))))) (. .))) nsubj(call-2, I-1) root(ROOT-0, call-2) nsubj(Jonh-4, him-3) ccomp(call-2, Jonh-4) (ROOT (S (NP (PRP I)) (VP (VBD made) (SBAR (S (NP (PRP him)) (VP (VBP do) (NP (PRP it)))))) (. .))) nsubj(made-2, I-1) root(ROOT-0, made-2) nsubj(do-4, him-3) ccomp(made-2, do-4) dobj(do-4, it-5) (ROOT (S (SBAR (X (DT The) (JJR more)) (S (NP (PRP you)) (VP (VBP study)))) (, ,) (X (DT the) (JJR longer)) (NP (PRP you)) (VP (VBP live)) (. .))) det(more-2, The-1) dep(study-4, more-2) nsubj(study-4, you-3) dep(live-9, study-4) det(longer-7, the-6) dep(live-9, longer-7) nsubj(live-9, you-8) root(ROOT-0, live-9) (ROOT (S (NP (PRP I)) (VP (VBP believe) (PP (IN in) (SBAR (WHNP (WP what)) (S (NP (PRP I)) (VP (VBP have) (VP (VBN been) (VP (VBG working)))))))) (. .))) nsubj(believe-2, I-1) root(ROOT-0, believe-2) dobj(working-8, what-4) nsubj(working-8, I-5) aux(working-8, have-6) aux(working-8, been-7) prepc_in(believe-2, working-8) (ROOT (S (NP (NP (DT The) (NN house)) (SBAR (WHADVP (WRB where)) (S (NP (PRP I)) (VP (VBP live))))) (VP (VBZ is) (PP (IN near) (NP (DT the) (NN lake)))) (. .))) det(house-2, The-1) nsubj(is-6, house-2) advmod(live-5, where-3) nsubj(live-5, I-4) rcmod(house-2, live-5) root(ROOT-0, is-6) det(lake-9, the-8) prep_near(is-6, lake-9) (ROOT (S (NP (NP (DT The) (NN house)) (SBAR (WHPP (IN in) (WHNP (WDT which))) (S (NP (PRP I)) (VP (VBP live))))) (VP (VBZ is) (PP (IN near) (NP (DT the) (NN lake)))) (. .))) det(house-2, The-1) nsubj(is-7, house-2) rel(live-6, which-4) nsubj(live-6, I-5) rcmod(house-2, live-6) root(ROOT-0, is-7) det(lake-10, the-9) prep_near(is-7, lake-10) (ROOT (S (S (NP (JJ Dependency) (NN grammar)) (VP (VBZ is) (NP (NP (DT a) (NN class)) (PP (IN of) (NP (JJ modern) (JJ syntactic) (NNS theories))) (SBAR (WHNP (WDT that)) (S (VP (VBP are) (RB all) (VP (VBN based) (PP (IN on) (NP (DT the) (JJ dependency) (NN relation)))))))))) (CC and) (S (NP (DT that)) (VP (MD can) (VP (VB be) (VP (VBN traced) (PRT (RP back)) (ADVP (RB primarily)) (PP (TO to) (NP (NP (DT the) (NN work)) (PP (IN of) (NP (NNP Lucien) (NNP Tesniere))))))))) (. .))) amod(grammar-2, Dependency-1) nsubj(class-5, grammar-2) cop(class-5, is-3) det(class-5, a-4) root(ROOT-0, class-5) nsubjpass(based-13, class-5) amod(theories-9, modern-7) amod(theories-9, syntactic-8) prep_of(class-5, theories-9) auxpass(based-13, are-11) advmod(based-13, all-12) rcmod(class-5, based-13) det(relation-17, the-15) amod(relation-17, dependency-16) prep_on(based-13, relation-17) nsubjpass(traced-22, that-19) aux(traced-22, can-20) auxpass(traced-22, be-21) conj_and(class-5, traced-22) nsubjpass(based-13, traced-22) prt(traced-22, back-23) advmod(traced-22, primarily-24) det(work-27, the-26) prep_to(traced-22, work-27) nn(Tesniere-30, Lucien-29) prep_of(work-27, Tesniere-30) |