Package org.fnlp.nlp.cn.anaphora

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


    return ss1.toString();
  }
  private void buidList() throws Exception  {
   
   
    StringBuffer sb0 =new StringBuffer();Entity et = null;
    Entity et1 = null;String s3=null;
    StringBuffer sb1=new StringBuffer();
    LinkedList<Entity> ll = new LinkedList<Entity>();   
    StringBuffer sb2 = new StringBuffer();
      try {
        while ((s3=orReader.readLine())!=null){
          sb0.append(s3);
        }
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      try {
        while ((s3=markReader.readLine())!=null){
          sb1.append(s3);
        }
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      EntitiesGetter elp = new EntitiesGetter();
      MarkFileManager mfp = new MarkFileManager(sb1.toString());
      String s = sb0.toString();
      String[][][] tags = tag.tag2DoubleArray(s);
      ll = elp.parse(tags);
      Iterator it =null;Iterator it1 =null
      LinkedList<StringBuffer> llsb = mfp.getELstr();
      it = ll.iterator();LinkedList<Entity> etLL = new LinkedList<Entity>();
      while(it.hasNext()){ 
        et = (Entity) it.next();
        while(!et.getIsResolution()&&it.hasNext()){
          etLL.add(et);
          et = (Entity)it.next();
        }
        it1 = etLL.iterator();
        boolean bl1 = false;
        while(it1.hasNext()){
          int flag = 0;
          et1 = (Entity) it1.next();
          Iterator<StringBuffer> it2 = llsb.iterator();
          while(it2.hasNext()){
            sb2 = it2.next();
            if(sb2.toString().contains(et.getData())&&sb2.toString().contains(et1.getData())){
              flag = 1;
              bl1 = true;
              break;
            }
          }
View Full Code Here


    LinkedList<Entity> entityList = ep.parse(strigTag);
    return  doIt(entityList, arGroup);
  }
  private LinkedList<EntityGroup> doIt(LinkedList<Entity> entityList, LinkedList<EntityGroup> arGroup){
    LinkedList<Entity> ll =null;
    int flag = 0;Entity re =null;Entity re1 =null;
    int i = entityList.size();int j =0;
    WeightGetter wp = null;
    EntityGroup reg =null;
    EntityGroup reg1 =null;
    while(flag!=i-j){
View Full Code Here

TOP

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

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.