Package gannuUtil

Examples of gannuUtil.KeyString


   * @param word Target word.
   * @return Corresponding IDF value or 0.0 in case of being unavailable.
   */
  private static double getIDF(ArrayList<KeyString> idfList,String word)
  {
    if(idfList.indexOf(new KeyString(word))<0)
      return 0.0;
    else 
      return Double.parseDouble(idfList.get(idfList.indexOf(new KeyString(word))).getString());
  }
View Full Code Here


                    throw new Exception("You must specify a valid wsd class!");
                 
                Test testx=new Test(inputs,wsd,backoff,tie,testsetsnames.get(tindex),sensefilters.get(tindex),sources,dict);
                  ts.add(testx);
                  ArrayList<KeyString> configs=testx.getConfigurations();
                  configs.add(new KeyString("wsd",wsdconf));
                  wsd.setSkipFilters(sfilters);
                  if(backoff!=null)
                    backoff.setSkipFilters(bsfilters);
                  if(tie!=null)
                    tie.setSkipFilters(tsfilters);
                  if(combos.size()>0)
                    wsd.setWindowFilters(combos.get(c));
                  else
                    wsd.setWindowFilters(new ArrayList<WindowFilter>(1));
                if(backoff!=null)
                  backoff.setWindowFilters(bfilters);
                if(tie!=null)
                  tie.setWindowFilters(tfilters);

                if(b<backoffconfig.size())
                  configs.add(new KeyString("backoff",backoffconfig.get(b)));
                if(t<tieconfig.size())
                  configs.add(new KeyString("tie",tieconfig.get(t)));
              }
    }
    tests.add(ts);
    tindex++;   
  }
View Full Code Here

TOP

Related Classes of gannuUtil.KeyString

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.