Quantcast
Viewing latest article 8
Browse Latest Browse All 10

Gate Ontology Update

Instuction for making Ontology in Gate Developer -

(1) Creole Plugins to be configured -

Tools
Ontology
Ontology_Based_Gazetteer
Ontology_Tools
ANNIE

Place the attached disease_symptom.owl in “<<Gate Installation>>\plugins\Ontology_Tools\resources”

Click on Language Resource and

add OWLIM Ontology -

Follow picture – OI-01.jpg

Double Click the DiseaseSymptom Ontology and see the OI-02.jpg

How to create classes there -

Follow the P-01, P-02 and P-03 jpg files and also the Gate Documentation.

Now Load the PRs in the following sequence

Document Reset PR
ANNIE English Tokeniser
ANNIE POS Tagger
GATE Morphological Analyser
ANNIE Sentence Splitter

As Processing Resource

Now Create Onto Root Gazetteer

from PR

Give value as

Ontology: select previously created DiseaseSymptom;
Tokeniser: select previously created Tokeniser;
POS Tagger: select previously created POS Tagger;
Morpher: select previously created Morpher.

Now create Flexible Gazetteer.

Select previously created OntoRoot Gazetteer for gazetteerInst.

For another parameter, inputFeatureNames, click on the button on the right and
when prompt with a window, add ’Token.root’ in the provided textbox, then click Add button.
Click OK, give name to the new PR (optional) and then click OK.

Create an application called symptom pipeline -

maintain the sequence with – OI-03.jpg

Run the application.

You can see the results in OI-04.jpg

Now If we create a ontogazetteer, then we have to map in mapping.def

sample mapping is done for one and attached is the “mapping.def”

replace this in <<gate installation folder>>\plugins\ANNIE\resources\gazetteer

Then we can create a OntoGazetteer.
Our steps will be

(1) Creating the Ontology In Gate Developer.

(2) Define the Mapping of the Class of the Ontology in Mapping.def wiith the annotation file list (i.e like diseasename.lst etc with the class)

Attached is one sample Ontology File is attached (human_disease.owl).

All the pictures and owl files are attached here and here.


Viewing latest article 8
Browse Latest Browse All 10

Trending Articles