dkpro / dkpro-jwktl

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

Make getRawSense() publicly useful #23

Closed vslavik closed 9 years ago

vslavik commented 9 years ago

0a8c30b532d1f203c24e03f8a986ae6f05b5a0c6 added IWiktionaryTranslation.getRawSense() method, but its implementation uses transient variable and so isn't stored in the database. That's a pity because this data is very useful — it's much more concise explanation of the sense than IWikitionarySense.getGloss() provides.

This PR makes it serializable so that it is available to users of the library and not just its test suite.

jberkel commented 9 years ago

Yes, when I added this field I wasn't sure if it would be needed on the db level. As @vslavik pointed out, the data quality is usually quite good.