gate.creole.annic.lucene
Class LuceneDocument
java.lang.Object
gate.creole.annic.lucene.LuceneDocument
public class LuceneDocument
- extends Object
Given an instance of Gate Document, this class provides a method to convert
it into the format that lucene can understand and can store in its indexes.
This class also stores the tokenStream on the disk in order to retrieve it at
the time of searching
- Author:
- niraj
Method Summary |
List<Document> |
createDocuments(String corpusPersistenceID,
Document gateDoc,
String documentID,
List<String> annotSetsToInclude,
List<String> annotSetsToExclude,
List<String> featuresToInclude,
List<String> featuresToExclude,
String indexLocation,
String baseTokenAnnotationType,
Boolean createTokensAutomatically,
String indexUnitAnnotationType)
Given an instance of Gate Document, it converts it into the format that
lucene can understand and can store in its indexes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneDocument
public LuceneDocument()
createDocuments
public List<Document> createDocuments(String corpusPersistenceID,
Document gateDoc,
String documentID,
List<String> annotSetsToInclude,
List<String> annotSetsToExclude,
List<String> featuresToInclude,
List<String> featuresToExclude,
String indexLocation,
String baseTokenAnnotationType,
Boolean createTokensAutomatically,
String indexUnitAnnotationType)
- Given an instance of Gate Document, it converts it into the format that
lucene can understand and can store in its indexes. This method also stores
the tokenStream on the disk in order to retrieve it at the time of
searching