Package ivory.lsh.data

Examples of ivory.lsh.data.WikiDocInfo


      } catch (Exception e) {
        e.printStackTrace();
      }

      keyOut = new PairOfInts();
      valOut = new WikiDocInfo();
    }
View Full Code Here


      fDocno = docnoPair.getLeftElement();
      eDocno = docnoPair.getRightElement();

      // parse WikiDocInfo object into sentences and vectors, based on the language id
      WikiDocInfo page;
      int eCnt = 0, fCnt = 0;
      while (wikiTexts.hasNext() && (eCnt < 1 || fCnt < 1)) {
        page = wikiTexts.next();
        if(page.getLangID() == F && fVectors.isEmpty()){
          fCnt++;
          fVectors = page.getVectors();
          fSentences = page.getSentences();
          reporter.incrCounter(Sentences.pairsF, fVectors.size());
        }else if(page.getLangID() == E && eVectors.isEmpty()){
          eCnt++;
          eVectors = page.getVectors();
          eSentences = page.getSentences();
          reporter.incrCounter(Sentences.pairsE, eVectors.size());
        }
      }

      /**
 
View Full Code Here

TOP

Related Classes of ivory.lsh.data.WikiDocInfo

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.