{"id":1262,"date":"2013-06-14T17:12:37","date_gmt":"2013-06-14T17:12:37","guid":{"rendered":"https:\/\/notebooks.dataone.org\/?p=1262"},"modified":"2013-06-14T17:12:37","modified_gmt":"2013-06-14T17:12:37","slug":"part-of-speech-tagger-ontology-generation","status":"publish","type":"post","link":"https:\/\/notebooks.dataone.org\/ontology-coverage\/part-of-speech-tagger-ontology-generation\/","title":{"rendered":"Part of Speech Tagger, ontology generation"},"content":{"rendered":"

This week my main goal was to get a Part of Speech (PoS) tagger up and running. After some searching and testing I decided to use the Natural Language Toolkit (NLTK.org). While it has to be installed (as opposed to running in a jar or python egg) it runs quickly and effectively. It provides a huge host of options and does a good job. While still not perfect, it works smoothly and more than satisfies our needs.<\/p>\n

However, because I was using an existing library, it didn’t take nearly the whole week. So I moved on to next weeks goals, which were to generate an ontology to represent the corpus using thesauri and the identified PoS words. This was slightly complicated as the current state-of-the-art approach only enables equivalence associations.<\/p>\n

To improve this I came up with a fairly novel approach to enable the inference of subclasses based upon synonym symmetry. That is, if you have two words, lets say Cow and Mammal, we can infer that cow is a subclass with the following process. Use the thesauri to look up all synonyms for cow and for mammal. We would find things like the following: cow->steer, mammal, bessie, milk, etc mammal->animal, classification, etc. Thus, we would see that while mammal is a synonym for cow, cow is NOT a synonym for mammal. What does that mean? Simply that ALL cows are mammals, but that NOT ALL mammals are cows. Or in other words, cow is a subclass of mammal.<\/p>\n

While this approach is not perfect, and introduces so possible weird associations (as not all synonyms make sense within a given context), initial testing suggests that this can greatly increase the ability of our technique to determine coverage. With this, I have most of the code completed to generate an ontology using a thesauri lookup algorithm. I also have same non-formal test cases to go with this.<\/p>\n","protected":false},"excerpt":{"rendered":"

This week my main goal was to get a Part of Speech (PoS) tagger up and running. After some searching and testing I decided to use the Natural Language Toolkit (NLTK.org). While it has to be installed (as opposed to running in a jar or python egg) it runs quickly Continue reading Part of Speech Tagger, ontology generation<\/span>→<\/span><\/a><\/p>\n","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[154,141,153],"_links":{"self":[{"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/posts\/1262"}],"collection":[{"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/comments?post=1262"}],"version-history":[{"count":1,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1263,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/posts\/1262\/revisions\/1263"}],"wp:attachment":[{"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/media?parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/categories?post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notebooks.dataone.org\/wp-json\/wp\/v2\/tags?post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}