krzysztof1980 / jwktl

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

Label for every group of translations #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello.

Is there a way with the API to retrieve the label of every group of 
translations for a word?

I looked into them but i couldn't find anything.

Thanks in advance.
Best regards.

Gianpiero Venditti

Original issue reported on code.google.com by gianpier...@gmail.com on 2 Sep 2013 at 8:35

GoogleCodeExporter commented 9 years ago
There is currently no such property in the API. However, the labels are used 
internally for assigning the translations to a specific word sense. You could 
thus have a look at the fillContent() method of the 
http://code.google.com/p/jwktl/source/browse/trunk/jwktl/src/main/java/de/tudarm
stadt/ukp/jwktl/parser/en/components/ENTranslationHandler.java. There is a 
trans.getKey() which contains this label.

Currently, I don't have a good solution, how this should be integrated into the 
transformed data and accessible through the API. If you have good ideas or 
code, we could integrate that into the code.

Original comment by chmeyer.de on 4 Dec 2013 at 4:11

GoogleCodeExporter commented 9 years ago
The label is now available as IWiktionaryTranslation#getRawSense(). It's not 
persisted to the database by default though.

Original comment by jan.ber...@gmail.com on 21 Mar 2015 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by jan.ber...@gmail.com on 26 Mar 2015 at 1:37