Tôi có một câu phức tạp và tôi cần tách nó thành mệnh đề chính và phụ thuộc. Ví dụ: đối với câu
ABC trích dẫn thực tế rằng phụ gia hóa học bị cấm ở nhiều quốc gia và cảm thấy chúng có thể bị cấm ở trạng thái này.
Việc phân chia cầnTrích xuất khoản sử dụng trình phân tích cú pháp Stanford
1)ABC cites the fact
2)chemical additives are banned in many countries
3)ABC feels they may be banned in this state too.
Tôi nghĩ rằng tôi có thể sử dụng cây Parser Stanford hay phụ thuộc, nhưng tôi không chắc chắn làm thế nào để tiến hành từ đây.
Cây
(ROOT (S (NP (NNP ABC)) (VP (VBZ cites) (NP (DT the) (NN fact)) (SBAR (IN that) (S (NP (NN chemical) (NNS additives)) (VP (VP (VBP are) (VP (VBN banned) (PP (IN in) (NP (JJ many) (NNS countries))))) (CC and) (VP (VBZ feels) (SBAR (S (NP (PRP they)) (VP (MD may) (VP (VB be) (VP (VBN banned) (PP (IN in) (NP (DT this) (NN state))) (ADVP (RB too)))))))))))) (. .)))
và phụ thuộc sụp đổ phân tích
nsubj(cites-2, ABC-1) root(ROOT-0, cites-2) det(fact-4, the-3) dobj(cites-2, fact-4) mark(banned-9, that-5) nn(additives-7, chemical-6) nsubjpass(banned-9, additives-7) nsubj(feels-14, additives-7) auxpass(banned-9, are-8) ccomp(cites-2, banned-9) amod(countries-12, many-11) prep_in(banned-9, countries-12) ccomp(cites-2, feels-14) conj_and(banned-9, feels-14) nsubjpass(banned-18, they-15) aux(banned-18, may-16) auxpass(banned-18, be-17) ccomp(feels-14, banned-18) det(state-21, this-20) prep_in(banned-18, state-21) advmod(banned-18, too-22)
Bạn đã đạt được kết quả như thế nào? StanfordDependencyParser? – ionox0