Package net.sf.nlpshell.domain

Examples of net.sf.nlpshell.domain.SemanticFrame


    }

    PartOfSpeech pos = new OpenNlpConverter().buildPOS(chosen_parse);

    // extract frame
    SemanticFrame searchFrame = pos.frame();
    String frameString = searchFrame.toFrameString();
    System.out.println("Frame : " + frameString);

    // extract verb
    Verb verb = searchFrame.getVerb();

    // choose lemma
    IndexWord iw = Dictionary.getInstance().lookupIndexWord(
        net.didion.jwnl.data.POS.VERB, verb.text);
    System.out.println("lemma : " + iw.getLemma());
View Full Code Here


    return phrase;
  }

  @Override
  public SemanticFrame frame() {
    SemanticFrame frame = new SemanticFrame();
    for (PartOfSpeech pos : this.children) {
      SemanticFrame childFrame = pos.frame();
      frame.components.addAll(childFrame.components);
    }
    return frame;
  }
View Full Code Here

    super(text);
  }

  @Override
  public SemanticFrame frame() {
    return new SemanticFrame(this, pennTreebankTag.name());
  }
View Full Code Here

    super(text);
  }

  @Override
  public SemanticFrame frame() {
    return new SemanticFrame(this, pennTreebankTag.name());
  }
View Full Code Here

    return phrase;
  }

  @Override
  public SemanticFrame frame() {
    SemanticFrame frame = new SemanticFrame();
    for (PartOfSpeech pos : this.children) {
      SemanticFrame childFrame = pos.frame();
      frame.components.addAll(childFrame.components);
    }
    return frame;
  }
View Full Code Here

  public static final POSWord.PennTreeBankWordTagset pennTreebankTag = POSWord.PennTreeBankWordTagset.V;

  @Override
  public SemanticFrame frame() {
    return new SemanticFrame(this, pennTreebankTag.name());
  }
View Full Code Here

TOP

Related Classes of net.sf.nlpshell.domain.SemanticFrame

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.