Package uk.ac.cam.ch.wwmm.ptc.experimental.termsimilarity

Examples of uk.ac.cam.ch.wwmm.ptc.experimental.termsimilarity.InlineFVE


  public static void main(String[] args) throws Exception {
    List<File> files = new ArrayList<File>();     
    //files = FileTools.getFilesFromDirectoryByName(new File("/home/ptc24/oscarworkspace/corpora/paperset1"), "markedup.xml");
    files = FileTools.getFilesFromDirectoryByName(new File("/home/ptc24/oscarworkspace/corpora/newEnzyme"), "markedup.xml");

    FeatureVectorExtractor fve = new InlineFVE(files);
    SimilarityExtractor se = new SimilarityExtractor(fve, new CosSimilarity(), new TTestWeighting());

    System.out.println("Indexing...");
    Map<String,Integer> termIndex = new HashMap<String,Integer>();
    int termNo = 0;
View Full Code Here

TOP

Related Classes of uk.ac.cam.ch.wwmm.ptc.experimental.termsimilarity.InlineFVE

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.