dkpro / dkpro-lsr

Unified API for standard lexical-semantic resources.
https://dkpro.github.io/dkpro-lsr
Other
8 stars 1 forks source link

Add wrappers based on Uby #3

Open zesch opened 9 years ago

zesch commented 9 years ago

It would be good to wrappers that use the Uby API instead of the native ones.

judithek commented 9 years ago

adding my notes from last week to this issue:

I looked into the LSR wrappers for WordNet, GermaNet, Wiktionary, and this all looks feasible, i.e. using the UBY API instead. Actually, this is an interesting exercise which might improve the UBY API ;) In most cases (not Wikipedia, GermaNet), LSR could then also use Uby databases packaged as Maven artifacts.

Replacing the wrappers with the UBY API consists of at least 3 steps:

judithek commented 9 years ago

note regarding the Uby - LSR mapping:

In Wikipedia, LSR defines article redirects to be synonyms;

the converter for Uby-Wikipedia sets the redirects to RELATED:

                senseRelation.setRelName(ERelNameSemantics.RELATED);
                senseRelation.setRelType(ERelTypeSemantics.association);
judithek commented 8 years ago

I am currently mapping LexsemResource to Uby, these are the notes (added iteratively):

Entity -> LexicalEntry (access to POS and senses)

judithek commented 8 years ago

regarding LexicalSemanticResource:

LexicalSemanticResource -> Lexicon (mostly) or Uby for cross-resource access

getResourceName(); -> Lexicon.getName()

Set getEntity(String lexeme) -> uby.getLexicalEntries(lexeme, null, lexicon) Set getEntity(String lexeme, PoS pos) -> uby.getLexicalEntries(lexeme, pos, lexicon)

LexicalRelation -> SenseRelation, relation type as listed in ERelNameSemantics: antonymy, -> ANTONYM synonymy -> SYNONYM

SemanticRelation -> SenseRelation or SynsetRelation, relation type as listed in ERelNameSemantics: holonymy, -> HOLONYM, HOLONYMCOMPONENT, HOLONYMSUBSTANCE, HOLONYMMEMBER, HOLONYMPORTION, HOLONYMPART hypernymy, -> HYPERNYM, HYPERNYMINSTANCE hyponymy, -> HYPONYM, HYPONYMINSTANCE meronymy, -> MERONYM, MERONYMCOMPONENT, MERONYMSUBSTANCE, MERONYMMEMBER, MERONYMPORTION, MERONYMPART cohyponymy, -> there is no correspondence