Hi Tommaso, Hi all, Hope you have a more real summer weather that us...
$ sudo history | grep "useful part" : On Sun, 30 May 2010 16:39:06 +0200, Tommaso Teofili <[email protected]> wrote: > 2010/5/30 Oliver Strässer <[email protected]> >> >> Maybe we can begin the "getting started" page here ? :) >> Here comes my "really just user" questions : >> >> A/ How to use OpenCalais and AlchemyAPI services ? >> > > There is the UIMA integration which uses AlchemyAPI and OpenCalais to > enrich > graphnodes, documentation still needs to be done, I'll do it as soon as > possible but firstly I think we need to write an ontology for generated > UIMA > entities (I am doing this at the moment but I think that if Oliver has > already something in place it would be nice to have a look) so that the > graph gets enrihced in a proper RDF way. > > Take a look at this in the meantime: > http://svn.apache.org/repos/asf/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.uima/org.apache.clerezza.uima.metadata-generator/src/main/java/org/apache/clerezza/uima/metadatagenerator/UIMABaseMetadataGenerator.java > and at > http://svn.apache.org/repos/asf/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.uima/org.apache.clerezza.uima.utils/src/main/java/org/apache/clerezza/uima/utils/ExternalServicesFacade.java > I try (and get) a result from ExternalServicesFacade. I have a List<Annotation> result from esf.getCalaisAnnotations(document). But the problem is that I can't use the annot.getCoveredText() on the 2 firsts of the list because annot.begin() and annot.end() contains -7. So annot.getCoveredText() send an outOfBound error... As I'm not really involve in Clerezza and uima structure for now, do you have suggestion for this error ? It's a bug ? If yes more Clerezza part or uima one ? My test class in attachment if any (code on a motorcycle :) ). Have a good day.
