{{outline}} !!!Stanford Parser https://nlp.stanford.edu/software/lex-parser.shtml *Probabilistic Natural Language Parser **PCFG (Probabilistic Context Free Grammar) 確率的文脈自由文法 *オンライン・デモ http://nlp.stanford.edu:8080/parser/ *参考文献 https://nlp.stanford.edu/software/lex-parser.shtml#Citing !!Stanford Dependencies https://nlp.stanford.edu/software/stanford-dependencies.html *Universal Dependencies v1 http://universaldependencies.org/docsv1/ *Universal Dependencies v2 https://universaldependencies.org/ *Neural-network dependency parser https://nlp.stanford.edu/software/nndep.html !SD for English https://nlp.stanford.edu/software/stanford-dependencies.html#English *マニュアル https://nlp.stanford.edu/software/dependencies_manual.pdf !Typed Dependencies *約50の文法関係 **governor (head) と dependent の二項関係 *品詞はPenn Treebank {{pre acomp: adjectival complement advcl: adverbial clause modifier advmod: adverb modifier agent: agent amod: adjectival modifier appos: appositional modifier aux: auxiliary auxpass: passive auxiliary cc: coordination ccomp: clausal complement conj: conjunct cop: copula csubj: clausal subject csubjpass: clausal passive subject dep: dependent det: determiner discourse: discourse element dobj: direct object expl: expletive goeswith: goes with(本来はつなげるところ間違って2語にしたもの with out) iobj: indirect object mark: marker mwe: multi-word expression(一語扱いがふさわしい連語 as well as) neg: negation modifier nn: noun compound modifier npadvmod: noun phrase as adverbial modifier nsubj: nominal subject nsubjpass: passive nominal subject num: numeric modifier number: element of compound number parataxis: parataxis pcomp: prepositional complement pobj: object of a preposition poss: possession modifier possessive: possessive modifier preconj: preconjunct predet: predeterminer prep: prepositional modifier prepc: prepositional clausal modifier prt: phrasal verb particle punct: punctuation quantmod: quantifier phrase modifier rcmod: relative clause modifier ref : referent root: root tmod: temporal modifier vmod: reduced non-finite verbal modifier xcomp: open clausal complement xsubj: controlling subject }} !Dependency Representation *依存関係出力の際の表示形式のいろいろ +Basic +Collapsed +with conjunction dependencies +preserving a tree structure !!使い方 *プログラム言語はJAVA *文法データファイル含めて300MB弱