Implemented computing sentiment for text fragments