RelEx comparatives

From OpenCog
Jump to: navigation, search

RelEx creates comparative dependencies, as described below. See RelEx comparisons for an overview.

Referenced papers:


Keywords:

  • Entities/Events: the objects of comparison
  • relationWord: the keyword used to express a comparative relation in a sentence
  • features: a set of features of the entity/event on which the comparism is being made on.
  • gradingWord : it denotes the nature/characteristics/objects on which the features are being compared.

For example, in the non-equal-gradable sentence "He runs less quickly than John.", we have the following relations that express the compartive aspect of the sentence

 _advmod(quickly, less)
 than(he, John)       ;; equivalent to: relationWord(entityS1, entityS2)
 _more(quickly, run)  ;; equivalent to: relationWord(gradingWord, features)
 degree(quickly, comparative)

and for the sentence "He is less intelligent than John."

 than(he, John)          ;; equivalent to: relationWord(entityS1, entityS2)
 _more(intelligent, he)  ;; equivalent to: relationWord(features, entityS1)   
 degree(intelligent, comparative)
 _advmod(intelligent, less) ;; less is the intensifier of intelligent
				    

Objective:

Extract comparative relations from the identified sentences. This involves, the extraction of entities/events and their features that are being compared, and comparative keywords.

Notes

  • The difference between _more(x,y) and more(x,y) is that, in the latter case the sentences has the relationword 'more' in it, while not in the first case.


Types of comparatives and subtypes identified ( based on the papers cited above)

1. Non-equal Gradable :

  • Coffee is expensive, but Tea is cheap.
  • The pig runs faster than the ant.
  • The first punch was harder than the second.
  • I have more CDs than Ben.
  • He earns less than me.

F

Types/sturcture of Non-equal Gradable
a. two entities one feature
  • He is more/less intelligent than John.
  • He runs more/less quickly than John.
  • He runs more/less quickly than John does.
  • He runs more/fewer miles than John.
  • He runs more/less than John.
  • He has more/less water than John.
  • He runs more/less slowly than John.
  • He runs more/less miles than John does.
  • He runs much more/fewer miles than John does.
  • He runs faster than John.
  • He runs much more miles today than John did yesterday.


b. one entity one feature, through time
  • He is more/less intelligent than in the past.
  • He runs more/less quickly than in the past.
  • He runs more miles today than yesterday.


c. one entity two or more features
  • He is more/less intelligent than attractive.
  • He was more hungry than angry
  • He ran it more/less quickly than carefully.
  • He has more/less money than time.
  • He runs more/less for money than for pleasure.
d. two entities two features
  • He is even more/less ingenious, than John is crazy.
  • He runs more than he works.


2 Equative:

Types/structure of Equative sentences
a. two entities one feature
  • Jack's hair is as long as Ben's.
  • Jack’s hair is same as Ben’s.
  • The book’s color is same as that of the pen’s.
  • The snail is running exactly as fast as the cheetah.


b. one entity one feature, through time
  • The coffee tastes the same as it did last year.
  • Mike runs as fast as he did last year.
  • The kick was as soft as the first.
  • He is as smart as I ever expected him to be.
c. one entity two or more features
  • She is as attractive as she is intelligent.
  • The man talks as fast as he thinks
  • Mike have as much cars as bikes.
d. two entities two features
  • Jack is as ingenious, as Ben is crazy.
  • I walked for as long as he ran.
e. other structures
  • This shoe is same as that one.
  • Nokia Mobile is Microsoft Mobile.


3. superlatives: (not sure whether this has been addressed already or not)

  • He is the best musician in the country.
  • Which do you think is the easiest language to learn?
  • She's the luckiest person I know.
  • My sister is the most careful person I know.
  • I can run the fastest in my class.


4. Non-Gradable:

  • The dress is similar/different in color to that one.
  • Aeroplanes have wings, ships have anchor.
  • Laptops have batteries, Pcs have monitors.
  • A motorcycle has a motor, but a bike doesn't.


5. Test/Special Cases :

a. Comparative sentences which don’t use word that indicate that a sentence is comparative.
  • Cellphone X has Bluetooth, but cellphone Y does not have
b. sentences that are not comparative but have indicator words.
  • cannot agree with you more


Only some part of the types/sub-types can be handled by RelEx presently. The implementation details can be found at

https://docs.google.com/document/d/1tsBhFp-lvPfh4CvtiJYzjAeKuzNKYNxA7DXbqXRuvJA/edit?usp=sharing