-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
For fast retrieval of hypernyms / hyponyms at given depth adding a depth attribute to UBY SynsetRelation would help. To enable this, we can either
a) add a new table to the db (but this would require extra joins / duplicated data)
b) somewhat extend existing uby SynsetRelation class
c) use UBY's frequency attribute (but this alters its semantics)
Seems b) is possible by hacking a bit UBY hibernate configuration mechanism. We can:
- create our own
MySynsetRelationclass which extendsSynsetRelation - load all UBY hibernate
hbm.xmlfiles - replace in the files all the class strings referring to UBY
SynsetRelationwith ourMySynsetRelation
Problem of the approach: the new attribute depth still won't be read from input LMF XMLs, but this is not an issue for now as depth can be computed and stored into the db each time the system is initialized.