Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Trying to set up a concordance using linguistic rules

by apl (Monsignor)
on Feb 25, 2008 at 15:01 UTC ( [id://670013]=note: print w/replies, xml ) Need Help??


in reply to Trying to set up a concordance using linguistic rules

You might want to take a look at WordNet::QueryData.
  • Comment on Re: Trying to set up a concordance using linguistic rules

Replies are listed 'Best First'.
Re^2: Trying to set up a concordance using linguistic rules
by Not_a_Number (Prior) on Feb 25, 2008 at 18:37 UTC

    Given that WordNet explicitly excludes "determiners, prepositions, pronouns, conjunctions, and particles", I don't really see how a module providing an interface to this (otherwise excellent) resource might help the OP.

      The fact that WordNet only contains open-class words might be a benefit, actually. If it's not in WordNet, the OP probably doesn't want it in the concordance.

      ...except that that idealizes WN's coverage of English. You'd probably do well, though with the added heuristic: "and it's a short, uncapitalized word". (i.e. "Short, uncapitalized words that aren't in WN should probably be ignored.")

      ...and it ignores the problem of homonyms. (e.g. 'in' has 7 senses in WordNet)

      Nonetheless, felt the need to "defend" WN (since someone's quoting from the FAQ I wrote).

      Better solutions have been mentioned elsewhere in the thread. But, I'll also add that my approach to the problem would probably be more Information Retrieval oriented. I'd use KStem, a stemming algorithm whose output is (in the usual case) an actual word. It tries to correct some of the problems with Porter. That paper is pretty academic (but good). There's also downloadable Java code.

      Then I'd just use tf-idf style weights to pick out the interesting words.

      Seems easier than parsing, even if it's shallow parsing.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://670013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found