I'm going through a task where i have to extract the agreement feature of the nouns in the text... The agreement feature such as:
number = singular, plural
person = first, second, third
gender = male, female, neuter
animacy = animate, inanimate
is there anyway to extract these features from the text ....
If your data is English, as your comments suggest, then the nouns will never have person information, so we can discount that.
Number is easy, as has been mentioned by others: many part-of-speech taggers differentiate between singular and plural nouns.
Gender and animacy are more interesting. In English, these are semantic rather than syntactic properties of nouns. For example, take the sentence The princess is in the tower. We know that princess is feminine and animate not because of inflectional information but because we know the word's meaning. It's feasible to build up an ontology by getting a big old corpus of data and analysing the pronouns and anaphors in it. Your algorithm would look for examples like these:
The princess looks at herself in the mirror.
The princess is in the tower. She is sad.
It would work out (somehow) that princess is the antecedent of herself and her, and infer the properties of the noun from the known properties of the pronouns. Of course, now the problem becomes reference resolution, which isn't trivial. Here are some references from a recent Edinburgh University lecture course on the subject:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With