Package org.fnlp.nlp.cn.anaphora.Entity

Examples of org.fnlp.nlp.cn.anaphora.Entity.Singular


          headword = words[j];
          flag = 0;
          ey = new Entity();         
          ey.start = index;
         
          Singular isSing = Singular.UNKONW;
         
          while(j<words.length-1){
            boolean isModify = !(isNN(epos[j])&&words[j+1].equals("的"));
            if(isModify&&isPart(epos[j+1],words[j+1])){           
              if(epos[j]==PartOfSpeech.数词 &&(words[j].equals("一")||
View Full Code Here


    else
      return -100;
  }

  private int numWeight(){
    Singular psing = pronoun.singular ;
    Singular esing = entity.singular;
    if(psing == Singular.Yes && psing == esing){
      return 3;
    }
    else if(psing == Singular.No && psing == esing){
      return 5;
View Full Code Here

TOP

Related Classes of org.fnlp.nlp.cn.anaphora.Entity.Singular

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.