7

I found 2 libraries in Java – JWNL and JAWS. So far, it seems to me that these APIs are good for finding synsets and hyponyms and similar things. Do you know if there is some tool to use wordnet to check if a noun is a countable/uncountable noun? I mean, do people use wordnet for this task? Else, what is the tool?

Bikash Gyawali
  • 969
  • 2
  • 15
  • 33
  • What is the difference between a countable and non countable noun? – Angel O'Sphere Jun 20 '11 at 15:38
  • @Angel: Food, for example, is an uncountable noun while Boy is a countable noun. – Bikash Gyawali Jun 20 '11 at 20:00
  • Maybe wordnet is not a good place. Maybe I could refer a dictionary of words. Can anyone suggest such dictionaries and Java based APIs for that? – Bikash Gyawali Jun 20 '11 at 20:03
  • The problem is actually much more difficult than it seems at first glance, because whether or not a noun is countable often varies with the context. For example, "aid" is countable when talking about devices which help you do something, but uncountable when referring to financial assistance. In order to reliably identify nouns as countable or uncountable, then, you are going to first need to use a word sense disambiguation tool to find their meanings in context. WordNet alone is not sufficient for this. – Psychonaut Nov 04 '14 at 08:37

2 Answers2

1

If you can't find an easy source, you can consider building your own classifier, ie. write your own user-defined-function.

Factors to consider:

  • There are some English dictionaries that will mark nouns as (U) vs (C) for uncountable vs countable, and you might be able to find out online somewhere.
  • You could look at bigrams in a huge corpus to see if the noun is used in the sense of countable or uncountable: one boy or this boy or that boy but some food or a little bit of food etc.
  • There are many corner cases that you have to account for: I'd like some coffee vs I'd like a coffee (short for a cup of coffee). It gets complicated.

This SO question is very relevant, though it doesn't address your Java request. All three answers to that question are very good.

Hope this helps.

Community
  • 1
  • 1
Ram Narasimhan
  • 22,341
  • 5
  • 49
  • 55
0

I'm not 100% positive what you're going for, but WolframAlpha has a developer interface you may be able to use.

They also seem to have a java library already, though the free version appears to be limited to 2k queries (Don't know if thats a feasible limitation).

Brad Christie
  • 100,477
  • 16
  • 156
  • 200