Package opennlp.ccg.synsem

Examples of opennlp.ccg.synsem.AtomCat


    if (cat instanceof ComplexCat) {
      Category resCat = ((ComplexCat)cat).getResult();
      retval=this.getSubjectFeature(resCat);
    }
    else if (cat instanceof AtomCat) {
      AtomCat ac = (AtomCat) cat;
      FeatureStructure fs = ac.getFeatureStructure();
      for(String attr: fs.getAttributes()){
        if(attr.equals("sbj")){
          retval=fs.getValue(attr).toString();
          break;
        }
View Full Code Here

TOP

Related Classes of opennlp.ccg.synsem.AtomCat

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.