Hello Cong, I must see the actual ontology to get a clearer picture, but generally it is not a good idea to identify classes ( that is - to create annotations for classes). Classes serve only to group and classify objects. Objects are the entities detected in texts. So I suggest you have "coach" as an instance of some class (for example: protont:JobPosition). Then this position will be identified by the gazetteer and a Lookup annotation will be created for it. Then you can have a JAPE rule transform this lookup to a JobPosition annotation. This annotation type should also be present in the annotation types whitelist in nerc.properties file in com.ontotext.kim.KIMConstants.IE_ANN_TYPES .
If you send the ontology I will try to give more specific advices. Hope this helps Philip Alexiev Software Engineer, KIM team On 7 Mar 2012, at 1:09 AM, Cong Nguyen wrote: > Hello Philip and Kim team, > I want to annotate all of text which are the same as label of all classes in > my ontology, for example, i have class http://example#Coach rdfs:label > "Coach"@en, and a document "Alex Ferguson is a coach" will have annotation > "coach". I try to use jape rule, but, it doesn't work, even though with > example in Gate Jape Tutorial!!!. So i use KIM API, configure KIM not > removing Token annotation, and compare all the token with classes retrieving > from KIM API (Ontology.getSubClasses), but i must also configure all of my > class being visible in KIM. It'll be ok if there is only a small ontology, > but not if there is 2-3 ontology with hundreds of class > Please show me how to automatic configuring class's visibility in KIM, or > suggest me some advices. > Thank you and regards, > Cong > > -- > Cong Hoang Nguyen > University: Hanoi University of Science and Techonology. > Email: congnh0...@gmail.com > Facebook: http://www.facebook.com/monday0rsunday > YH: congnh0902 > Skype: monday0rsunday > Phone: (+84)1678565200 >
_______________________________________________ Kim-discussion mailing list Kim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/kim-discussion