private VerbnetInfo chooseFrame(SemanticFrame searchFrame,
Set<String> knownPredicates, Set<VNCLASS> vnclasses) {
for (VNCLASS vnclass : vnclasses) {
List<FRAME> frames = vnclass.getFRAMES().getFRAME();
for (FRAME frame : frames) {
DESCRIPTION description = frame.getDESCRIPTION();
// TODO enhance frame detection (include "Dative", "Location"
// etc. )
if (searchFrame.coerent(description.getPrimary())) {
for (EXAMPLE example : frame.getEXAMPLES().getEXAMPLE()) {
System.out.println("verbnet frame detected : "
+ description.getPrimary() + " example : "
+ example.getvalue());
}
List<Object> npOrVERBOrADJOrADVOrPREPOrLEX = frame
.getSYNTAX().getNPOrVERBOrADJOrADVOrPREPOrLEX();
int position = 0;