Package vn

Examples of vn.NP


    int position = 0;
    List<Object> npOrVERBOrADJOrADVOrPREPOrLEX = verbnetInfo.frame
        .getSYNTAX().getNPOrVERBOrADJOrADVOrPREPOrLEX();
    for (final Object object : npOrVERBOrADJOrADVOrPREPOrLEX) {
      if (object instanceof NP) {
        NP np = (NP) object;
        FrameItem frameItem = searchFrame.components.get(position);
        frameItem.pos.thematicRole = ThematicRoles.valueOf(np
            .getValue().toUpperCase());
      }
      if (object instanceof VERB) {
        FrameItem frameItem = searchFrame.components.get(position);
        System.out.println("Verb : " + frameItem.pos.text);
View Full Code Here


          List<Object> npOrVERBOrADJOrADVOrPREPOrLEX = frame
              .getSYNTAX().getNPOrVERBOrADJOrADVOrPREPOrLEX();
          int position = 0;
          for (Object object : npOrVERBOrADJOrADVOrPREPOrLEX) {
            if (object instanceof NP) {
              NP np = (NP) object;
              FrameItem frameItem = searchFrame.components
                  .get(position);
              System.out.println(np.getValue() + " : "
                  + frameItem.pos.text);
            }
            if (object instanceof VERB) {
              FrameItem frameItem = searchFrame.components
                  .get(position);
View Full Code Here

TOP

Related Classes of vn.NP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.