diversicon-kb / diversicon-core

A knowledge base for lexicons and concepts, based on UBY
http://diversicon-kb.eu/tools
Other
0 stars 0 forks source link

Sense index is output in XML #24

Closed DavidLeoni closed 8 years ago

DavidLeoni commented 8 years ago

There's no need to have Sense index=0 in the output like here:

Sense id="test_sense-1" index="0" synset="test_synset-1"/>

Note index is not just for ordering, according to the documentation:

     * Returns an integer representing the commonness of this {@link Sense} instance,
     * with respect to the {@link LexicalEntry} containing it.
     * @return the commonness of this sense or null, if the index is not set     

Docs say it should be null when unknown but clearly an int can't be. Default value seems to be zero.