Method and device for generating category vector
The embodiment of the invention discloses a method and a device for generating a category vector. A specific embodiment of the method comprises the steps of obtaining a first preset number of vectorsbelonging to a preset category as a first vector set; obtaining a second preset number of vectors bel...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a method and a device for generating a category vector. A specific embodiment of the method comprises the steps of obtaining a first preset number of vectorsbelonging to a preset category as a first vector set; obtaining a second preset number of vectors belonging to a preset category as a second vector set; determining a target vector meeting a preset condition from the second vector set; obtaining a to-be-replaced vector belonging to a preset category; determining whether the to-be-replaced vector meets a preset replacement condition, and if yes, replacing the target vector with the to-be-replaced vector; and based on the first vector set and the second vector set after vector replacement, determining a category vector representing a preset category and storing the category vector. According to the method, the second vector set is updated in real time, so that the representativeness of the vectors in the second vector set to the preset category is gradually enhanced |
---|