1. A computer-implemented process, comprising: receiving, in a computer memory: data identifying entities described in a document, wherein the document includes a plurality of tokens, and data defining sentiment values assigned to the tokens in the document; and processing the data in the computer memory with a processor to assign a sentiment value to an entity in the document, by applying a filter to a sequence of sentiment values corresponding to a sequence of tokens surrounding the entity in the document.