Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
How can I get derived forms of some word using API?
Would be nice to have some examples of what exactly you're looking for, but anyway, few places for a closer look:
1) relations marked with PointerType.PERTAINYM and PointerType.DERIVED
3) Exceptions, namely Dictionary.getException
Thank you, getting pointers for word synsets helped! But I use PointerType.NOMINALIZATION for it (there is no PointerType.DERIVED, by the way).
An example of what I needed:
for word "interest", for it first noun synset, get derived forms:
interest, involvement - (a sense of concern with and curiosity about someone or something; ``an interest in music'' ) RELATED TO->(verb) interest#2
concern, interest, occupy, worry - (be on the mind of; ``I worry about the second Germanic consonant shift'' ) RELATED TO->(verb) interest#1
interest - (excite the curiosity of; engage the interest of)
The bold ones are words I needed as output.
i am trying to obtain the derived forms but I am not able to find any suitable method. PointerType.DERIVED doesn't exists !
Can you tell me what can be done for this?
Did you read the messages above in this thread? If yes, could you be more specific about your question?
About DERIVED. If you look in WordNet in globals.c, there is no DERIVED pointer there. JWNL has DERIVED defined as
public static final PointerType DERIVED = new PointerType("DERIVED", "DERIVED_KEY", ADV);
which applies to adverbs only and moreover, clashes on \ key with PERTAINYM. For these reasons it was removed from extJWNL.
I am looking for derivationally related forms - Terms in different syntactic categories that have the same root form and are semantically related : http://wordnet.princeton.edu/man/wngloss.7WN.html
I am implementing a paper - Rion Snow, Sushant Prakash, and Andrew Y. Ng, "Learning to Merge Word Senses". EMNLP 2007. http://ai.stanford.edu/~rion/papers/wordsenses_emnlp07.pdf and they report this feature as a very important feature.
I'd understand "Terms in different syntactic categories" to be nouns, verbs, etc. "that have the same root form and are semantically related" - here the one which comes to my mind is this pointer from global.c
// "+", /* 20 DERIVATION */
which in extJWNL is
NOMINALIZATION("+", "NOMINALIZATION", PointerTypeFlags.N | PointerTypeFlags.V),
again, for historical reasons.
An example would be:
00003131 00 a 03 adducent 0 adductive 0 adducting 0 003 ;c 06080522 n 0000 + 01449236 v 0201 ! 00002956 a 0101 | especially of muscles; bringing together or drawing toward the midline of the body or toward an adjacent part
there is + 01449236 which leads to
01449236 35 v 01 adduct 0 005 @ 01448100 v 0000 + 00003131 a 0102 + 00333203 n 0101 + 05291728 n 0101 ! 01449427 v 0101 01 + 01 00 | draw a limb towards the body; "adduct the thigh muscle"
Actually this example makes me think that the pointer name and the definition are misleading and have to be renamed.
I've updated the pointer name and definition for version 1.6.10