Pinned topicOntology and UIMA

‏2012-03-27T17:16:37Z
|Tags:

Answered question
This question has been answered.

Unanswered question
This question has not been answered yet.

hello,

I would like to know if it is possible to create a Dictionary from a Ontology (in OWL or RDF format). I would like that UIMA to be used to classify a words contained in a text by using a given ontology (Sentiment Analysis).
General: how can i use ontology with LRW?!

Actually i can transform a file from OWL/RDF-Format to csv-format. but the problem is i can not have a hierarchy in a UIMA-Dictionary (means the relation between the words). i don't know how can i transform the relation from the ontology and use it in UIMA-Annotator for ICA!

Maybe there are another way to use ontoloy with UIMA or use in IBM LanguageWare...
thanks!

Re: Ontology and UIMA

Actually i can transform a file from OWL/RDF-Format to csv-format. but the problem is i can not have a hierarchy in a UIMA-Dictionary (means the relation between the words). i don't know how can i transform the relation from the ontology and use it in UIMA-Annotator for ICA!

Maybe there are another way to use ontoloy with UIMA or use in IBM LanguageWare...
thanks!

Re: Ontology and UIMA

i try to solve following problem in sentiment analysis with using ontology:
One word may have different polarities in the same domain in combination with different targets. For example word "warm", restaurant domain:
"They gave me a warm welcome . . . " (positive)
". . . and warm beer." (negative)

Then when you run that basic annotator you get something like this attached image:

...and you can map the polarity to a field / facet in ICA for analysis.

This, however, will only pick up terms in that you've specified for this in your ontology....if you have defined this for 1,000 terms, it would identify 1,000 terms correctly. Others would not be picked up.

A different approach might be to create a parsing rule (or series of them) that look for these types of things. This is much more involved but doesn't involve explicitly describing every example in your ontology so if you end up down with road with some phrase like "good grief" ...if modeled properly, it would pick it up as a negative sentiment. Possibly more work than just defining them in an ontology? ...maybe.

I think the way you would get this to work in a simple dictionary form is to create a csv file from your ontology that is sort of flattened out...maybe looking something like:

Then when you run that basic annotator you get something like this attached image:

...and you can map the polarity to a field / facet in ICA for analysis.

This, however, will only pick up terms in that you've specified for this in your ontology....if you have defined this for 1,000 terms, it would identify 1,000 terms correctly. Others would not be picked up.

A different approach might be to create a parsing rule (or series of them) that look for these types of things. This is much more involved but doesn't involve explicitly describing every example in your ontology so if you end up down with road with some phrase like "good grief" ...if modeled properly, it would pick it up as a negative sentiment. Possibly more work than just defining them in an ontology? ...maybe.

Then when you run that basic annotator you get something like this attached image:

...and you can map the polarity to a field / facet in ICA for analysis.

This, however, will only pick up terms in that you've specified for this in your ontology....if you have defined this for 1,000 terms, it would identify 1,000 terms correctly. Others would not be picked up.

A different approach might be to create a parsing rule (or series of them) that look for these types of things. This is much more involved but doesn't involve explicitly describing every example in your ontology so if you end up down with road with some phrase like "good grief" ...if modeled properly, it would pick it up as a negative sentiment. Possibly more work than just defining them in an ontology? ...maybe.

create a dictionary from ontology is a nice idea...but in your example if you have some words between 'beer' and 'cold' something like following example: "the beers are very cold" you can't annotate with this dictionary! i think adjective and phrase should be stored separately like:

Re: Ontology and UIMA

create a dictionary from ontology is a nice idea...but in your example if you have some words between 'beer' and 'cold' something like following example: "the beers are very cold" you can't annotate with this dictionary! i think adjective and phrase should be stored separately like:

i try to solve following problem in sentiment analysis with using ontology:
One word may have different polarities in the same domain in combination with different targets. For example word "warm", restaurant domain:
"They gave me a warm welcome . . . " (positive)
". . . and warm beer." (negative)