Learning whether a text is positive or negative