コンテンツにスキップ

構文解析

出典: フリー百科事典『ウィキペディア(Wikipedia)』

: parsing, syntactic analysis, syntactic analysisparser

[]




-


[]


lexical analysis2PEG





[1]


[]




 "12*(3+4)^2"  12, *, (, 3, +, 4, ), ^, 2  *, +, ^, (, ) "12*"  "(3" 





yacc

[]






LALR(1)使使yaccbisonLL使

[]


 Web URL :

http:///web, "http://www.yahoo.com/index.html"

mailto:@, mailto:god@heaven.mil 

Web "http://ja.wikipedia.org/index.html"  "ja.wikipedia.org"  "index.html" 


2elsedangling else problem:
文 ::= if 文 then 文
文 ::= if 文 then 文 else 文

2:
if A then if B then C else D

if A then - if B then C else D2if A then - else Dif B then Celseif

elsethen

[]




[2]

(LFG)使NP(HPSG)使Penn Treebank 使

使(PCFG)使使使

使CYK

[]


:

  

2





係り受け構造の例1


係り受け構造の例2


Colorless green ideas sleep furiously.


[]


KNPhttp://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP

CaboChahttp://taku910.github.io/cabocha/

GiNZAhttps://megagonlabs.github.io/ginza/

[]



(一)^ 

(二)^