From: ilker k. <ilk...@gm...> - 2010-09-27 21:49:48
|
Dear Phil and GATErs, I am trying to prepare generic rule that finds all instances of all classes of ontology. (my aim was to prevent writing a rule for each class). I tried the rule below after suggestion, but it gives errors. What is the problem with the JAPE rule below, and is it possible to prepare a rule to find instances of all classes of the ontology? ------------------------ Phase: OntoMatching Input: Lookup Options: control = appelt Rule: PersonLookup ( {Lookup.class} ):thing --> :thing.Mention = {class = :thing.Lookup.class, inst = :thing.Lookup.inst} ------------------------ Regards, Ilker. On Mon, Sep 13, 2010 at 2:17 PM, ilker karcı <ilk...@gm...> wrote: > Dear Diana, Thank you for the URL, it seems I just missed it. > > Dear Phil, I will try the solution you suggested asap (when I return back > to home after work) > > Regards, > > Ilker. > > > On Mon, Sep 13, 2010 at 2:11 PM, Diana Maynard <d.m...@dc...>wrote: > >> H Ilker >> The slides and material are all available on the web for the September >> course. >> http://gate.ac.uk/wiki/TrainingCourseAug2010/ >> While the topic of module 9 is the same as that of the previous course in >> May (module 10), the contents are a little different and are more up to >> date. >> Diana >> >> >> On 13/09/10 12:09, ilker karcı wrote: >> >>> Dear Diana, >>> >>> I have been following the pages for the training in Montreal in September >>> 2010, but there are not any slides or code samples on the web yet. (I >>> apologise if I am missing sth, I was thinking they will be available after >>> the training.) >>> >>> Besides, on http://gate.ac.uk/family/training.html , Module 9 includes >>> "Semantic Annotation with GATE" but on the URL >>> http://gate.ac.uk/conferences/training-modules.html#track3 same topics >>> are under "Module 10: Ontologies and Semantic Annotation". >>> >>> Anyway, I have glanced over ontology support in GATE 6.0 shortly. I am >>> interested in the topics like relation extraction, measuring & evaluating >>> our methods etc. >>> >>> Thanks for your information. >>> >>> Regards, >>> >>> Ilker. >>> >>> On Mon, Sep 13, 2010 at 1:53 PM, Diana Maynard <d.m...@dc...<mailto: >>> d.m...@dc...>> wrote: >>> >>> Hi Ilker >>> Some things have changed recently in the implementation. I suggest you >>> follow the examples and slides from the more recent August/September >>> training course rather than the May one (see Module 9 for >>> ontologies and >>> semantic annotation). Make sure you use the latest version of GATE >>> also >>> for this (6.0-beta-1) >>> Regards >>> Diana >>> >>> >>> On 13/09/10 11:32, ilker karcı wrote: >>> > Dear All, >>> > >>> > I downloaded the GATE training files (May 2010) and implemented the >>> > "hands on" examples. For module 10 (ontologies and semantic >>> > annotation), I have some questions regarding Hands-On 5. >>> > >>> > 1 - ANNIE PRs gets tokens, words etc from the text document. >>> > 2 - OntoRootGazetteer & FlexibleGazetteer dynamically creates a list >>> > from the given ontology. >>> > 3 - When we run the pipeline defined, this list is matched with our >>> > text and we get an annotated document. >>> > 4 - To specialize the annotations, we use JAPE rules. So, instead of >>> > all annotations are "Test", we may have the annotation "Leader" for >>> > the instances of Leader class of ontology. >>> > >>> > My question is about the forth step. Do I have to manually write a >>> > JAPE rule for "each" class of ontology? Or is there a way to have a >>> > generic rule for that. Below is the JAPE rule for Hands-On 5 >>> example. >>> > >>> > 1// Phase: OntoMatching >>> > 2// Input: Lookup >>> > 3// Options: control = appelt >>> > 4// Rule: PersonLookup >>> > 5// ( >>> > 6// {Lookup.class == Person} >>> > 7// ):person >>> > 8// --> >>> > 9// :person.Mention = {class = :person.Lookup.class, inst = >>> > :person.Lookup.inst} >>> > >>> > I was just thinking if it is possible to use something like >>> > "Lookup.type(?) = Class" on line 6. So on the RHS I can have a Java >>> > code which loops all classes and annotates the annotation with the >>> > class name instead of "Test". Is it possible to have a generic rule >>> > like that? >>> > >>> > Kind Regards, >>> > >>> > Ilker. >>> > >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> > Start uncovering the many advantages of virtual appliances >>> > and start using them to simplify application deployment and >>> > accelerate your shift to cloud computing >>> > http://p.sf.net/sfu/novell-sfdev2dev >>> > >>> > >>> > >>> > _______________________________________________ >>> > GATE-users mailing list >>> > GAT...@li... >>> <mailto:GAT...@li...> >>> >>> > https://lists.sourceforge.net/lists/listinfo/gate-users >>> > >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Start uncovering the many advantages of virtual appliances >>> and start using them to simplify application deployment and >>> accelerate your shift to cloud computing >>> http://p.sf.net/sfu/novell-sfdev2dev >>> _______________________________________________ >>> GATE-users mailing list >>> GAT...@li... >>> <mailto:GAT...@li...> >>> >>> https://lists.sourceforge.net/lists/listinfo/gate-users >>> >>> >>> >> > |