WO2002041191A1 - Method and apparatus for analyzing affect and emotion in text - Google Patents

Method and apparatus for analyzing affect and emotion in text Download PDF

Info

Publication number
WO2002041191A1
WO2002041191A1 PCT/US2001/047970 US0147970W WO0241191A1 WO 2002041191 A1 WO2002041191 A1 WO 2002041191A1 US 0147970 W US0147970 W US 0147970W WO 0241191 A1 WO0241191 A1 WO 0241191A1
Authority
WO
WIPO (PCT)
Prior art keywords
affect
term
computer
score
assisted method
Prior art date
Application number
PCT/US2001/047970
Other languages
French (fr)
Inventor
Mark Kantrowitz
Original Assignee
Justsystem Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Justsystem Corporation filed Critical Justsystem Corporation
Priority to JP2002543330A priority Critical patent/JP2004514220A/en
Priority to AU2002236614A priority patent/AU2002236614A1/en
Publication of WO2002041191A1 publication Critical patent/WO2002041191A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/353Clustering; Classification into predefined classes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99933Query processing, i.e. searching
    • Y10S707/99935Query augmenting and refining, e.g. inexact access
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99937Sorting

Definitions

  • This invention relates to computer text documents and, more particularly, to analyzing affect and emotion in the documents.
  • Collier has analyzed emotional expression.
  • Collier G., Emotional Expression, Lawrence Eflbaum & Associates, In., 1985.
  • Collier focuses on the use of grammatical categories, such as the ratio of the number of verbs and adjectives, the use of past tense and negation, and changes in grammatical complexity, to assess a speaker's emotional state. While Collier briefly discusses verbal immediacy, most of the work is on the use of adjectives to describe an emotional state. Almost all work at the intersection of emotion and text is focused on defining emotion words like "fear” and "surprise” and not on analyzing the emotional attitudes expressed in subtle fashion through text.
  • Text classification methods like naive Bayes, measure the probability of a word given that a document belongs to a class (positive, negative, or neutral). These methods do not consider the probability of a word's absence. Also, these methods cannot correctly assign affect to documents that contain a mixture of affect terms (i.e., contain positive and negative affect terms). Moreover, there have been no attempts in the text classification literature to analyze affect.
  • the na ⁇ ve Bayes method computes the probability that a document merits a particular class label based on a simple combination of the independent probabilities for each of the words in the document.
  • this method will not work well for affect analysis because the expression of emotion in text is more complex.
  • the assumption of independent probabilities required by this method fails to properly account for the way in which positive and negative affects combine, and so will not be effective in classifying text documents accordmg to affect.
  • Some prior art text classification methods count the f equency and rarity of affective terms. However, the likelihood that a document is positive is not well- correlated with just the presence of positive affect terms, but also with the absence of negative affect terms.
  • the present invention analyzes affect and emotion in text, reporting a valence (positive, negative, or neutral) and intensity (magnitude) for the text's overall emotion and for the emotion associated with each named entity.
  • the system can be used to classify news articles as good news or bad news, classify web pages on a topic as positive or negative, and classify customer communications into complaints and compliments.
  • Other applications include the analysis of financial news for short-term prediction of the impact of the news on stock prices.
  • An embodiment of the present invention analyzes affect by computing a weighted sum of the scores for positive and negative affect terms (words and phrases), where the scores for negative affect terms are subtracted from the scores for positive affect terms.
  • Possible scoring methods include the frequency of occurrence of an affect term or the frequency multiplied by a term intensity or magnitude (e.g., "maim” and “kill” are more strongly negative than "hurt”). Negation of an affect term can either be ignored or used to invert the contribution from the negated affect terms. Most affect terms have only a single affect value. However, the affect assigned to some terms may depend on the term's part of speech.
  • the word “hit” is positive as a modifier ("hit movies"), negative as a noun ("took a direct hit”), and neutral (“hit a new 52-week high”) or negative as a verb ("John hit Mary”).
  • a part- of-speech tagger may be integrated with the affect analyzer.
  • the affect assigned to some terms may depend on the term's word sense. For example, the word “leading” has positive affect only when used to indicate prominence, not when used to refer to interline spacing.
  • Another embodiment of the present invention combines affect analysis with named entity extraction to assign an affect to each named entity mentioned in the document, in addition to assigmng an affect value to the entire document.
  • the affect is assigned to the nearest named entity that is not "blocked" by other affect terms or named entities (terms between the affect term and the nearest named entity).
  • the idea is that each mention of an affect term primes a positive or negative association in the reader's mind which may influence the reader's attitude to nearby named entities. But the affect decays rapidly, persisting only far enough to contribute to nearby named entities.
  • the direction of application of affect e.g., before or after the named entity
  • the direction controls whether the affect is inverted for some affect terms.
  • the sentences are parsed and the affect from verbs is attached to the verb's agents and objects, as appropriate, and likewise from modifiers to modified objects.
  • the intention is to capture the notion that the victim of a bad act is pitied and so gets positive affect. (But, in practice, it seems that proximity or involvement in a bad act tarnishes even the victim of the bad act.)
  • the ability to analyze emotion in text has many important applications. It can be used to classify news articles as good or bad, web pages as positive or negative, and customer communications (correspondence and telephone calls) as complaints or compliments.
  • a web search engine could be modified to allow the user to search for web pages that are positive or negative on a topic. It can also measure the magnitude of the emotion, allowing such documents to be prioritized according to intensity. It can be used to gauge user frustration with a user interface.
  • Another application of the present invention is to classify the links to a web page as positive or negative depending on the affect of the anchor text or text in the sentence or paragraph that contains the link. Since a link can be considered a vote by one web page for or against another web page, the affect associated with a link can help determine whether the target web page is considered to be a good or bad page. This information can be used to improve the quality of the search results on a web search engine. If one web page is regarded more positively than another by the sites that link to it, then it should be ranked higher.
  • FIG. 1 is a flow diagram of a first embodiment of a method according to the present invention
  • Fig.2 is a flow diagram of a second embodiment of a method according to the present invention.
  • Fig. 3 is a flow diagram of a third embodiment of a method according to the present invention.
  • Figs. 4A and 4B are a flow diagram of a fourth embodiment of a method according to the present invention.
  • Fig. 5 is a schematic drawing of an apparatus according to the present invention.
  • a first embodiment of a method according to the present invention begins at loop 100.
  • step 112 assigns a score to the affect term.
  • Affect terms may include one or more consecutive words.
  • the score assigned to each affect term in step 112 may be the number of times each affect term appears in the document 110 or may be the number of times each affect term appears in the document 110 multiplied by an intensity value assigned to each affect term.
  • An affect score for the document 110 is computed in step 114.
  • the affect score may be reported in terms of valance (positive, negative, or neutral) and/or intensity
  • a second embodiment of a method according to the present invention begins at loop 200.
  • step 212 assigns a score to the affect term.
  • step 214 classifies the affect term as either positive, negative, or neutral.
  • the sum of the scores for all of the positive affect terms is calculated in step 216.
  • step 218 sums the scores of all of the negative affect scores.
  • An affect score for the document 210 is computed in step 220.
  • a negation term is used in conjunction with the affect term, the contribution from the affect term to the affect score may be inverted. In other words, if the affect term is positive, it may be treated as negative in the computation of the affect score, and vice versa. Thus, if a negative affect term is associated with a negation term, the score of the negative affect term may be summed with the positive affect terms. Likewise, if a positive affect term is associated with a negation term, the score of the positive affect term may be summed with the negative affect terms.
  • Classification of an affect term as positive or negative may happen at each occurrence of the term, instead of globally designating the term as positive or negative.
  • the classification may be based on the part of speech of the term at that occurrence or the meaning of the term at that occurrence.
  • the affect score computed in step 220 may be a two part score, where the
  • Step 300 identifies the named entities contained in a document
  • loop 312 iterates for each affect term in the document 310.
  • step 312 iterates for each affect term in the document 310.
  • step 314 assigns a score to the affect term and step 316 classifies the affect term as either positive, negative, or neutral.
  • An affect score for the document 310 is computed in step
  • Step 318 may be omitted.
  • the affect terms are assigned to the named entities in step 320.
  • Loop 322 iterates for each named entity in document 310.
  • step 324 sums the scores of the positive affect terms assigned to the named entity and step 326 sums the scores of the negative affect terms assigned to the named entity.
  • An affect score for the named entity is computed in step 328.
  • Step 314 may further parse each sentence such that each verb's score is assigned to the verb's agent and objects and, likewise, each modifier's score is assigned to the modifier's objects.
  • the classification of the affect term as positive or negative may be based on the direction from the affect term to the named entity.
  • the assignment of the affect term to a named entity in step 320 may be restricted such that it does not occur across sentence boundaries. In other words, for such an assignment to occur, the affect term and the named entity may be required to be contained in the same sentence.
  • the affect terms may be assigned to the named entities such for each affect term, the score is assigned to the named entity that is the closest to the affect term, or for each named entity, the score from the closest affect term is assigned to the named entity. In the latter case, if another named entity or affect term is between the named entity and the closest affect term, no assignment takes place (i.e., the other named entity or affect term "blocks" the assignment).
  • Figs. 4A and 4B illustrate a fourth embodiment of a method according to the present invention.
  • step 400 identifies the named entities contained in a document 410.
  • Loop 412 iterates for each affect term in the document
  • step 414 assigns a score to the affect term and step 416 classifies the affect term as either positive, negative, or neutral.
  • Step 418 is computed in step 418.
  • Step 418 maybe omitted.
  • the affect terms are assigned to the named entities in step 420.
  • the variants of the named entities are canonicalized into groups such that the variants may be treated as one entity instead of a multitude of entities. For example, "Compaq Computer Corporation",
  • Loop 424 iterates for each variant group. Within loop 424, step 426 sums the scores of the positive affect terms within the variant group and step 428 sums the scores of the negative affect terms within the variant score.
  • An affect score for the variant group is computed in step 430.
  • the methods of the present invention maybe applied to text documents, for example, to news articles, financial news articles, web pages, customer communications, and information retrieval tasks (e.g., document retrieval, filtering, routing, and classification).
  • information retrieval tasks e.g., document retrieval, filtering, routing, and classification.
  • News articles may be classified as good or bad. Furthermore, the named entities within the news articles may be classified as good or bad.
  • Financial news articles may be classified as good or bad.
  • the affect score may be used to predict price changes in securities associated with the named entities in a financial news article.
  • Web pages or other web documents may be classified as positive or negative.
  • an information retrieval engine may search for web pages or documents that are positive or negative on a topic, in addition to the usual keywords. Search results may be prioritized according to the intensity of the affect score.
  • the affect scores for the page and the named entities may be stored in an index for efficient computation of affect values at search time.
  • Web pages may be classified as positive or negative according to the affect of the anchor text (sentence or paragraph) containing the link to the page (in all or some of the web pages that link to the page).
  • Customer communications for example, correspondence, e-mail, and telephone calls, may be classified as complaints or compliments.
  • E-mail may be classified as positive or negative according to the affect of the content and a simple glyph
  • a smiley or frowney face e.g., a smiley or frowney face
  • other visual indication e.g., a red light or a green light
  • Fig. 5 illustrates an apparatus capable of enabling the methods of the present invention.
  • a computer system 500 is utilized to enable the method.
  • the computer system 500 includes a display unit 510 and an input device 512.
  • the input device 512 maybe any device capable of receiving user input, for example, a keyboard or a scanner.
  • the computer system 500 also includes a storage device 514 for storing the method according to the present invention and for storing the text to be changed.
  • a processor 516 executes the method stored on the storage device 514.
  • the processor is also capable of sending information to the display unit 510 and receiving information from the input device 512.
  • Any type of computer system having a variety of software and hardware components which is capable of enabling the methods according to the present invention may be used, including, but not limited to, a desktop system, a laptop system, or any network system.
  • $word ⁇ s/ ⁇ [ ⁇ (YV ⁇ "]+//;
  • Saffectprev Sprev; $negtotal++; print "[Saffectprev] Saffect -post ⁇ n” if (Sdebug);
  • the PERL implementation may be difficult to understand because it mixes heuristics for named-entity extraction and end-of-sentence detection with the analysis of affect. It also operates by maintaining state variables that can be modified by each successive word of the text. These state variables, in turn, may modify the operation of the affect analyzer. An implementation which extracted all of the named entities and affect terms from each of the document's sentences would be easier to understand and to flowchart, but not nearly as efficient as this finite state machine implementation. The rest of this section explains the details of the PERL implementation.
  • the process begins by loading an affect lexicon.
  • Each entry in the lexicon consists of a phrase of up to five words, a positive or negative valence associated with the phrase, apart of speech constraint (noun, verb, and/or modifier), a direction, and an intensity.
  • the intensity is intended to represent differences in term magnitude (e.g., "hate” is much more negative than "dislike”) and defaults to 1.
  • Name stopwords are words that frequently appear within a company or other entity name in lowercase and can be safely ignored for continuity purposes.
  • the word “of in "United States of America” is a name stopword, as are the words “and”, “of, "a”, “the”, “for”, and so on.
  • Case stopwords are words which normally appear with the first letter capitalized, but which are not names, such as days of the week and names of the month.
  • the word is a name, it sets the Ssawnamewordp flag, otherwise it unsets the flag. It also checks whether the word ends in end-of-sentence punctuation (period, exclamation point, or question mark). If so, and if the word is not an end-of-sentence stopword (a word like "Dr.” or "Mr.” which does not indicate the end of a sentence, or a word with embedded periods like "U.S.”), it sets the Ssaweos flag and unsets the Ssawnamewordp flag. The latter is because names do not cross sentence boundaries. It also removes the end-of-sentence punctuation at this point.
  • Snameoffset is a count of the number of non-name words since the last name word. If Snameoffset is zero, it is still in the same name, and so appends the word to that name. Otherwise, it starts saving a new name. If it starts saving a new name, it resets the Saffect variable, which contains the most recently seen affect phrase. This prevents the affect from crossing a name boundary, so that an affect term only modifies the named entities that are closest to it.
  • the word is a name stopword, it saves it (plus any previous consecutive name stopwords) for possible later removal. This is because name stopwords may appear within a name, but not at the boundaries of the name - the name must begin and end with words of the appropriate case. If Scanonicalizevariants is set, it canonicalizes name variants so that "Compaq Computer Corporation", “Compaq Computer Corp.”, "Compaq Computer” and “Compaq" are treated as the name for a single entity, not four different names.
  • Ssawnamewordp flag is unset, it means the current word is not part of a name, and the Sname variable, if non-null, contains a name. So until it starts seeing names again, it can check for affect phrases.
  • Saffectoffset When it sees the first non-name word after a name (Snameoffset is zero), is should check for an affect phrase appearing before this name, but after any other names. Due to the nature of the state machine, the Saffect variable will contain the affect phrase preceding the name and Saffectoffset will be the number of non-affect, non-name words between the affect phrase and the name. If Saffectoffset is less than the Sdistancelimit, it assigns the affect phrase's affect to the name by incrementing the name's positive or negative count. It also adds the affect phrase to a list of positive or negative affect terms found in the document.
  • the phrase has negative affect
  • the negative affect count for the name is incremented
  • the total number of negative affect terms is incremented
  • the phrase is added to a list of negative affect terms for the document.
  • the phrase is saved to the Saffect variable (for use with the name that follows the affect term) and Saffectoffset and Snameoffset are set to zero.
  • the Sname variable is set to the null-string so that if another affect term is encountered before the next name, its affect will not apply to the previous name (i.e., the affect term inbetween blocks it).
  • the Saffect variable is still set to each successive affect phrase, so that the variable will hold the affect phrase closest to the name when the next name is encountered. If the window does not contain an affect phrase, the Snameoffset and Saffectoffset variables are incremented.
  • the window is then shifted in preparation for the next word in the document.
  • the various counters contain all the mformation necessary to calculate the affect associated with the document , and with the named entities contained within the document.
  • Snameuniquetotal and Snametotal contain the number of distinct names and the total number of names, • Spostotal is the total number of positive affect terms in the document, and Snegtotal is the total number of negative affect terms.
  • the overall document affect is calculated as a weighted difference of the two, where Spostotal is multiplied by Slambda and Snegtotal by (1 - Slambda) before subtraction.
  • Slambda is a weight between 0 and 1 that controls the relative influence of positive and negative affect terms.
  • Slambda defaults to X A, the names that appear in the document are sorted by their affect scores. If the Sallnames flag is unset, only names which appear more than once are reported.
  • Affect scores are calculated in the same fashion as for the overall document affect, based on the positive and negative totals for the name. If Sratio is set, the affect scores for a name are normalized by the number of occurrences of the name in the document, and a list of all the negative and positive affect terms in the document are is printed.

Abstract

Disclosed is a computer-assisted method for classifying a text document according to emotion and affect (Figure 1). A score is assigned (112) to each affect term in the document (110). An affect score is computed (114) for the document from the scores for each affect term. The document is then classified in accordance with the affect score. An apparatus for performing the computer-assisted method is also disclosed.

Description

METHOD AND APPARATUS FOR ANALYZING AFFECT AND EMOTION IN TEXT
BACKGROUND OF THE INVENTION
1. Field of the Invention This invention relates to computer text documents and, more particularly, to analyzing affect and emotion in the documents.
2. Description of the Prior Art
There are methods and apparatuses that model emotion and personality, synthesize emotional speech, and monitor physical manifestations of emotion (including changes in brain signals, facial expression, and motion). However, there is no prior art that analyzes and measures emotion and affect in text documents.
G. Collier has analyzed emotional expression. Collier, G., Emotional Expression, Lawrence Eflbaum & Associates, In., 1985. Collier focuses on the use of grammatical categories, such as the ratio of the number of verbs and adjectives, the use of past tense and negation, and changes in grammatical complexity, to assess a speaker's emotional state. While Collier briefly discusses verbal immediacy, most of the work is on the use of adjectives to describe an emotional state. Almost all work at the intersection of emotion and text is focused on defining emotion words like "fear" and "surprise" and not on analyzing the emotional attitudes expressed in subtle fashion through text.
Text classification methods, like naive Bayes, measure the probability of a word given that a document belongs to a class (positive, negative, or neutral). These methods do not consider the probability of a word's absence. Also, these methods cannot correctly assign affect to documents that contain a mixture of affect terms (i.e., contain positive and negative affect terms). Moreover, there have been no attempts in the text classification literature to analyze affect.
The naϊve Bayes method computes the probability that a document merits a particular class label based on a simple combination of the independent probabilities for each of the words in the document. However, this method will not work well for affect analysis because the expression of emotion in text is more complex. The assumption of independent probabilities required by this method fails to properly account for the way in which positive and negative affects combine, and so will not be effective in classifying text documents accordmg to affect. Some prior art text classification methods count the f equency and rarity of affective terms. However, the likelihood that a document is positive is not well- correlated with just the presence of positive affect terms, but also with the absence of negative affect terms. For example, applying known text classification methods to the task of finding positive web pages about Barney the purple dinosaur is ineffective. Most such pages were written by Barney-bashers in strong, negative tones. Presumably, somebody who hates Barney would want to see the negative pages, and somebody who loves Barney would want to see the positive pages. But a search for "love Barney purple dinosaur" would yield overwhelmingly negative pages, because the word "love" does not discriminate between positive and negative pages. Although the word "love" is one of the most common positive affect terms on the positive pages, it is also the most common positive affect term on the negative pages and appears more frequently on the negative pages than on the positive pages. Moreover, the word "love" appears 50% more frequently than the word "hate" on the negative pages. In fact, no positive affect term is effective at distinguishing positive Barney pages f om negative pages. The most accurate method of distinguishing positive Barney pages from negative Barney pages is to look for Barney pages that include positive affect terms with a concurrent absence of negative affect terms. None of the prior art concerns the classification of text documents according to affect. None of the prior art involves methods of analyzing affect in text, nor the identification of affect associated with each of the named entities mentioned in a text document. None of the prior art is capable of analyzing the subtle stylistic cues and influence that word choice applies to the emotional tone of a document. SUMMARY OF THE INVENTION
In order to overcome the limitations of the prior art, I have developed a method and apparatus for analyzing affect and emotion in text documents.
Affect and emotion manifest themselves in text documents through subtle stylistic cues, such as changes in the choice of synonyms. For example, "John crushed the competition" and "John won" communicate the same information, but convey a different attitude about John's role. The present invention analyzes affect and emotion in text, reporting a valence (positive, negative, or neutral) and intensity (magnitude) for the text's overall emotion and for the emotion associated with each named entity. The system can be used to classify news articles as good news or bad news, classify web pages on a topic as positive or negative, and classify customer communications into complaints and compliments. Other applications include the analysis of financial news for short-term prediction of the impact of the news on stock prices.
An embodiment of the present invention analyzes affect by computing a weighted sum of the scores for positive and negative affect terms (words and phrases), where the scores for negative affect terms are subtracted from the scores for positive affect terms. Possible scoring methods include the frequency of occurrence of an affect term or the frequency multiplied by a term intensity or magnitude (e.g., "maim" and "kill" are more strongly negative than "hurt"). Negation of an affect term can either be ignored or used to invert the contribution from the negated affect terms. Most affect terms have only a single affect value. However, the affect assigned to some terms may depend on the term's part of speech. For example, the word "hit" is positive as a modifier ("hit movies"), negative as a noun ("took a direct hit"), and neutral ("hit a new 52-week high") or negative as a verb ("John hit Mary"). Thus, a part- of-speech tagger may be integrated with the affect analyzer. Likewise, the affect assigned to some terms may depend on the term's word sense. For example, the word "leading" has positive affect only when used to indicate prominence, not when used to refer to interline spacing.
Another embodiment of the present invention combines affect analysis with named entity extraction to assign an affect to each named entity mentioned in the document, in addition to assigmng an affect value to the entire document. When assigning affect to named entities, the affect is assigned to the nearest named entity that is not "blocked" by other affect terms or named entities (terms between the affect term and the nearest named entity). The idea is that each mention of an affect term primes a positive or negative association in the reader's mind which may influence the reader's attitude to nearby named entities. But the affect decays rapidly, persisting only far enough to contribute to nearby named entities. In a preferred embodiment, the direction of application of affect (e.g., before or after the named entity) is ignored. In another embodiment, the direction controls whether the affect is inverted for some affect terms. In another embodiment, the sentences are parsed and the affect from verbs is attached to the verb's agents and objects, as appropriate, and likewise from modifiers to modified objects. The intention is to capture the notion that the victim of a bad act is pitied and so gets positive affect. (But, in practice, it seems that proximity or involvement in a bad act tarnishes even the victim of the bad act.)
The ability to analyze emotion in text has many important applications. It can be used to classify news articles as good or bad, web pages as positive or negative, and customer communications (correspondence and telephone calls) as complaints or compliments. For example, a web search engine could be modified to allow the user to search for web pages that are positive or negative on a topic. It can also measure the magnitude of the emotion, allowing such documents to be prioritized according to intensity. It can be used to gauge user frustration with a user interface.
Another application of the present invention is to classify the links to a web page as positive or negative depending on the affect of the anchor text or text in the sentence or paragraph that contains the link. Since a link can be considered a vote by one web page for or against another web page, the affect associated with a link can help determine whether the target web page is considered to be a good or bad page. This information can be used to improve the quality of the search results on a web search engine. If one web page is regarded more positively than another by the sites that link to it, then it should be ranked higher.
Since news articles about companies may have an impact on investor confidence in a company, the attitudes expressed in an article about the company may have a subtle impact on stock prices. Combining an analysis of news article affect with historical price movements may facilitate the short-term prediction of the impact of a news article on stock prices because such an apparatus for analyzing affect could operate more quickly than people can read the articles. The ability to predict price swings in securities, even short-term, can be extremely lucrative. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow diagram of a first embodiment of a method according to the present invention;
Fig.2 is a flow diagram of a second embodiment of a method according to the present invention;
Fig. 3 is a flow diagram of a third embodiment of a method according to the present invention;
Figs. 4A and 4B are a flow diagram of a fourth embodiment of a method according to the present invention; and Fig. 5 is a schematic drawing of an apparatus according to the present invention.
DESCRIPTION OF THE PREFERRED EMBODIMENTS
Referring to Fig. 1, a first embodiment of a method according to the present invention begins at loop 100. For each affect term in a document 110, step 112 assigns a score to the affect term. Affect terms may include one or more consecutive words. The score assigned to each affect term in step 112 may be the number of times each affect term appears in the document 110 or may be the number of times each affect term appears in the document 110 multiplied by an intensity value assigned to each affect term. An affect score for the document 110 is computed in step 114. The affect score may be reported in terms of valance (positive, negative, or neutral) and/or intensity
(magnitude).
Referring to Fig. 2, a second embodiment of a method according to the present invention begins at loop 200. For each affect term in a document 210, step 212 assigns a score to the affect term. Step 214 classifies the affect term as either positive, negative, or neutral. The sum of the scores for all of the positive affect terms is calculated in step 216. Likewise, step 218 sums the scores of all of the negative affect scores. An affect score for the document 210 is computed in step 220.
If a negation term is used in conjunction with the affect term, the contribution from the affect term to the affect score may be inverted. In other words, if the affect term is positive, it may be treated as negative in the computation of the affect score, and vice versa. Thus, if a negative affect term is associated with a negation term, the score of the negative affect term may be summed with the positive affect terms. Likewise, if a positive affect term is associated with a negation term, the score of the positive affect term may be summed with the negative affect terms.
Classification of an affect term as positive or negative may happen at each occurrence of the term, instead of globally designating the term as positive or negative. The classification may be based on the part of speech of the term at that occurrence or the meaning of the term at that occurrence.
The affect score computed in step 220 may be a two part score, where the
• sum of the scores of the positive affect terms is one part and the sum of the scores of the negative affect terms is the other. The affect score may be computed as the sum of the negative affect term scores subtracted from, the sum of the positive affect term scores.
A third embodiment of a method in accordance with the present invention is illustrated in Fig. 3. Step 300 identifies the named entities contained in a document
310. Loop 312 iterates for each affect term in the document 310. Within loop 312, step
314 assigns a score to the affect term and step 316 classifies the affect term as either positive, negative, or neutral. An affect score for the document 310 is computed in step
318. Step 318 may be omitted. The affect terms are assigned to the named entities in step 320. Loop 322 iterates for each named entity in document 310. Within loop 322, step 324 sums the scores of the positive affect terms assigned to the named entity and step 326 sums the scores of the negative affect terms assigned to the named entity. An affect score for the named entity is computed in step 328.
Step 314 may further parse each sentence such that each verb's score is assigned to the verb's agent and objects and, likewise, each modifier's score is assigned to the modifier's objects.
In step 316, the classification of the affect term as positive or negative may be based on the direction from the affect term to the named entity.
The assignment of the affect term to a named entity in step 320 may be restricted such that it does not occur across sentence boundaries. In other words, for such an assignment to occur, the affect term and the named entity may be required to be contained in the same sentence. The affect terms may be assigned to the named entities such for each affect term, the score is assigned to the named entity that is the closest to the affect term, or for each named entity, the score from the closest affect term is assigned to the named entity. In the latter case, if another named entity or affect term is between the named entity and the closest affect term, no assignment takes place (i.e., the other named entity or affect term "blocks" the assignment).
Figs. 4A and 4B illustrate a fourth embodiment of a method according to the present invention. Referring to Fig. 4A, step 400 identifies the named entities contained in a document 410. Loop 412 iterates for each affect term in the document
410. Within loop 412, step 414 assigns a score to the affect term and step 416 classifies the affect term as either positive, negative, or neutral. An affect score for the document
410 is computed in step 418. Step 418 maybe omitted. Referring now to Fig. 4B, the affect terms are assigned to the named entities in step 420. The variants of the named entities are canonicalized into groups such that the variants may be treated as one entity instead of a multitude of entities. For example, "Compaq Computer Corporation",
"Compaq Computer Corp.", "Compaq Computer", and "Compaq" are treated as the name for a single entity, not four different entities. Loop 424 iterates for each variant group. Within loop 424, step 426 sums the scores of the positive affect terms within the variant group and step 428 sums the scores of the negative affect terms within the variant score.
An affect score for the variant group is computed in step 430.
The methods of the present invention maybe applied to text documents, for example, to news articles, financial news articles, web pages, customer communications, and information retrieval tasks (e.g., document retrieval, filtering, routing, and classification).
News articles may be classified as good or bad. Furthermore, the named entities within the news articles may be classified as good or bad.
Financial news articles, likewise, may be classified as good or bad. The affect score may be used to predict price changes in securities associated with the named entities in a financial news article.
Web pages or other web documents may be classified as positive or negative. Furthermore, an information retrieval engine may search for web pages or documents that are positive or negative on a topic, in addition to the usual keywords. Search results may be prioritized according to the intensity of the affect score. The affect scores for the page and the named entities may be stored in an index for efficient computation of affect values at search time. Web pages may be classified as positive or negative according to the affect of the anchor text (sentence or paragraph) containing the link to the page (in all or some of the web pages that link to the page).
Customer communications, for example, correspondence, e-mail, and telephone calls, may be classified as complaints or compliments. E-mail may be classified as positive or negative according to the affect of the content and a simple glyph
(e.g., a smiley or frowney face) or other visual indication (e.g., a red light or a green light) displayed in a summary view of the e-mail message.
Fig. 5 illustrates an apparatus capable of enabling the methods of the present invention. A computer system 500 is utilized to enable the method. The computer system 500 includes a display unit 510 and an input device 512. The input device 512 maybe any device capable of receiving user input, for example, a keyboard or a scanner. The computer system 500 also includes a storage device 514 for storing the method according to the present invention and for storing the text to be changed. A processor 516 executes the method stored on the storage device 514. The processor is also capable of sending information to the display unit 510 and receiving information from the input device 512. Any type of computer system having a variety of software and hardware components which is capable of enabling the methods according to the present invention may be used, including, but not limited to, a desktop system, a laptop system, or any network system. The following sets forth portions of computer code in the PERL language for implementing an embodiment of the present invention.
#! /usr/local/bin/perl
Slexicon = "affect.txt";
# This variable contains words that may appear within a company
# name in lowercase and so should be ignored for continuity
# purposes. Also numbers and punctuation.
@namestop = ("&","and","o^"a","the","for","de","air,"-",Y^
# Since "May" and "June" can be real names, we need to be a bit more
# sophisticated than this, but this will do for now.
@casestop = "monday","mesday","wednesday","thursday","fHday"^
"fridays","saturdays"s"sundays","january","febnιary","march","apri
"december");
@stopwords = ("the","of^"to","in","a","for","with"5"that","on","as","at","by","from","an"5"about "instead","there,,,"nonetheless","no","why,,,,,because","he");
@eosstop = ("dr.","mr.","mrs.","ms.,,,"u.s.");
# and, is, or, will,"be","its","are","more","said","has","our","any","th^^ "other","been","they","we","but","were","such","taken","m^^
# "Inc.","most","not",,,many","just",Co. # Table used to merge variant forms of a name.
%variants = ("International Business Machines","IBM","Compaq Comρuter","Compaq","Carne
Scanonicalizevariants = 1;
# Table used for detecting negation.
%negations = ("donr,l, "not", 1, "no", 1, "cannot", l,"canT^^^
# If set to one, inverts the value of the affect phrase. $negationinverts = 0;
# &negwordρ($word)
# Load the lexicons open(LEX,"$lexicon"); while (<LEX>) { chomp;
($plιrase,$valence,$partofspeech,$direction,$intensity) =; split(/:/,$_); $phrase =~ tr/A-Z/a-z/; if($valence eq "+") { if($intensityne "") {
$pos{$phrase} += $intensity; } else { $pos{$phrase}++;
} } elsif($valence eq "-") {
Figure imgf000012_0001
Figure imgf000012_0002
< $neg{$phrase}++;
} }
} close(LEX);
# Parameters $distancelimit = 10; Sdebug = 0;. $ratio = 1 ; $allnames = 0;
# Variables
$prev = "";
$pprev = "";
Sppprev = ""; $pppprev = "";
Sppppprev = "";
$name = "";
$nameoffset = 0;
Saffect = ""; Saffectprev = "";
$affectoffset = 0;
Slastname = "";
$sawnamewordp = 0; $nameuniquetotal = 0;
Snaraetotal = 0;
$lambda = 0.5;
Snegtotal = 0;
$postotal = 0;
# Open, the document file while (o) { # Remove the carriage return at the
# end of the line, chomp;
# Remove embedded HTML coding. sΛ<.*\>//g; # Convert hyphens to spaces. •
# sΛ-/ /g;
# Split the line on whitespace to obtain the words. @words =.split(Λs+ );
# Iterate over the words in the line. foreach $word (@words) {
# Remove certain non-alphanumeric characters from
# the front and end of the word, as well as possessive
# markers. End-of-sentence punctuation is left on
# the word, to be removed later. $word =~ s/Λ[\(YV\"]+//;
Sword =~ s/[\)YV\"\,]+$//; Sword =~ s/Ys$//;
Ssaweos = 0;
# First look for names. if ((&namewordp($word) &&
!&namestopp($word) &&
!&sropp($word) &&
!&casestopp($word)) || (Ssawnamewordp && &namestopp($word))) { Ssawnamewordp = 1 if (Ssawnamewordp = 0); if (Sword =- /[\.\!\?]$/ && !&eosstopp($word)) {
Ssaweos = 1 ; Ssawnamewordp = 0;
Sword =~ s/[\.\!\?]$//; } else { Ssaweos = 0;
I if (Snameoffset = 0) {
# Same name, if (Sname eq "") { Sname = "Sword";
} else { Sname .= " Sword";
} } else { # Different name. Reset the name and the affect.
Snameoffset = 0;
Sname = "Sword";
Saffect = "";
Saffectprev = ""; } if (&namestopp($word)) {
Slastname .= " Sword"; } else {
Slastname = "";
}
} else { Ssawnamewordp = 0; }
if ((! Ssawnamewordp || Ssaweos) && (Sname ne "")) {
# Just completed the name by seeing the first non-name
# word after the name. At this point we should check # for an affect phrase appearing before this name
# but after any other names. If one is found, assign
# its affect to the name. if ($nameoffset = 0) { if (Slastname ne "") { Sname =~ s/$lastname$//;
} if (Scanonicalizevariants) {
Sname == &canonicalize($name);
} if (Ssawname {Sname} = 0) {
$nameuniquetotal++;
Ssawname {Sname} ++; } else {
Ssawname {Sname} ++; }
$nametotal++; print "$name\n" if (Sdebug); Ssawnamewordp = 0;
if (Saffectoffset <= Sdistancelimit &&
Saffect ne "") { if (&ρosp($affectprev,$affect) > 0) { Spositive {Sname} ++; $paffect{$affect}=l; print "[Saffectprev] Saffect +ρre\n" if (Sdebug); } if (&negp($affectprev,$affect) > 0) { Snegative {Sname} ++; $naffect{$affect}=l; print "[Saffectprev] Saffect -pre\n" if (Sdebug);
}
Saffect = ""; Saffectprev = ""; }
}
# Start looking for an affect phrase appearing after the name.
# Use a window of up to five words, thereby allowing 1 -grams
# through 5-grams for the affect phrases. Sword =~ tr/A-Z/a-z/; if (&negp($prev,$word) > 0) {
Snegative {$name}++ if (Snameoffset <= Sdistancelimit);
Saffect = "Sword";
Saffectprev = Sprev; $negtotal++; print "[Saffectprev] Saffect -post\n" if (Sdebug);
$naffect{$affect}=l;
Saffectoffset = 0;
Snameoffset = 0;
Sname = ""; } elsif (&posp($prev,$word) > 0) {
Spositive {Sname} ++ if (Snameoffset <= Sdistancelimit); Saffect = "Sword";
Saffectprev = Sprev; . $postotal++; print "[Saffectprev] Saffect +post\n" if (Sdebug); $paffect{$affect}=l; Saffectoffset = 0;
Snameoffset = 0; Sname = ""; } elsif (&negp($pprev,"$prev Sword") > 0) {
Snegative {$name}-H- if (Snameoffset <= Sdistancelimit); Saffect = "Sprev Sword";
Saffectprev = Spprev; $negtotal++; print "[Saffectprev] Saffect -postW if (Sdebug); $naffect{$affect}=l; Saffectoffset = 0;
Snameoffset = 0; Sname = "";
} elsif (&posρ($pprev,"$prev Sword") > 0) {
Spositive {$name}-H- if (Snameoffset <= Sdistancelimit); Saffect = "Sprev Sword";
Saffectprev = Spprev;
$postotal++; print "[Saffectprev] Saffect +post\n" if (Sdebug);
Spaffect {Saffect} =1;
Saffectoffset = 0;
Snameoffset = 0;
Sname = ""; } elsif (&negp($ppprev,"$pprev Sprev Sword") > 0) {
Snegative {Sname} ++ if (Snameoffset <= Sdistancelimit);
Saffect = "Spprev Sprev Sword";
Saffectprev = Sppprev;
$negtotal++; print "[Saffectprev] Saffect -post\n" if (Sdebug);
$naffect{$affect}=l;
Saffectoffset = 0;
Snameoffset = 0;
Sname = ""; } elsif (&posp($ppprev,"$pprev Sprev Sword") > 0) {
Spositive {Sname} ++ if (Snameoffset <= Sdistancelimit);
Saffect = "Spprev Sprev Sword";
Saffectprev = Sppprev;
$postotal++; print "[Saffectprev] Saffect +post\n" if (Sdebug);
Spaffect {$affect}=l;
Saffectoffset - 0;
Snameoffset = 0;
Sname = ""; } elsif (&negp($pppprev,"$ρpprev Spprev Sprev Sword") > 0) {
Snegative {Sname} ++ if (Snameoffset <= Sdistancelimit); Saffect = "Sppprev Spprev Sprev Sword"; Saffectprev = Spppprev;
$negtotal++; print "[Saffectprev] Saffect -posf\n" if (Sdebug);
$naffect{$affect}=l;
Saffectoffset = 0; 5 Snameoffset = 0;
Sname = "";
} elsif (&posρ($pppprev,"$ρpprev Spprev Sprev Sword") > 0) {
Spositive {$name}++ if (Snameoffset <= Sdistancelimit);
Saffect = "Sppprev Spprev Sprev Sword"; 10 Saffectprev = Spppprev;
$postotal++; print "[Saffectprev] Saffect +post\n" if (Sdebug);
$paffect{$affect}=l;
Saffectoffset = 0; 15 Snameoffset = 0;
Sname = "";
} elsif (&negρ($ppppprev,"$pppprev Sppprev Spprev Sprev Sword") > 0) {
Snegative {Sname} ++ if (Snameoffset <- Sdistancelimit);
Saffect = "Spppprev Sppprev Spprev Sprev Sword"; 20 Saffectprev = Sppppprev;
$negtotal++; print "[Saffectprev] Saffect -post\n" if (Sdebug);
$naffect{$affect}=l;
Saffectoffset = 0;
25 Snameoffset = 0;
Sname = "";
} elsif (&posρ($ppppρrev,"$pppprev Sppprev Spprev Sprev Sword") > 0) { Spositive {Sname} -H- if (Snameoffset <= Sdistancelimit);
Saffect = "Spppprev Sppprev Spprev Sprev Sword";
Saffectprev = Sppppprev;
$postotal++; print "[Saffectprev] Saffect +ρost\n" if (Sdebug);
Spaffect {Saffect} =1;
Saffectoffset = 0;
Snameoffset = 0;
Sname = "";
} else { $nameoffset++ if (Sname ne ""); $affectoffset++ if (Saffect ne "");
}
# AFFECT affectoffset NAME nameoffset AFFECT
Sprev = Sword; Spprev = Sprev; Sppprev = Spprev; Spppprev = Sppprev; Sppppprev = Spppprev;
print "NAMES (Distinct/Total): $nameuniquetotal/$nametotal\n"; printf "DOCUMENT AFFECT: %d (%d - %d)\n", 2*(($lambda * Spostotal) - ((1 - Slambda) * Snegtotal)), Spostotal, Snegtotal;
print "\nNames:\n"; foreach Sname (sort {&score($a) <=> &score($b)} keys(%sawname)) {
if (Sallnames \\ Ssawname {Sname} > 1) printf " %.2f\t%s (%d - %d / %d)\n",&score($name),$name,$positive {Sname} ,$negative {Sname} ,$sawname {Sname} ; } } if (Sdebug) { print "\nPositive Names:\n"; foreach Sname (sort {Spositive {$b} <=> Spositive {$a}} keys(%positive)) { printf " %4d\t%s\n",$positive {Sname}, Sname;
} print "\nNegative Names :\n"; foreach Sname (sort {Snegative {$b} <=> Snegative {$a}} keys(%negative)) { printf " %4d\t%s\n",$negative {Sname} ,$name; }
} print "\nPositive Affect Terms:"; Sfirst = 0; foreach Saffect (sort {$a cmp $b} keys(%paffect)) { if ($first % 7 = 0) { print "\n\t$affect"; } else { print ", Saffect";
Figure imgf000022_0001
} if (Sfirst = 0) { print "\n\tNONE\n";
} else { print "\n"; print "VnNegative Affect Terms:";
Sfirst = 0; - foreach Saffect (sort {$a cmp $b} keys(%naffect)) { if($first % 8 = 0) { print "\n\t$affect";
} else { print ", Saffect";
SfirstH if ($first = 0) { print "\n\tNONE\n";
} else { print "\n"; } sub canonicalize { local(Sname) = @__; local(Sresult);
Sresult = Sname;
Sresult =~ s/ corporation//!; Sresult =~ s/ corpJ/i;
Sresult =~ s/ university//i;
Sresult =~ s/ univJ/i;
Sresult ==~ s/ inc.//i;
Sresult =~ s/ llcJ/i; Sresult — s/ llc//i; Sresult =~ s/ l.l.c.//i; Sresult =~ s/ l.p.//i; 5 Sresult =~ s/ lp.//i;
Sresult = $variants {Sresult} if ($ variants {Sresult} ne ""); if (Sresult ne "") { retum(Sresult); } else { 10 return(Sname);
} }
K>
K> sub negwordp {
15 local(Sword) = @_; if ((Sword =~ /n\'t/ϊ) || Snegations {Sword}) { return(l); } else { return(O);
20 }
} sub negp { local($prev,$phrase) = @_;
25 local(Sresult); if (Snegationinverts && &negwordp($prev)) {
Sresult = $pos{"$plιrase"}; } else {
Sresult = $neg {"Sphrase"} ;
} retum(Sresult);
} sub posp { local($prev,$phrase) = @_; local(Sresult); if (Snegationinverts && &negwordp($prev)) { Sresult = $neg { "Sphrase" } ; else {
' Sresult = $pos{"$phrase"};
} return(Sresult); }
' sub score { local(Sname) = @_; local (Sresult); Sresult = 2*(($lambda * Spositive {Sname}) -
((1 - Slambda) * Snegative {Sname})); if (Sratio) { return($result/$sawname{$name});
} else { return(Sresult); }
}
sub namestopp { local(Sword) = @_; local($result,$stop); Sword =~ tr/A-Z/a-z/; $result=0; foreach Sstop (@namestop) {
$result=l if (Sstop eq Sword);
} return(Sresult); } sub stopp { local(Sword) = @_; local($result,$stop); Sword =~ tr/A-Z/a-z/;
$result=0; foreach Sstop (@stoρwords) {
$result=l if (Sstop eq Sword);
} return(Sresult);
} sub casestopp { local(Sword) - @_; local($result,$stop);
Sword =~ tr/A-Z/a-z/; Sword =~ s/[\.\!\?]$//; $result=0;
foreach Sstop (@casestop) {
$result=l if (Sstop eq Sword);
} return(Sresult); } sub eosstopp { local(Sword) = @_; 1 ocal (Sresult, $ stop) ; Sword =~ tr/A-Z/a-z/;
$result=0; foreach Sstop (@eosstop) {
$result=l if (Sstop eq Sword);
} $result=l if (length($ word) = 2); return(Sresult);
} sub namewordp { local(Sword) = @_; local(Sfletter); Sfletter = substr($word,0,l); return(&ucasep($fletter)); # II &digitp($fletter)
} sub digitp { local(Sletter) = @_ local(Sascii);
Sascii = ord(Sletter); retum(($ascii >= 48 && Sascii <= 57) || Sascii = 46); }
5 sub Icasep { local(Sletter) = @_; local(Sascii); Sascii = ord(Sletter); return($a'scii >= 97 && Sascii <= 122); 10 } sub ucasep {
N> £ local(Sletter) = @_; local(Sascii); 15 Sascii = ord(Sletter); return($ascii >= 65 && Sascii <= 90);
}
The PERL implementation may be difficult to understand because it mixes heuristics for named-entity extraction and end-of-sentence detection with the analysis of affect. It also operates by maintaining state variables that can be modified by each successive word of the text. These state variables, in turn, may modify the operation of the affect analyzer. An implementation which extracted all of the named entities and affect terms from each of the document's sentences would be easier to understand and to flowchart, but not nearly as efficient as this finite state machine implementation. The rest of this section explains the details of the PERL implementation.
The process begins by loading an affect lexicon. Each entry in the lexicon consists of a phrase of up to five words, a positive or negative valence associated with the phrase, apart of speech constraint (noun, verb, and/or modifier), a direction, and an intensity. The intensity is intended to represent differences in term magnitude (e.g., "hate" is much more negative than "dislike") and defaults to 1. The following is an excerpt from an affect lexicon: wrongdoingsxN wronged:-:V,M wrongful-death:-:N wrongfulxM wrongfullyxM wronglyxM x-ratedxM x-ratingxN xenophobiaxN xenophobicxM yearned:+:N young:+:Ν,M younger:+:M youngest:+:M youthful:+:M yum:+:M zen:+:M zeroxN,V zippy:+:M zombiexN zombies :-:N
Next it iterates over the words in the document, ignoring embedded HTML coding, if any. Parentheses, single and double quotation marks, and commas are removed from the words, as are possessive markers. End-of-sentence punctuation is left on the word, to be removed later.
First it checks whether the word is a name, using the following heuristics. These heuristics look for consecutive capitalized words, skipping over a small set of words like "of that can appear in lowercase in the middle of a named entity's name. the first letter of the current word is uppercase and is not a name stopword, regular stopword, or case stopword, or the previous word was a name (the Ssawnamewordp flag is set) and the current word is a name stopword. Name stopwords are words that frequently appear within a company or other entity name in lowercase and can be safely ignored for continuity purposes. For example, the word "of in "United States of America" is a name stopword, as are the words "and", "of, "a", "the", "for", and so on. Case stopwords are words which normally appear with the first letter capitalized, but which are not names, such as days of the week and names of the month.
If the word is a name, it sets the Ssawnamewordp flag, otherwise it unsets the flag. It also checks whether the word ends in end-of-sentence punctuation (period, exclamation point, or question mark). If so, and if the word is not an end-of-sentence stopword (a word like "Dr." or "Mr." which does not indicate the end of a sentence, or a word with embedded periods like "U.S."), it sets the Ssaweos flag and unsets the Ssawnamewordp flag. The latter is because names do not cross sentence boundaries. It also removes the end-of-sentence punctuation at this point.
It then checks the value of Snameoffset, which is a count of the number of non-name words since the last name word. If Snameoffset is zero, it is still in the same name, and so appends the word to that name. Otherwise, it starts saving a new name. If it starts saving a new name, it resets the Saffect variable, which contains the most recently seen affect phrase. This prevents the affect from crossing a name boundary, so that an affect term only modifies the named entities that are closest to it.
If the word is a name stopword, it saves it (plus any previous consecutive name stopwords) for possible later removal. This is because name stopwords may appear within a name, but not at the boundaries of the name - the name must begin and end with words of the appropriate case. If Scanonicalizevariants is set, it canonicalizes name variants so that "Compaq Computer Corporation", "Compaq Computer Corp.", "Compaq Computer" and "Compaq" are treated as the name for a single entity, not four different names.
Next, it begins checking for affect terms. If the Ssawnamewordp flag is unset, it means the current word is not part of a name, and the Sname variable, if non-null, contains a name. So until it starts seeing names again, it can check for affect phrases.
When it sees the first non-name word after a name (Snameoffset is zero), is should check for an affect phrase appearing before this name, but after any other names. Due to the nature of the state machine, the Saffect variable will contain the affect phrase preceding the name and Saffectoffset will be the number of non-affect, non-name words between the affect phrase and the name. If Saffectoffset is less than the Sdistancelimit, it assigns the affect phrase's affect to the name by incrementing the name's positive or negative count. It also adds the affect phrase to a list of positive or negative affect terms found in the document. It also increments several counters associated with names: the number of times the name has been seen, the number of unique names seen in the document, and the total number of names that have been seen (allowing duplicates). It then resets Saffect to the null-string, so that it can start building the affect phrases that appear after the name. When looking for affect terms following a name, it uses a window of up to five words, with a preference for the shortest phrase. (It could easily change this to a preference for the longest phrase.) If the phrase is found in the affect lexicon, the corresponding affect is applied to the name. For example, if the phrase has negative affect, the negative affect count for the name is incremented, the total number of negative affect terms is incremented, and the phrase is added to a list of negative affect terms for the document. The phrase is saved to the Saffect variable (for use with the name that follows the affect term) and Saffectoffset and Snameoffset are set to zero. The Sname variable is set to the null-string so that if another affect term is encountered before the next name, its affect will not apply to the previous name (i.e., the affect term inbetween blocks it). The Saffect variable is still set to each successive affect phrase, so that the variable will hold the affect phrase closest to the name when the next name is encountered. If the window does not contain an affect phrase, the Snameoffset and Saffectoffset variables are incremented.
The window is then shifted in preparation for the next word in the document. After all words in the document are processed, the various counters contain all the mformation necessary to calculate the affect associated with the document , and with the named entities contained within the document.
Snameuniquetotal and Snametotal contain the number of distinct names and the total number of names, • Spostotal is the total number of positive affect terms in the document, and Snegtotal is the total number of negative affect terms. The overall document affect is calculated as a weighted difference of the two, where Spostotal is multiplied by Slambda and Snegtotal by (1 - Slambda) before subtraction. Slambda is a weight between 0 and 1 that controls the relative influence of positive and negative affect terms. Slambda defaults to XA, the names that appear in the document are sorted by their affect scores. If the Sallnames flag is unset, only names which appear more than once are reported. Affect scores are calculated in the same fashion as for the overall document affect, based on the positive and negative totals for the name. If Sratio is set, the affect scores for a name are normalized by the number of occurrences of the name in the document, and a list of all the negative and positive affect terms in the document are is printed.
It will be understood by those skilled in the art that while the foregoing description sets forth in detail preferred embodiments of the present invention, modifications, additions, and changes may be made thereto without departing from the spirit and scope of the invention. Having thus described my invention with the detail and particularity required by the Patent Laws, what is desired to be protected by Letters Patent is set forth in the following claims.

Claims

I claim:
1. A computer-assisted method for classifying a text document according to emotion and affect, comprising the steps of: assigning a score to each affect term in the document, computing an affect score for the document from the scores for each affect term, and classifying the document in accordance with the affect score.
2. The computer-assisted method according to claim 1, wherein the affect terms include one or more consecutive words.
3. The computer-assisted method according to claim 1, wherein the score assigned to each affect term is assigned by counting the number of times each affect term occurs within the document and assigning the number of times the term occurs as the score.
4. The computer-assisted method according to claim 1, wherein the score assigned to each affect term is assigned by: assigmng an intensity value for each term,, and counting the number of times each affect term occurs within the document, wherein the score assigned to each affect term is the number of times the term occurs multiplied by the intensity value for the terms as the score.
5. The computer-assisted method according to claim 1, further including the steps of: classifying affect terms as positive or negative, summing the scores of all positive affect terms, and summing the scores of all negative affect terms.
6. The computer-assisted method according to claim 5, wherein if a negation term is used in conjunction with the affect term, the positive affect term is treated as a negative affect term, and vice versa.
7. The computer-assisted method according to claim 5, wherein each affect term is classified as positive or negative at each occurrence of the term based on the part of speech of the affect term at the occurrence.
8. The computer-assisted method according to claim 5, wherein each affect term is classified as positive or negative at each occurrence of the affect term based on the meaning of the affect term at the occurrence.
9. The computer-assisted method according to claim 5, wherein the affect score is the sum of the scores of all positive affect terms and the sum of the scores of all negative affect terms.
10. The computer-assisted method according to claim 5, wherein the affect score is computed by subtracting the sum of the scores of all negative affect terms from the sum of the scores of all positive affect terms.
11. The computer-assisted method according to claim 1, further including the steps of: classifying affect terms as positive or negative, identifying named entities in the document, assigmng the scores of the affect terms to the named entities, and for each named entity, summing the scores of all positive affect terms, summing the scores of all negative affect terms, and computing an affect score by subtracting the sum of the scores of all negative affect terms from the sum of the scores of all positive affect terms.
12. The computer-assisted method according to claim 11, wherein the score assigned to each affect term is assigned by additionally parsing sentences of the document such that each verb's score is assigned to the verb's agent and objects and each modifier's score is assigned to the modifier's objects.
13. The computer-assisted method according to claim 11, wherein the classification of the affect term as positive or negative is based on the direction from the affect term to the named entity.
14. The computer-assisted method according to claim 11, wherein the assignment of the affect term score to the named entity occurs when the affect term and the named entity are in the same sentence.
15. The computer-assisted method according to claim 11, wherein the scores from the affect terms are assigned to the named entities by, for each affect term, assigning the score from the affect term to the closest named entity.
16. The computer-assisted method according to claim 11, wherein the scores from the affect terms are assigned to the named entities by, for each named entity, assigning the score from the closest affect term to the named entity.
17. The computer-assisted method according to claim 16, wherein the assignment occurs when no other named entity is between the named entity and the closest affect term.
18. The computer-assisted method according to claim 11, further comprising the step of: canonicalizing variants of the named entities into groups of synonymous variants to be treated as a single named entity.
19. The computer-assisted method according to claim 1, wherein the text document is a news article.
20. The computer-assisted method according to claim 19, wherein the news article is a financial news article.
21. The computer-assisted method according to claim 11, wherein the text document is a news article.
22. The computer-assisted method according to claim 21, wherein the news article is a financial news article.
23. The computer-assisted method according to claim 1, wherein the text document is a web page.
24. The computer-assisted method according to claim 11, wherein the text document is a web page.
25. The computer-assisted method according to claim 1, wherein the text document is customer communications.
26. The computer-assisted method according to claim 11, wherein the text document is customer communications.
27. An apparatus to enable a method for classifying a text document according to emotion and affect, comprising: means for assigning a score to each affect term in the document, means for computing an affect score for the document from the scores for each affect term, and means for classifying the document in accordance with the affect score.
PCT/US2001/047970 2000-11-15 2001-10-31 Method and apparatus for analyzing affect and emotion in text WO2002041191A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2002543330A JP2004514220A (en) 2000-11-15 2001-10-31 Method and apparatus for analyzing emotions and emotions in text
AU2002236614A AU2002236614A1 (en) 2000-11-15 2001-10-31 Method and apparatus for analyzing affect and emotion in text

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/713,726 2000-11-15
US09/713,726 US6622140B1 (en) 2000-11-15 2000-11-15 Method and apparatus for analyzing affect and emotion in text

Publications (1)

Publication Number Publication Date
WO2002041191A1 true WO2002041191A1 (en) 2002-05-23

Family

ID=24867274

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2001/047970 WO2002041191A1 (en) 2000-11-15 2001-10-31 Method and apparatus for analyzing affect and emotion in text

Country Status (4)

Country Link
US (1) US6622140B1 (en)
JP (1) JP2004514220A (en)
AU (1) AU2002236614A1 (en)
WO (1) WO2002041191A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004004271A2 (en) * 2002-06-27 2004-01-08 International Business Machines Corporation Context searchable communications
EP1667031A2 (en) * 2004-12-02 2006-06-07 NEC Corporation HTML-e-mail creation system
US7869987B2 (en) 2007-12-03 2011-01-11 International Business Machines Corporation Methods involving translating text emphasis
US8065157B2 (en) 2005-05-30 2011-11-22 Kyocera Corporation Audio output apparatus, document reading method, and mobile terminal
US8495503B2 (en) 2002-06-27 2013-07-23 International Business Machines Corporation Indicating the context of a communication
CN106777361A (en) * 2017-01-20 2017-05-31 清华大学 Microblogging text mood sorting technique and categorizing system based on vector paragraph model
US9984127B2 (en) 2014-01-09 2018-05-29 International Business Machines Corporation Using typestyles to prioritize and rank search results
CN108197104A (en) * 2017-12-27 2018-06-22 浙江力石科技股份有限公司 Text analyzing method, apparatus and cloud platform
CN108228573A (en) * 2018-03-23 2018-06-29 北京航空航天大学 Text emotion analysis method, device and electronic equipment
CN110147432A (en) * 2019-05-07 2019-08-20 大连理工大学 A kind of Decision Search engine implementing method based on finite-state automata

Families Citing this family (111)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8271316B2 (en) 1999-12-17 2012-09-18 Buzzmetrics Ltd Consumer to business data capturing system
US6883135B1 (en) 2000-01-28 2005-04-19 Microsoft Corporation Proxy server using a statistical model
US7770102B1 (en) 2000-06-06 2010-08-03 Microsoft Corporation Method and system for semantically labeling strings and providing actions based on semantically labeled strings
US7712024B2 (en) 2000-06-06 2010-05-04 Microsoft Corporation Application program interfaces for semantically labeling strings and providing actions based on semantically labeled strings
US7716163B2 (en) 2000-06-06 2010-05-11 Microsoft Corporation Method and system for defining semantic categories and actions
US7788602B2 (en) 2000-06-06 2010-08-31 Microsoft Corporation Method and system for providing restricted actions for recognized semantic categories
US6999914B1 (en) * 2000-09-28 2006-02-14 Manning And Napier Information Services Llc Device and method of determining emotive index corresponding to a message
US7185065B1 (en) 2000-10-11 2007-02-27 Buzzmetrics Ltd System and method for scoring electronic messages
US7197470B1 (en) 2000-10-11 2007-03-27 Buzzmetrics, Ltd. System and method for collection analysis of electronic discussion methods
US7103549B2 (en) * 2001-03-22 2006-09-05 Intel Corporation Method for improving speech recognition performance using speaker and channel information
US7013427B2 (en) * 2001-04-23 2006-03-14 Steven Griffith Communication analyzing system
US7778816B2 (en) 2001-04-24 2010-08-17 Microsoft Corporation Method and system for applying input mode bias
US7269546B2 (en) * 2001-05-09 2007-09-11 International Business Machines Corporation System and method of finding documents related to other documents and of finding related words in response to a query to refine a search
EP1276061A1 (en) * 2001-07-09 2003-01-15 Accenture Computer based system and method of determining a satisfaction index of a text
US7383283B2 (en) * 2001-10-16 2008-06-03 Joseph Carrabis Programable method and apparatus for real-time adaptation of presentations to individuals
JP3693244B2 (en) * 2001-10-31 2005-09-07 株式会社日立製作所 E-mail system, mail server and mail terminal
US7853863B2 (en) * 2001-12-12 2010-12-14 Sony Corporation Method for expressing emotion in a text message
US20050075880A1 (en) * 2002-01-22 2005-04-07 International Business Machines Corporation Method, system, and product for automatically modifying a tone of a message
US8195597B2 (en) * 2002-02-07 2012-06-05 Joseph Carrabis System and method for obtaining subtextual information regarding an interaction between an individual and a programmable device
US8655804B2 (en) 2002-02-07 2014-02-18 Next Stage Evolution, Llc System and method for determining a characteristic of an individual
US7325194B2 (en) * 2002-05-07 2008-01-29 Microsoft Corporation Method, system, and apparatus for converting numbers between measurement systems based upon semantically labeled strings
US7707496B1 (en) 2002-05-09 2010-04-27 Microsoft Corporation Method, system, and apparatus for converting dates between calendars and languages based upon semantically labeled strings
US7707024B2 (en) 2002-05-23 2010-04-27 Microsoft Corporation Method, system, and apparatus for converting currency values based upon semantically labeled strings
US7742048B1 (en) 2002-05-23 2010-06-22 Microsoft Corporation Method, system, and apparatus for converting numbers based upon semantically labeled strings
US7827546B1 (en) 2002-06-05 2010-11-02 Microsoft Corporation Mechanism for downloading software components from a remote source for use by a local software application
US7356537B2 (en) 2002-06-06 2008-04-08 Microsoft Corporation Providing contextually sensitive tools and help content in computer-generated documents
US7716676B2 (en) * 2002-06-25 2010-05-11 Microsoft Corporation System and method for issuing a message to a program
US7137070B2 (en) * 2002-06-27 2006-11-14 International Business Machines Corporation Sampling responses to communication content for use in analyzing reaction responses to other communications
US7392479B2 (en) * 2002-06-27 2008-06-24 Microsoft Corporation System and method for providing namespace related information
GB0215123D0 (en) * 2002-06-28 2002-08-07 Ibm Method and apparatus for preparing a document to be read by a text-to-speech-r eader
US8600734B2 (en) * 2002-10-07 2013-12-03 Oracle OTC Subsidiary, LLC Method for routing electronic correspondence based on the level and type of emotion contained therein
JP2004178123A (en) * 2002-11-26 2004-06-24 Hitachi Ltd Information processor and program for executing information processor
JP2004198872A (en) * 2002-12-20 2004-07-15 Sony Electronics Inc Terminal device and server
US7424420B2 (en) * 2003-02-11 2008-09-09 Fuji Xerox Co., Ltd. System and method for dynamically determining the function of a lexical item based on context
US7363213B2 (en) * 2003-02-11 2008-04-22 Fuji Xerox Co., Ltd. System and method for dynamically determining the function of a lexical item based on discourse hierarchy structure
US7369985B2 (en) * 2003-02-11 2008-05-06 Fuji Xerox Co., Ltd. System and method for dynamically determining the attitude of an author of a natural language document
US7783614B2 (en) 2003-02-13 2010-08-24 Microsoft Corporation Linking elements of a document to corresponding fields, queries and/or procedures in a database
US7260519B2 (en) * 2003-03-13 2007-08-21 Fuji Xerox Co., Ltd. Systems and methods for dynamically determining the attitude of a natural language speaker
US7711550B1 (en) * 2003-04-29 2010-05-04 Microsoft Corporation Methods and system for recognizing names in a computer-generated document and for providing helpful actions associated with recognized names
US20040267689A1 (en) * 2003-06-26 2004-12-30 Delphi Technologies Inc. Change management system
US7739588B2 (en) 2003-06-27 2010-06-15 Microsoft Corporation Leveraging markup language data for semantically labeling text strings and data and for providing actions based on semantically labeled text strings and data
US8078616B2 (en) * 2003-08-26 2011-12-13 Factiva, Inc. Method of quantitative analysis of corporate communication performance
US7013005B2 (en) * 2004-02-11 2006-03-14 Hewlett-Packard Development Company, L.P. System and method for prioritizing contacts
US7725414B2 (en) 2004-03-16 2010-05-25 Buzzmetrics, Ltd An Israel Corporation Method for developing a classifier for classifying communications
US7584221B2 (en) * 2004-03-18 2009-09-01 Microsoft Corporation Field weighting in text searching
US7606793B2 (en) 2004-09-27 2009-10-20 Microsoft Corporation System and method for scoping searches using index keys
US7761448B2 (en) 2004-09-30 2010-07-20 Microsoft Corporation System and method for ranking search results using click distance
US7827181B2 (en) 2004-09-30 2010-11-02 Microsoft Corporation Click distance determination
US7739277B2 (en) * 2004-09-30 2010-06-15 Microsoft Corporation System and method for incorporating anchor text into ranking search results
US7523085B2 (en) * 2004-09-30 2009-04-21 Buzzmetrics, Ltd An Israel Corporation Topical sentiments in electronically stored communications
US7716198B2 (en) 2004-12-21 2010-05-11 Microsoft Corporation Ranking search results using feature extraction
JP4977624B2 (en) * 2005-01-18 2012-07-18 ヤフー! インコーポレイテッド Matching and ranking of sponsored search listings that incorporate web search technology and web content
US7792833B2 (en) 2005-03-03 2010-09-07 Microsoft Corporation Ranking search results using language types
US20060242040A1 (en) * 2005-04-20 2006-10-26 Aim Holdings Llc Method and system for conducting sentiment analysis for securities research
US8069101B1 (en) * 2005-06-13 2011-11-29 CommEq Asset Management Ltd. Financial methodology to valuate and predict the news impact of major events on financial instruments
US8930254B2 (en) 2005-06-13 2015-01-06 CommEq Asset Management Ltd. Financial methodology to valuate and predict the news impact of major events on financial instruments
US9158855B2 (en) * 2005-06-16 2015-10-13 Buzzmetrics, Ltd Extracting structured data from weblogs
US7599917B2 (en) 2005-08-15 2009-10-06 Microsoft Corporation Ranking search results using biased click distance
US7512620B2 (en) * 2005-08-19 2009-03-31 Google Inc. Data structure for incremental search
US7788590B2 (en) 2005-09-26 2010-08-31 Microsoft Corporation Lightweight reference user interface
US7992085B2 (en) 2005-09-26 2011-08-02 Microsoft Corporation Lightweight reference user interface
US8095565B2 (en) * 2005-12-05 2012-01-10 Microsoft Corporation Metadata driven user interface
US20070150281A1 (en) * 2005-12-22 2007-06-28 Hoff Todd M Method and system for utilizing emotion to search content
JP2007219733A (en) * 2006-02-15 2007-08-30 Item:Kk Mail sentence diagnostic system and mail sentence diagnostic program
JP2007264284A (en) * 2006-03-28 2007-10-11 Brother Ind Ltd Device, method, and program for adding feeling
US20070255701A1 (en) * 2006-04-28 2007-11-01 Halla Jason M System and method for analyzing internet content and correlating to events
US20080021875A1 (en) * 2006-07-19 2008-01-24 Kenneth Henderson Method and apparatus for performing a tone-based search
US7660783B2 (en) 2006-09-27 2010-02-09 Buzzmetrics, Inc. System and method of ad-hoc analysis of data
KR100898454B1 (en) * 2006-09-27 2009-05-21 야후! 인크. Integrated search service system and method
US8346756B2 (en) * 2007-08-31 2013-01-01 Microsoft Corporation Calculating valence of expressions within documents for searching a document index
US9348912B2 (en) 2007-10-18 2016-05-24 Microsoft Technology Licensing, Llc Document length as a static relevance feature for ranking search results
US7840569B2 (en) 2007-10-18 2010-11-23 Microsoft Corporation Enterprise relevancy ranking using a neural network
US9582805B2 (en) 2007-10-24 2017-02-28 Invention Science Fund I, Llc Returning a personalized advertisement
US20090113297A1 (en) * 2007-10-24 2009-04-30 Searete Llc, A Limited Liability Corporation Of The State Of Delaware Requesting a second content based on a user's reaction to a first content
US9513699B2 (en) 2007-10-24 2016-12-06 Invention Science Fund I, LL Method of selecting a second content based on a user's reaction to a first content
US8347326B2 (en) 2007-12-18 2013-01-01 The Nielsen Company (US) Identifying key media events and modeling causal relationships between key events and reported feelings
US8239189B2 (en) * 2008-02-26 2012-08-07 Siemens Enterprise Communications Gmbh & Co. Kg Method and system for estimating a sentiment for an entity
US8812493B2 (en) 2008-04-11 2014-08-19 Microsoft Corporation Search results ranking using editing distance and document information
JP4683394B2 (en) * 2008-09-26 2011-05-18 Necビッグローブ株式会社 Information processing apparatus, information processing method, and program
US8892544B2 (en) * 2009-04-01 2014-11-18 Sybase, Inc. Testing efficiency and stability of a database query engine
TWI396105B (en) * 2009-07-21 2013-05-11 Univ Nat Taiwan Digital data processing method for personalized information retrieval and computer readable storage medium and information retrieval system thereof
US8874727B2 (en) 2010-05-31 2014-10-28 The Nielsen Company (Us), Llc Methods, apparatus, and articles of manufacture to rank users in an online social network
US8738635B2 (en) 2010-06-01 2014-05-27 Microsoft Corporation Detection of junk in search result ranking
KR101334196B1 (en) * 2010-10-28 2013-11-28 (주)아크릴 Intelligent Affect Deducing Apparatus and Method therefor
KR101310929B1 (en) * 2010-10-28 2013-09-25 (주)아크릴 Intelligent Affect Words Increasing Apparatus and Method therefor
US8793706B2 (en) 2010-12-16 2014-07-29 Microsoft Corporation Metadata-based eventing supporting operations on data
DE112012001794T5 (en) 2011-04-21 2014-02-20 Sony Corporation Method for determining a mood from a text
US11257161B2 (en) 2011-11-30 2022-02-22 Refinitiv Us Organization Llc Methods and systems for predicting market behavior based on news and sentiment analysis
US9495462B2 (en) 2012-01-27 2016-11-15 Microsoft Technology Licensing, Llc Re-ranking search results
CN104272301B (en) 2012-04-25 2018-01-23 国际商业机器公司 For extracting method, computer-readable medium and the computer of a part of text
US9009027B2 (en) * 2012-05-30 2015-04-14 Sas Institute Inc. Computer-implemented systems and methods for mood state determination
US9269273B1 (en) 2012-07-30 2016-02-23 Weongozi Inc. Systems, methods and computer program products for building a database associating n-grams with cognitive motivation orientations
US20140095149A1 (en) * 2012-10-03 2014-04-03 Kanjoya, Inc. Emotion identification system and method
US9477993B2 (en) * 2012-10-14 2016-10-25 Ari M Frank Training a predictor of emotional response based on explicit voting on content and eye tracking to verify attention
US9104467B2 (en) 2012-10-14 2015-08-11 Ari M Frank Utilizing eye tracking to reduce power consumption involved in measuring affective response
US9336192B1 (en) 2012-11-28 2016-05-10 Lexalytics, Inc. Methods for analyzing text
US9047871B2 (en) 2012-12-12 2015-06-02 At&T Intellectual Property I, L.P. Real—time emotion tracking system
JP5947237B2 (en) * 2013-03-22 2016-07-06 日本電信電話株式会社 Emotion estimation device, emotion estimation method, and program
US10073830B2 (en) * 2014-01-10 2018-09-11 Cluep Inc. Systems, devices, and methods for automatic detection of feelings in text
US10546064B2 (en) * 2014-02-04 2020-01-28 Intelligent Voice Limited System and method for contextualising a stream of unstructured text representative of spoken word
US9390706B2 (en) 2014-06-19 2016-07-12 Mattersight Corporation Personality-based intelligent personal assistant system and methods
WO2016111007A1 (en) * 2015-01-09 2016-07-14 株式会社Ubic Data analysis system, data analysis system control method, and data analysis system control program
EP3089053A4 (en) * 2015-01-30 2017-10-11 Ubic, Inc. Data evaluation system, data evaluation method, and data evaluation program
KR101981075B1 (en) 2015-03-31 2019-05-22 가부시키가이샤 프론테오 Data analysis system, data analysis method, data analysis program, and recording medium
US10133918B1 (en) * 2015-04-20 2018-11-20 Snap Inc. Generating a mood log based on user images
CN106919551B (en) * 2015-12-28 2020-08-18 株式会社理光 Emotional word polarity analysis method, device and equipment
US10599771B2 (en) 2017-04-10 2020-03-24 International Business Machines Corporation Negation scope analysis for negation detection
JP6817152B2 (en) 2017-06-09 2021-01-20 本田技研工業株式会社 Service provision system and database
US20190122661A1 (en) * 2017-10-23 2019-04-25 GM Global Technology Operations LLC System and method to detect cues in conversational speech
US10818396B2 (en) * 2017-12-09 2020-10-27 Jane Doerflinger Method and system for natural language processing for the evaluation of pathological neurological states
US11579589B2 (en) * 2018-10-25 2023-02-14 International Business Machines Corporation Selectively activating a resource by detecting emotions through context analysis

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5424945A (en) * 1993-08-31 1995-06-13 Xerox Corporation System for evaluating a psychological effect of a document
US5768580A (en) * 1995-05-31 1998-06-16 Oracle Corporation Methods and apparatus for dynamic classification of discourse
US6332143B1 (en) * 1999-08-11 2001-12-18 Roedy Black Publishing Inc. System for connotative analysis of discourse

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4041617A (en) 1976-07-26 1977-08-16 James Fisher Hollander Apparatus and method for indication and measurement of simulated emotional levels
US4093821A (en) 1977-06-14 1978-06-06 John Decatur Williamson Speech analyzer for analyzing pitch or frequency perturbations in individual speech pattern to determine the emotional state of the person
US4931934A (en) 1988-06-27 1990-06-05 Snyder Thomas E Method and system for measuring clarified intensity of emotion
US5860064A (en) * 1993-05-13 1999-01-12 Apple Computer, Inc. Method and apparatus for automatic generation of vocal emotion in a synthetic text-to-speech system
US5819238A (en) 1996-12-13 1998-10-06 Enhanced Investment Technologies, Inc. Apparatus and accompanying methods for automatically modifying a financial portfolio through dynamic re-weighting based on a non-constant function of current capitalization weights
US5676138A (en) 1996-03-15 1997-10-14 Zawilinski; Kenneth Michael Emotional response analyzer system with multimedia display
US6418435B1 (en) * 1999-08-11 2002-07-09 Connotative Reference Corporation System for quantifying intensity of connotative meaning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5424945A (en) * 1993-08-31 1995-06-13 Xerox Corporation System for evaluating a psychological effect of a document
US5768580A (en) * 1995-05-31 1998-06-16 Oracle Corporation Methods and apparatus for dynamic classification of discourse
US6332143B1 (en) * 1999-08-11 2001-12-18 Roedy Black Publishing Inc. System for connotative analysis of discourse

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004004271A2 (en) * 2002-06-27 2004-01-08 International Business Machines Corporation Context searchable communications
WO2004004271A3 (en) * 2002-06-27 2004-08-19 Ibm Context searchable communications
US8495503B2 (en) 2002-06-27 2013-07-23 International Business Machines Corporation Indicating the context of a communication
EP1667031A3 (en) * 2004-12-02 2009-01-14 NEC Corporation HTML-e-mail creation system
EP1667031A2 (en) * 2004-12-02 2006-06-07 NEC Corporation HTML-e-mail creation system
US8065157B2 (en) 2005-05-30 2011-11-22 Kyocera Corporation Audio output apparatus, document reading method, and mobile terminal
US7869987B2 (en) 2007-12-03 2011-01-11 International Business Machines Corporation Methods involving translating text emphasis
US9984127B2 (en) 2014-01-09 2018-05-29 International Business Machines Corporation Using typestyles to prioritize and rank search results
CN106777361A (en) * 2017-01-20 2017-05-31 清华大学 Microblogging text mood sorting technique and categorizing system based on vector paragraph model
CN108197104A (en) * 2017-12-27 2018-06-22 浙江力石科技股份有限公司 Text analyzing method, apparatus and cloud platform
CN108228573A (en) * 2018-03-23 2018-06-29 北京航空航天大学 Text emotion analysis method, device and electronic equipment
CN110147432A (en) * 2019-05-07 2019-08-20 大连理工大学 A kind of Decision Search engine implementing method based on finite-state automata
CN110147432B (en) * 2019-05-07 2023-04-07 大连理工大学 Decision search engine implementation method based on finite state automaton

Also Published As

Publication number Publication date
AU2002236614A1 (en) 2002-05-27
JP2004514220A (en) 2004-05-13
US6622140B1 (en) 2003-09-16

Similar Documents

Publication Publication Date Title
US6622140B1 (en) Method and apparatus for analyzing affect and emotion in text
Bontcheva et al. Shallow methods for named entity coreference resolution
Vajjala et al. On improving the accuracy of readability classification using insights from second language acquisition
Goel et al. Can linguistic predictors detect fraudulent financial filings?
Conroy et al. Left-brain/right-brain multi-document summarization
Heidorn et al. The EPISTLE text-critiquing system
Riloff et al. Exploiting subjectivity classification to improve information extraction
Achananuparp et al. The evaluation of sentence similarity measures
US6937975B1 (en) Apparatus and method for processing natural language
US8010539B2 (en) Phrase based snippet generation
US9092514B2 (en) System and method for automatically summarizing fine-grained opinions in digital text
Mani et al. Improving summaries by revising them
Iida et al. Exploiting syntactic patterns as clues in zero-anaphora resolution
US20140013221A1 (en) Method and device for filtering harmful information
Zou et al. Phrasing in dynamic requirements trace retrieva
JP5678774B2 (en) An information analysis device that analyzes the redundancy of text data
Krovetz Word-sense disambiguation for large text databases
Lytinen et al. The use of question types to match questions in FAQFinder
Subha et al. Quality factor assessment and text summarization of unambiguous natural language requirements
McKeown et al. Automatically learning cognitive status for multi-document summarization of newswire
Jing Cut-and-paste text summarization
Maynard et al. Adapting a robust multi-genre NE system for automatic content extraction
Kangavari et al. Information retrieval: Improving question answering systems by query reformulation and answer validation
Yu et al. Automatic text summarization based on lexical chains and structural features
Kawahara et al. Question and Answering System based on Predicate-Argument Matching.

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ CZ DE DE DK DK DM DZ EC EE EE ES FI FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PH PL PT RO RU SD SE SG SI SK SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWE Wipo information: entry into national phase

Ref document number: 2002543330

Country of ref document: JP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase