Method and device for generating adversarial text
The invention discloses an adversarial text generation method and device, and belongs to the technical field of artificial intelligence. The method comprises the steps of obtaining a to-be-disturbed text; determining a to-be-disturbed text segment of the to-be-disturbed text, wherein the to-be-distu...
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 invention discloses an adversarial text generation method and device, and belongs to the technical field of artificial intelligence. The method comprises the steps of obtaining a to-be-disturbed text; determining a to-be-disturbed text segment of the to-be-disturbed text, wherein the to-be-disturbed text segment comprises a plurality of words; executing perturbation operation on part or all of the words in the multiple words of the to-be-perturbed text segment to obtain a perturbed text segment of the to-be-perturbed text segment; and obtaining an adversarial text of the to-be-disturbed text based on the disturbing text According to the method and the device, one or more words in the to-be-disturbed text segment can be transformed, and the text segments with various lengths can be uniformly considered to execute the disturbance operation, so that the diversity of disturbance modes is ensured, and abundant and diversified adversarial texts can be generated according to the disturbance modes.
本申请公开了一种对抗文本的生 |
---|