inarahd / jwktl

Automatically exported from code.google.com/p/jwktl
0 stars 0 forks source link

Extract domain labels from the sense definition #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I have two questions concerning querying through the API the knowledge 
domain and the synonyms of entries 

Two questions please:

1- can I also get the domain of an entry using your api? For example, find out 
that "Diabetes" is a word of the domain "Medizin".

When you enter "Diabetes" in Wiktionary, you will indeed see its "Bedeutung" 
prefixed with the word "Medizin". Thats why I wonder if your api also covers 
this information.

2- I have the same question concerning the synonyms: is there a method like 
"entry.getSynonyms()"? I could not find a method that returns the synonyms of 
an entry.

Thank you in advance.
Best

Abou

Original issue reported on code.google.com by abdoulay...@neofonie.de on 21 Aug 2013 at 3:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1) To date, the domain label is part of the sense definition text. There is 
some code in the incubator that needs to be integrated into JWKTL which takes 
care about separating out the domain labels from the sense definition. I'll 
change this issue to an enhancement issue.

2) Synonyms can be accessed at the lexical entry level

entry.getRelations(RelationType.SYNONYM);

or at the word sense level:

entry.getSense(1).getRelations(RelationType.SYNONYM);

See documentation for details.

Original comment by chmeyer.de on 26 Aug 2013 at 9:39