问题
I'm looking for a long time to create ASRL analysis in Java, and unfortunately the web offers very little support, it seems like all of the other SO questions relate to "which tools to use", but not to "how to use them".
I want to create (preferably in java) something exactly like this : http://demo.ark.cs.cmu.edu/parse ,an algorithm that has sentences as input, and frames as output.
I downloaded the related Jar files of mate tools
https://code.google.com/p/mate-tools/downloads/list and
SEMAFOR http://www.ark.cs.cmu.edu/SEMAFOR/, but from here I'm stuck, i couldn't find any way of creating java code that does that.
Does any of you guys have examples of Java code (SEMAFOR
or Mate tools
) that demonstrates how to convert a sentence (or any text input) into frame elements?
ill appreciate any help on that.
回答1:
I think this might help you.Just go to this link http://code.google.com/p/semafor-semantic-parser/ and browse through the sources.You'll get a lot of java codes on semantic parsing which is used in semafor.You'll also get framenet demo in this chunk of codes.
来源:https://stackoverflow.com/questions/22937922/automatic-semantic-role-labeling-asrl-in-java-using-frame-net-in-java