Package net.sf.clairv.search.util

Examples of net.sf.clairv.search.util.Doc


          oneNodeList.length() - 1), "|");
      while (token.hasMoreTokens()) {
        String oneDoc = token.nextToken();
        oneDoc = oneDoc.trim();
        StringTokenizer id_token = new StringTokenizer(oneDoc, "*");
        Doc doc = new Doc(Integer.parseInt(id_token.nextToken()), Float
            .parseFloat(id_token.nextToken()));
        nodeList.add(doc);
      }
      docList.add(nodeList);
    }
View Full Code Here


            while (token.hasMoreTokens()) {
              String oneDoc = token.nextToken();
              oneDoc = oneDoc.trim();
              StringTokenizer id_token = new StringTokenizer(
                  oneDoc, "*");
              Doc doc = new Doc(Integer.parseInt(id_token
                  .nextToken()), Float.parseFloat(id_token
                  .nextToken()));
              nodeList.add(doc);
            }
            list.add(nodeList);
View Full Code Here

          oneNodeList.length() - 1), "|");
      while (docToken.hasMoreTokens()) {
        String oneDoc = docToken.nextToken();
        oneDoc = oneDoc.trim();
        StringTokenizer id_token = new StringTokenizer(oneDoc, "*");
        Doc doc = new Doc(Integer.parseInt(id_token.nextToken()), Float
            .parseFloat(id_token.nextToken()));
        nodeList.add(doc);
      }
      docList.add(nodeList);
    }
View Full Code Here

    if (docList != null) {
      for (Iterator itr1 = docList.docList.iterator(); itr1.hasNext(); ) {
        OneNodeList l = (OneNodeList) itr1.next();
        if (l.nodeid.equals(nodeId)) {
          for (Iterator itr2 = l.oneNodeDocList.iterator(); itr2.hasNext(); ) {
            Doc d = (Doc) itr2.next();
            if (d.docid == docId) {
              tf = d.tf;
            }
          }
        }
View Full Code Here

    List list = new LinkedList();
    if (docList != null) {
      for (Iterator itr1 =  docList.docList.iterator(); itr1.hasNext(); ) {
        OneNodeList l = (OneNodeList)itr1.next();
        for (Iterator itr2 = l.oneNodeDocList.iterator(); itr2.hasNext(); ) {
          Doc d = (Doc) itr2.next();
          ScoreDoc sd = new ScoreDoc();
          sd.setNodeId(l.nodeid);
          sd.setDocId(d.docid);
          sd.setScore(d.tf);
          list.add(sd);
View Full Code Here

TOP

Related Classes of net.sf.clairv.search.util.Doc

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.