lucene-openrelevance-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r900228 - in /lucene/openrelevance/trunk: FILEFORMATS.txt src/java/org/apache/or/util/TrecTopicWriter.java
Date Sun, 17 Jan 2010 22:07:34 GMT
Author: rmuir
Date: Sun Jan 17 22:07:33 2010
New Revision: 900228

URL: http://svn.apache.org/viewvc?rev=900228&view=rev
Log:
ORP-5: correctly output description and narrative

Modified:
    lucene/openrelevance/trunk/FILEFORMATS.txt
    lucene/openrelevance/trunk/src/java/org/apache/or/util/TrecTopicWriter.java

Modified: lucene/openrelevance/trunk/FILEFORMATS.txt
URL: http://svn.apache.org/viewvc/lucene/openrelevance/trunk/FILEFORMATS.txt?rev=900228&r1=900227&r2=900228&view=diff
==============================================================================
--- lucene/openrelevance/trunk/FILEFORMATS.txt (original)
+++ lucene/openrelevance/trunk/FILEFORMATS.txt Sun Jan 17 22:07:33 2010
@@ -20,8 +20,12 @@
 <top>
 <num> Number: nnn
 <title>yackedy smackedy
-<desc> foo bar foo bar
-<narr> blah blah blah
+<desc> Description:
+foo bar foo bar
+blah blah blah
+<narr> Narrative:
+blah blah blah
+yackedy smackedy
 
 </top>
 <top>

Modified: lucene/openrelevance/trunk/src/java/org/apache/or/util/TrecTopicWriter.java
URL: http://svn.apache.org/viewvc/lucene/openrelevance/trunk/src/java/org/apache/or/util/TrecTopicWriter.java?rev=900228&r1=900227&r2=900228&view=diff
==============================================================================
--- lucene/openrelevance/trunk/src/java/org/apache/or/util/TrecTopicWriter.java (original)
+++ lucene/openrelevance/trunk/src/java/org/apache/or/util/TrecTopicWriter.java Sun Jan 17
22:07:33 2010
@@ -47,10 +47,10 @@
     writer.write("<title>");
     writer.write(topic.getTitle().toString());
     writer.write("\n");
-    writer.write("<desc>");
+    writer.write("<desc> Description:\n");
     writer.write(topic.getDescription().toString());
     writer.write("\n");
-    writer.write("<narr>");
+    writer.write("<narr> Narrative:\n");
     writer.write(topic.getNarrative().toString());
     writer.write("\n\n");
     writer.write("</top>\n");



Mime
View raw message