Try adding the following sample annotator to the end of your pipeline: $UIMA_HOME/examples/descriptors/cas_consumer/AnnotationPrinter.xml
Eddie On Wed, Dec 29, 2010 at 1:09 PM, Ted Pedersen <[email protected]> wrote: > Greetings all, > > I'm fairly new to UIMA, and to get myself oriented I've been running > the documentAnalyzer.sh demo/samples, and it's proven to be pretty > easy to use and quite informative (about what you can do with UIMA). > > One thing I'd like to be able to do is cut some output and send that > to colleagues who aren't necessarily using UIMA, so as to say - look! > I gave this input file to the NamesAndPersonTitles_TAE.xml > function/descriptor, and this is what I got! > > Let's assume they don't have UIMA installed, and that I don't want to > send them a screen shot (yes, I'm old school in that regard). Rather, > I'd just like to send them a text based file they can read in a > relatively simple way. > > It doesn't have to be exactly this format, but just to give you an idea... > > If my input is... > > Mr. Smith works at IBM. > > Then I'd like to send something like.... > > <name> <title> Mr. </title> Smith </name> works at IBM. > > (Actual results, doesn't seem to recognize IBM. :) Note that I just > wrote the above manually.... > > Anyway, I'd just like to have these results in a somewhat simple, > readable, mailable form. I would even settle for being able to cut and > paste from the right hand column where the annotation details are > shown, to get something like.... > > Person Title ("Mr.") > begin=0 > end=3 > Name ("Mr. Smith") > begin = 0 > begin = 9 > > Note that I had to do that manually...anyway, the specific format > doesn't actually matter (doesn't need to be either of the above > precisely) just something that conveys the output of UIMA in a way > that can be read by a human and send via email... > > BTW, I did see the HTML and XML options on the Results Display Format > buttons on Analysis Results, but when I try and use those to see what > they do that just seems to hang and nothing is displayed. I saw some > output directories interactive_temp and interactive_out, but those > just contained the input text and the .xmi output (which I don't find > particularly readable. :) > > Any thoughts, suggestions, arguments as to why this is a bad idea, > etc. are of course welcome. > > Cordially, > Ted > > -- > Ted Pedersen > http://www.d.umn.edu/~tpederse >
