Closed GoogleCodeExporter closed 8 years ago
Original comment by richard.eckart
on 27 Jan 2011 at 8:03
Original comment by richard.eckart
on 27 Jan 2011 at 8:04
This all sounds perfectly reasonable to me. +1
Original comment by phi...@ogren.info
on 27 Jan 2011 at 11:55
Original comment by richard.eckart
on 17 Mar 2011 at 8:31
After thinking a while about it, I've made up my mind to first implement
annotations by which an index can be defined. The syntax and names reflect the
involved UIMA classes:
@FsIndexCollection(fsIndexes = {
@FsIndex(label="index1", type=Token.class, kind=FsIndex.KIND_SORTED, keys = {
@FsIndexKey(featureName="begin", comparator=FsIndexKey.REVERSE_STANDARD_COMPARE),
@FsIndexKey(featureName="end", comparator=FsIndexKey.STANDARD_COMPARE)
}),
@FsIndex(label="index2", type=Sentence.class, kind=FsIndex.KIND_SET, keys = {
@FsIndexKey(featureName="begin", comparator=FsIndexKey.STANDARD_COMPARE)
})
})
While implementing the test case, I noticed that in order to support custom
indexes, we must not only be able to create index definitions and process
during descriptor creation, but we probably should also have some way to select
the index to use when using the select() methods. I'll open a separate issue
for this though.
Original comment by richard.eckart
on 18 Mar 2011 at 12:38
Implemented:
1) Ability to define indexes as annotations on a component. This can come in
helpful if a component or family of components inheriting from a common
ancestor class expect a certain index to be present.
2) Ability to scan for index definitions automatically (cf.
http://code.google.com/p/uimafit/wiki/TypeDescriptorDetection). This is helpful
when UIMA is embedded into a framework or application that provides types,
indexes or type priorities.
3) Ability to easily load an index description from the classpath (like.
createTypeSystemDescription(String... descriptorNames))
4) Ability to easily load an index description from an URL (like.
createTypeSystemDescriptionFromPath(String... descriptorURIs))
5) Added parameter to specify custom indexes in the lowest-level methods of
AnalysisEngineFactory and CollectionReaderFactory. If no indexes were
specified, indexes are tried to be created from the component annotations.
I think that the @IndexDescription() annotation initially suggested is not
needed as that should be covered by 3, 4 and 5.
Original comment by richard.eckart
on 18 Mar 2011 at 2:57
See issue 65.
Original comment by richard.eckart
on 18 Mar 2011 at 3:33
Original issue reported on code.google.com by
richard.eckart
on 27 Jan 2011 at 8:03