Lexical Entry as Java Object Clause Samples
Lexical Entry as Java Object. The Lexical Entry as Java object needs the part of speech as mandatory feature. This is in line with the current encoding of LMF lexicons 3 The software interface IHasLanguageIdentifier contains method signatures responsible for checking whether a supplied language cose is a valid ISO_369_3 code. Methods must be implemented in implementing classes. The current implementation returns always true. public LexicalEntry(String pos, String id) { IHasIdentifier, IHasPos this.pos = pos; Classes that implement these interfaces MUST have a Id = id; feature whose attribute is partofspeech and which addFeature(LMFAtts. POS , pos); contains the actual part of speech of the lexical entry } and an attribute which is the ID. If the ID is not in the original file (as it could be) then is created. The ID is necessary since one Lexicon contain more than one lexical entry. These interfaces are useful for serialization of the Lexical entry into a database, the ID of the Lexicon and the IDs of the lexical entries play the role of the natural key.
