Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在语义角色分析器代码中使用PropBank作为介词短语?_Java_Nlp - Fatal编程技术网

Java 如何在语义角色分析器代码中使用PropBank作为介词短语?

Java 如何在语义角色分析器代码中使用PropBank作为介词短语?,java,nlp,Java,Nlp,我试图通过为介词短语引入标签来提高语义角色分析器的准确性。到目前为止,代码对动词短语执行此操作。如何将道具银行集成到我的代码中?我环顾了一下四周,但在网上找不到什么帮助 我的代码输出symantic和语法树。例如,对于该条款- 后来他成为军队语言的中心人物之一 华盛顿外交部语言学院 学会 以下是输出: (ROOT (S (ADVP (RB Later)) (, ,) (NP (PRP he)) (VP (VBD became) (NP

我试图通过为介词短语引入标签来提高语义角色分析器的准确性。到目前为止,代码对动词短语执行此操作。如何将道具银行集成到我的代码中?我环顾了一下四周,但在网上找不到什么帮助

我的代码输出symantic和语法树。例如,对于该条款-

后来他成为军队语言的中心人物之一 华盛顿外交部语言学院 学会

以下是输出:

(ROOT
  (S
    (ADVP (RB Later))
    (, ,)
    (NP (PRP he))
    (VP (VBD became)
      (NP
        (NP (CD one))
        (PP (IN of)
          (NP
            (NP (DT the) (JJ central) (NNS spirits))
            (PP (IN of)
              (NP
                (NP (DT the) (NNP Army) (NNP Language) (NNP Program))
                (CC and)
                (NP
                  (NP (DT the) (NN language) (NN school))
                  (PP (IN of)
                    (NP
                      (NP (NNP Washington) (POS 's))
                      (NNP Foreign) (NNP Service) (NNP Institute))))))))))
    (. .)))  



DEP Tree0:became[3-VBD]
     (advmod) 1:Later[0-RB]
     (nsubj) 1:he[2-PRP]
     (xcomp) 1:one[4-CD]
          (prep_of) 2:spirits[8-NNS]
               (det) 3:the[6-DT]
               (amod) 3:central[7-JJ]
               (prep_of) 3:Program[13-NNP]
                    (det) 4:the[10-DT]
                    (nn) 4:Army[11-NNP]
                    (nn) 4:Language[12-NNP]
                    (conj_and) 4:school[17-NN]
                         (det) 5:the[15-DT]
                         (nn) 5:language[16-NN]
                         (prep_of) 5:Institute[23-NNP]
                              (poss) 6:Washington[19-NNP]
                              (nn) 6:Foreign[21-NNP]
                              (nn) 6:Service[22-NNP]