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");

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupopenrelevance-dev @
categorieslucene
postedJan 17, '10 at 10:07p
activeJan 17, '10 at 10:07p
posts1
users1
websitelucene.apache.org...

1 user in discussion

Rmuir: 1 post

People

Translate

site design / logo © 2018 Grokbase