Method and Apparatus of Text Classification
AssigneeAlibaba Group Holding Limited
InventorXiang Sun
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a technique of text categorization to simplify and optimize the classification. In one aspect, a method parses a given text into one or more words; determines a word vector in a spherical space model for one of the one or more words, a number of dimensions of the spherical space being equal to a number of categories, each category corresponding to a spherical space category vector; for each category, determines a distance between a sum of word vectors of the one or more words and the respective category vector; and classifies the text into one or more categories with the shortest distance. The present disclosure also provides an apparatus used to implement the method.
Claims18
A method of text classification, the method comprises:
- parsing a given text into one or more words;
- determining a word vector in a spherical space model for one of the one or more words, a number of dimensions of the spherical space being equal to a number of categories, each category corresponding to a spherical space category vector;
- for each category, determining a distance between a sum of word vectors of the one or more words and the respective category vector;
- and
- classifying the text into one or more categories with the shortest distance.
An apparatus for text classification, the apparatus comprising:
- a parsing module that parses a given text into one or more words;
- a query module that determines a word vector in a spherical space model for one of the one or more words, a number of dimensions of the spherical space being equal to a number of categories, each category corresponding to a spherical space category vector;
- a calculation module that, for each category, determines a distance between a sum of word vectors of the one or more words and the respective category vector;
- and
- a classification module that classifies the text into one or more categories with the shortest distance.
One or more computer-readable storage media having stored thereupon computer-executable instructions that, when executed by one or more computers, perform acts comprising:
- parsing a given text into one or more words;
- determining a word vector in a spherical space model for one of the one or more words, a number of dimensions of the spherical space being equal to a number of categories, each category corresponding to a spherical space category vector;
- for each category, determining a distance between a sum of word vectors of the one or more words and the respective category vector;
- and
- classifying the text into one or more categories with the shortest distance.
Dependencies are inferred from the claim text.