Each line in section <WNPosMap>
defines a mapping rule, with
the format FreeLing-PoS WN-PoS search-key
, where
FreeLing-PoS
is a prefix for a FreeLing PoS tag,
WN-Pos
must be one of n, a, r, or v,
and search-key
defines what should be used as a lemma to
search the word in WN files.
The given search-key
may be one of L, F, or a
FreeLing PoS tag. If L (F) is given, the word lemma
(form) will be searched in WN to find candidate senses. If a
FreeLing PoS tag is given, the form for that lemma with the given
tag will be used.
Example 1: For English, we could have a mapping like:
<WNposMap> N n L J a L R r L V v L VBG a F </WNposMap>which states that for words with FreeLing tags starting with N, J, R, and V, lemma will be searched in wordnet with PoS n, a, r, and v respectively. It also states that words with tag VBG (e.g. boring) must be searched as adjectives (a) using their form (that is, boring instead of lemma bore). This may be useful, for instance, if FreeLing English dictionary assigns to that form a gerund analysis (bore VBG) but not an adjective one.
Example 2: A similar example for Spanish, could be:
<WNposMap> N n L A a L R r L V v L VMP a VMP00SM </WNposMap>which states that for words with FreeLing tags starting with N, A, R, and V, lemma will be searched in wordnet with PoS n, a, r, and v respectively. It also states that words with tag starting with VMP (e.g. cansadas) must be searched as adjectives (a) using the form for the same lema (i.e. cansar) that matches the tag VMP00SM (resulting in cansado). This is useful to have participles searched as adjectives, since FreeLing Spanish dictionary doesn't contain any participle as adjective, but esWN does.
Lluís Padró 2013-09-09