Re: [Kim-discussion] Topic

2011-07-14 Thread Philip Alexiev @ Ontotext
Hi Srecko, Make sure you add the JAPE transducer after the gazetteer. Also it will be much simpler to examine the process directly in the GATE interface. Create a file, add it to the corpus, set the corpus to the pipeline and execute the pipeline. Disable the last resource to not remove th

Re: [Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
Hi Boyan, I created JAPE rule like you and Philip sugested, and stored to context/default/resources/grammar/acm folder. Then I run gate, and created JAPE transducer, topic_jape. I didn't specify inputASName, but I did add it to pipeline. Saved application state, populated KIMServer corpus, and run

Re: [Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
Hi Boyan, I didn't understand that I must create JAPE rule before I do everything else. I'll try this now. Thank you! Srecko On Thu, Jul 14, 2011 at 2:13 PM, Boyan Kukushev wrote: > Hi Srecko, > > In order to see your Topic annotations, you must create the JAPE rule that > Philip suggested: >

Re: [Kim-discussion] Topic

2011-07-14 Thread Boyan Kukushev
Hi Srecko, In order to see your Topic annotations, you must create the JAPE rule that Philip suggested: Phase: GazTopic Input: Lookup Options: control = appelt Rule: Topic ( {Lookup.class == "http://proton.semanticweb.org/2006/05/protont#Topic"} ):topic --> :topic.Topic = {rule=GazTopic, class

Re: [Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
I configured nerc.properties, and now I have this: com.ontotext.kim.KIMConstants.IE_ANN_TYPES=Abstract, Brand, ContactInfo, Date, Entity, Event, GeneralTerm, KeyLocation, KeyOrganization, KeyPerson, KeyPhrase, Location, Money, Object, Organization, Percent, Person, Position, Time, Acquirement, Job

Re: [Kim-discussion] Topic

2011-07-14 Thread Philip Alexiev @ Ontotext
The process is described in the customization guide you mentioned. You have added this RDF to the semantic repository. This means that now the gazetteer will be able to match the instances described there (searching for their labels in the texts) and will create Lookup annotations, when it find

Re: [Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
It is little hard to explain because I didn't do customisation. I took the file where one of my colleagues did it. File contains about 1200 instances and has content like this: @prefix protons: . @prefix protont:

Re: [Kim-discussion] Topic

2011-07-14 Thread Philip Alexiev @ Ontotext
Can you describe the exact actions you take to add the topics to the IE logic ? The exact customizations you have made to KIM. Thanks, Philip On 14 Jul 2011, at 1:41 PM, srecko joksimovic wrote: > Hi Philip, > with GATE is same as with Java code. I get the same annotations. I tried to > edit

Re: [Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
Hi Philip, with GATE is same as with Java code. I get the same annotations. I tried to edit nerc.properties and add Topic to *com.ontotext.kim.KIMConstants.IE_ANN_TYPES * list, but nothing changed*. * Do I have to change something else? Best, Srecko On Thu, Jul 14, 2011 at 12:26 PM, Philip Alexie

Re: [Kim-discussion] Topic

2011-07-14 Thread Philip Alexiev @ Ontotext
Hi Srecko, You can run the gate interface to check exactly what annotations are create ant their type. You can do this by running: bash KIM/bin/kim gate You probably use a Jape rule to match the Lookup annotations with class="http://proton.semanticweb.org/2006/05/protont#Topic"; and are crea

[Kim-discussion] Topic

2011-07-14 Thread srecko joksimovic
Hello Philip, I included my instances in KIM. When I use web UI, I see them all, and everything looks ok. But when I run code like this: KIMDocument kimDoc = apiCorpora.createDocument(_string_to_annotate, true); kimDoc = apiSemAnn.execute(kimDoc); KIMAnnotati