dkpro / dkpro-jwktl

Java Wiktionary Library
http://dkpro.org/dkpro-jwktl/
Apache License 2.0
57 stars 26 forks source link

Label for every group of translations #3

Closed chmeyer closed 9 years ago

chmeyer commented 9 years ago

Originally reported on Google Code with ID 3

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

Reported by gianpiero.venditti on 2013-09-02 20:35:46

chmeyer 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/tudarmstadt/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.

Reported by chmeyer.de on 2013-12-04 16:11:15

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

Reported by jan.berkel on 2015-03-21 19:11:58

chmeyer commented 9 years ago

Reported by jan.berkel on 2015-03-26 13:37:19