Package net.sf.nlpshell.domain.phrase

Examples of net.sf.nlpshell.domain.phrase.Phrase


      sentence.children.addAll(parts);
      partOfSpeech = sentence;
    }

    if (Phrase.PennTreeBankPhraseTagset.literals().contains(type)) {
      Phrase phrase = Phrase.newPhraseInstance(type, parse.toString());
      List<PartOfSpeech> parts = new ArrayList<PartOfSpeech>();
      for (Parse parseChild : parse.getChildren()) {
        parts.add(buildPOS(parseChild));
      }
      phrase.children.addAll(parts);
View Full Code Here

TOP

Related Classes of net.sf.nlpshell.domain.phrase.Phrase

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.