Package edu.wiki.demo

Source Code of edu.wiki.demo.TestSimilarity

package edu.wiki.demo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.SQLException;

import edu.wiki.search.ESASearcher;

public class TestSimilarity {

  /**
   * @param args
   * @throws IOException
   * @throws SQLException
   * @throws ClassNotFoundException
   */
  public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException {
    ESASearcher searcher = new ESASearcher();
   
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in,"UTF-8"));
    String doc1 = br.readLine();
    String doc2 = br.readLine();
    br.close();
   
    System.out.println(searcher.getRelatedness(doc1, doc2));
  }

}
TOP

Related Classes of edu.wiki.demo.TestSimilarity

TOP
Copyright © 2018 www.massapi.com. 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.