Getting derived forms

Help
futujaos
2012-11-07
2013-05-23
  • futujaos

    futujaos - 2012-11-07

    Hello!
    How can I get derived forms of some word using API?

     
  • Aliaksandr Autayeu

    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
    2) MorphologicalProcessor
    3) Exceptions, namely Dictionary.getException

     
  • futujaos

    futujaos - 2012-11-07

    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.

     
  • Sumit Bhagwani

    Sumit Bhagwani - 2013-02-20

    Hey !
    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?

     
  • Aliaksandr Autayeu

    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.

     
  • Aliaksandr Autayeu

    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" 

     
  • Aliaksandr Autayeu

    Actually this example makes me think that the pointer name and the definition are misleading and have to be renamed.

     
  • Aliaksandr Autayeu

    I've updated the pointer name and definition for version 1.6.10

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks