Revision: 15930
http://gate.svn.sourceforge.net/gate/?rev=15930&view=rev
Author: valyt
Date: 2012-07-13 11:01:51 +0000 (Fri, 13 Jul 2012)
Log Message:
-----------
The default index config used during tests includes direct indexes.
Modified Paths:
--------------
mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java
mimir/trunk/mimir-test/src/gate/mimir/test/TestUtils.java
Modified: mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java
===================================================================
--- mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java 2012-07-13
11:01:17 UTC (rev 15929)
+++ mimir/trunk/mimir-test/src/gate/mimir/test/QueryTests.java 2012-07-13
11:01:51 UTC (rev 15930)
@@ -128,12 +128,12 @@
*/
@AfterClass
public static void oneTimeTearDown() {
- for(File indexDir : indexDirs) {
- // recursively delete index dir
- if(!TestUtils.deleteDir(indexDir)) {
- System.err.println("Could not delete index directory " + indexDir);
- }
- }
+// for(File indexDir : indexDirs) {
+// // recursively delete index dir
+// if(!TestUtils.deleteDir(indexDir)) {
+// System.err.println("Could not delete index directory " + indexDir);
+// }
+// }
}
/**
Modified: mimir/trunk/mimir-test/src/gate/mimir/test/TestUtils.java
===================================================================
--- mimir/trunk/mimir-test/src/gate/mimir/test/TestUtils.java 2012-07-13
11:01:17 UTC (rev 15929)
+++ mimir/trunk/mimir-test/src/gate/mimir/test/TestUtils.java 2012-07-13
11:01:51 UTC (rev 15930)
@@ -69,18 +69,18 @@
new TokenIndexerConfig[]{
new TokenIndexerConfig(
ANNIEConstants.TOKEN_STRING_FEATURE_NAME,
- DowncaseTermProcessor.getInstance()),
+ DowncaseTermProcessor.getInstance(), true),
new TokenIndexerConfig(
ANNIEConstants.TOKEN_CATEGORY_FEATURE_NAME,
- NullTermProcessor.getInstance()),
+ NullTermProcessor.getInstance(), true),
new TokenIndexerConfig(
"root",
- NullTermProcessor.getInstance())
+ NullTermProcessor.getInstance(), true)
},
new SemanticIndexerConfig[]{
new SemanticIndexerConfig(
new String[]{"Measurement"},
- new SemanticAnnotationHelper[] {measurementHelper}),
+ new SemanticAnnotationHelper[] {measurementHelper}, true),
new SemanticIndexerConfig(
new String[]{"PublicationAuthor", "PublicationDate",
"PublicationLocation", "PublicationPages",
@@ -92,7 +92,8 @@
createHelper(helperClass, "PublicationPages",
null, null, null, null, null, Mode.ANNOTATION),
createHelper(helperClass, "Reference", new
String[]{"type"}, null, null, null, null, Mode.ANNOTATION),
createHelper(helperClass, "Section", new
String[]{"type"}, null, null, null, null, Mode.ANNOTATION),
- createHelper(helperClass, "Sentence", null, null,
null, null, null, Mode.ANNOTATION)}),
+ createHelper(helperClass, "Sentence", null, null,
null, null, null, Mode.ANNOTATION)},
+ true),
new SemanticIndexerConfig(
new String[]{"Abstract", "Assignee",
@@ -105,7 +106,8 @@
createHelper(helperClass, "InventionTitle", new
String[]{"lang", "status"}, null, null, null, null, Mode.ANNOTATION),
createHelper(helperClass, "Inventor", new
String[]{"format", "status"}, null, null, null, null, Mode.ANNOTATION),
createHelper(helperClass, "Document", null, new
String[]{"date"}, null, new String[]{"ucid"}, null, Mode.DOCUMENT),
- createHelper(helperClass, "PriorityClaim", null,
null, null, new String[]{"ucid"}, null, Mode.ANNOTATION)})
+ createHelper(helperClass, "PriorityClaim", null,
null, null, new String[]{"ucid"}, null, Mode.ANNOTATION)},
+ true)
},
new DocumentMetadataHelper[] {docHelper},
docHelper);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs