Methods and apparatuses for training service model and determining text classification category
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorMingmin JIN
Life of this patent
Estimating the term…
Loading patent…
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorMingmin JIN
Estimating the term…
Implementations of the present specification provide a method and an apparatus for training a service model, and a method and an apparatus for determining a text classification category. During specific implementation, on the one hand, text is processed by using an encoding network to obtain a corresponding semantic vector; on the other hand, a relationship network is established for classification categories based on a hierarchical relationship, and the relationship network is processed by using a graph convolutional network, to fuse information of nodes to obtain category expression vectors. Then, the semantic vector of the text is fused with the category expression vectors to determine a prediction result of a classification category. In a phase of training a service model, the prediction result can be compared with a sample label to determine a loss and adjust model parameters. In a phase of determining a text classification category by using a trained service model, the corresponding classification category can be determined based on the prediction result. This implementation can improve text classification accuracy.
A method for training a service model, wherein the service model includes an encoding network, a fusion layer, and a fully connected layer and wherein the method comprises:
A method for determining a text classification category, implemented by using a service model including an encoding network, a fusion layer, and a fully connected layer, the method comprising:
A non-transitory computer readable medium storing contents that, when executed by one or more processors, cause the one or more processors to perform actions for training a service model, wherein the service model includes an encoding network, a fusion layer, and a fully connected layer and the actions comprise:
A non-transitory computer readable medium storing contents that, when executed by one or more processors, cause the one or more processors to perform actions for determining a text classification category by using a service model including an encoding network, a fusion layer, and a fully connected layer, the actions comprising:
Dependencies are inferred from the claim text.