Package edu.wiki.index

Examples of edu.wiki.index.WikipediaAnalyzer


      String queryString = br.readLine();
      Directory fsDir = FSDirectory.open(indexDir);

      IndexSearcher searcher = new IndexSearcher(fsDir);
      searcher.setSimilarity(new ESASimilarity());
      QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "contents",new WikipediaAnalyzer());

      long sTime,eTime;

          System.out.println("searching for: " + queryString);
          Query gabQuery = parser.parse(queryString);
View Full Code Here


      Directory fsDir = null;
    try {
      fsDir = FSDirectory.open(new File(indexPath));
      searcher = new IndexSearcher(fsDir);
      numWikiDocs = searcher.maxDoc();
      qparser = new QueryParser(Version.LUCENE_CURRENT, "contents", new WikipediaAnalyzer());
    } catch (IOException e) {
      e.printStackTrace();
    }
   
    }
View Full Code Here

    Arrays.fill(values, 0);
  }
 
  public ESASearcher() throws ClassNotFoundException, SQLException, IOException{
    initDB();
    analyzer = new WikipediaAnalyzer();
   
    ids = new int[maxConceptId];
    values = new double[maxConceptId];
   
    inlinkMap = new TIntIntHashMap(300);
View Full Code Here

TOP

Related Classes of edu.wiki.index.WikipediaAnalyzer

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.