Text security detection method and device, storage medium and electronic equipment

By segmenting the initially generated reply text and safety inspections one by one, unqualified paragraphs are optimized, and combined with the advantages of streaming output and overall detection, the problem of difficulty in taking into account the timeliness of safety detection and response speed in the prior art is solved. Efficient and secure content generation is achieved.

CN119003731APending Publication Date: 2024-11-22BEIJING QIYI CENTURY SCI & TECH CO LTD

Patent Information

Application Number
CN202411122928.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-22

Smart Images

  • Figure CN119003731A_ABST
    Figure CN119003731A_ABST
Patent Text Reader

Abstract

The invention relates to a text security detection method and device, a storage medium and electronic equipment. The method comprises the steps that a first reply text is obtained, paragraph segmentation is conducted on the first reply text, at least one text paragraph is obtained, and the first reply text is a reply text preliminarily generated according to a query request of a user; performing security detection on all the text paragraphs segment by segment to obtain a detection result of each text paragraph; the first text paragraph is subjected to text optimization, and the first text paragraph is the text paragraph, the detection result of which is unqualified, in all the text paragraphs; and arranging all text paragraphs, outputting a second reply text passing security detection, and returning the second reply text to the user. The technical problem that effectiveness and safety are difficult to consider in an existing streaming output and overall generation content safety detection mode is solved.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Similar content extraction method

    CN102789452A

  • Information processing method and related device

    CN117113973A

  • Text data cleaning method, system and device and storage medium

    CN117313676A

  • Conversation method and device based on large-scale generative model and readable medium

    CN118035393A

  • Method and device for generating text data set of vectorization model

    CN118468044A

Cited By

  • Text error correction method and device, equipment and storage medium

    CN119808731A