Thank you!!! Mission accomplished. :) Just to make a few notes on how I did this (in the event anyone else ever wonders, and to make sure I didn't do this in a weird way...)
I created a plain text input file that consisted of the following.... Professor Jimmy Smith and Mr. John Smith are friends. They both live in Mankato and like the Minnesota Gophers, but they aren't too happy with Coach Jones. Then, I started bin/cpeGui.sh to get the Collection Processing Engine Configurator going...When that was running, I loaded the directory in which my file was found, as well as the following (all found in the examples/descriptors directory): Collection Reader : FileSystemCollectionReadme.xml Analysis Engine : NamesAndPersonTitles_TAE.xml CAS Consumer : AnnotatorPrinter.xml And I clicked. Then I found the following in my output directory in a file called annotprint. <++++NEW DOCUMENT++++> DOCUMENT URI:file:/home/ted/data/test.txt uima.tcas.DocumentAnnotation Professor Jimmy Smith and Mr. John Smith are friends. They both live in Mankato and like the Minnesota Gophers, but they aren't too happy with Coach Jones. example.Name Professor Jimmy Smith org.apache.uima.examples.SourceDocumentInformation example.Name Mr. John Smith example.Name Minnesota Gophers example.Name Coach Jones Which is exactly the sort of information I wanted, and note, I can send it to you in an email message. :) As you can tell, I'm pretty new at this - given that, I feel like I should ask if this is this the standard way to set this up, or is there another way to go that is more common? (That said, I'm pretty content with what I did here, so asking mostly out of curiosity). Thanks! Ted On Thu, Dec 30, 2010 at 9:19 AM, Eddie Epstein <[email protected]> wrote: > 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 >> > -- Ted Pedersen http://www.d.umn.edu/~tpederse
