is there an open source library or web service that i can feed with text and get back the overall impression ? by impression i mean the emotional state, what the person who wrote the text happy,sad..etc
It is not that simple - writer could feel several emotions at-once and besides writer emotions could vary with different parts of text ...
In general you can start to dig the problem from these articles:
hth!