[Sigmakee-develop] WordNet variables are empty
Status: Beta
Brought to you by:
apease
|
From: Sodel Vazquez-R. <S.V...@po...> - 2006-07-28 22:02:19
|
Hi, two questions: - I have downloaded all the .kif files and load them into a Sigma KB. I can then get the superclasses of a given class by accessing the "parents" HashMap in the class "KB". For example: human Human [Mammal, Animal, Agent, SelfConnectedObject, Object, WarmBloodedVertebrate, Physical, ITAgent, Primate, Vertebrate, Entity, CognitiveAgent, OrganicObject, CorpuscularObject, SentientAgent, Hominid, Organism] However, If I want to create a list like a hierarchy tree, I have two options: A).- Entity, Physical, Object, SelfConnectedObject, CorpuscularObject, OrganicObject, Organism, Animal, Vertebrate, WarmBloodedVertebrate, Mammal, Primate, Hominid, Human B).- Entity, Physical, Object, Agent, SentientAgent, CognitiveAgent, ITAgent, Human how could I create the hierarchy trees?, because "parents" HashMap is a list without order; is there a variable with these requirement into Sigama project? - Second, I have downloaded the right index and exc files for the version of the mapping files in order to use the class "WordNet". The files idx, exc and mappings are loaded successfully (apparently), however if I access: WordNet.relations, WordNet.nounSynsetHash, WordNet.synsetsToWords, WordNet.nounSUMOHash, etc; each one is empty. I have tested with the version 2.0 and 2.1, getting the same result. how could I solve this problem? have I omitted something? I am attaching my sources: WordNet, KB, KBaccessor (main class); in order to provide more details. NOTE: I am not using the whole Sigma project. Best regards, Sodel. -- Sodel Vazquez-Reyes School of Informatics The University of Manchester PhD Student (Room: H12) E-mail: s.v...@po... |