Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEBFBC667 for ; Sun, 6 May 2012 12:18:03 +0000 (UTC) Received: (qmail 61497 invoked by uid 500); 6 May 2012 12:18:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 61417 invoked by uid 500); 6 May 2012 12:18:00 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 61405 invoked by uid 99); 6 May 2012 12:17:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2012 12:17:59 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tmooh11@hotmail.com designates 157.55.1.152 as permitted sender) Received: from [157.55.1.152] (HELO dub0-omc2-s13.dub0.hotmail.com) (157.55.1.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2012 12:17:49 +0000 Received: from DUB116-W82 ([157.55.1.136]) by dub0-omc2-s13.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 6 May 2012 05:17:28 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_d3904598-a357-454e-b770-a66eb24e0931_" X-Originating-IP: [146.251.170.242] From: Abeer I To: Subject: please I need small clerafation about precition and recall in lucene code Date: Sun, 6 May 2012 12:17:29 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 06 May 2012 12:17:28.0536 (UTC) FILETIME=[3436C580:01CD2B82] --_d3904598-a357-454e-b770-a66eb24e0931_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit I want to ask about the lucene.benchmark which I used it to mauser the precision and recall in my lucene code . basically I used this code File topicsFile = new File("C:\\test\\topicfile.txt"); File qrelsFile = new File("C:\\test\\qrles.txt"); try (Directory dir = FSDirectory.open(new File("C:\\luceneIndex"))) { // org.apache.lucene.search.Searcher searcher = new IndexSearcher(dir, true); org.apache.lucene.search.IndexSearcher searcher= new IndexSearcher(dir, true); String docNameField = "filename"; PrintWriter logger = new PrintWriter(System.out, true); TrecTopicsReader qReader = new TrecTopicsReader(); //#1 QualityQuery qqs[] = qReader.readQueries( new BufferedReader(new FileReader(topicsFile))); //#1 Judge judge = new TrecJudge(new BufferedReader(new FileReader(qrelsFile))); //#2 judge.validateData(qqs, logger); //#3 QualityQueryParser qqParser = new SimpleQQParser("content", "path"); //#4 QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, searcher, docNameField); //org.apache.lucene.benchmark.quality.QualityQuery[],org.apache.lucene.benchmark.quality.QualityQueryParser,org.apache.lucene.search.IndexSearcher,java.lang.String SubmissionReport submitLog = null; QualityStats stats[] = qrun.execute(judge,submitLog, logger); QualityStats avg = QualityStats.average(stats); //#6 avg.log("SUMMARY",2,logger, " "); the topic file format is Number: 0 Financial <desc> Description: <narr> Narrative: </top> and qrles is # qnum 0 doc-name is-relevant 0 0 enwiki-20120403-pages-articles.xml-007.txt 1 can any one describe what is the meaning of these two file I tried to search for recourse that help me with this matter but unfortunately nothing helpful. how to write these two file (topic file,qrles ) is it don manually, if so what is the meaning of the file structure. thanks --_d3904598-a357-454e-b770-a66eb24e0931_--