Supercharge Your Innovation With Domain-Expert AI Agents!

Punctuation mark processing method and device

A technology of punctuation marks and processing methods, applied in the field of text processing, can solve problems such as the use of punctuation marks incorrectly, and achieve the effect of solving use errors, easy implementation, and simple operation

Active Publication Date: 2021-11-05
BEIJING GRIDSUM TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for processing punctuation marks, to at least solve the technical problem in the prior art that multiple consecutive punctuation marks appear in the text due to hand errors and other reasons, resulting in incorrect use of punctuation marks in the text

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Punctuation mark processing method and device
  • Punctuation mark processing method and device
  • Punctuation mark processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, a method embodiment of a method for processing punctuation marks is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0027] figure 1 is a punctuation processing method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0028] Step S102, determining whether there are multiple adjacent punctuation marks in the text to be processed.

[0029] Specifically, after obtaining the text to be processed, it is first necessary to detect the use of punctuation marks in the text to be processed. If there are two or more punctuation marks behind a ce...

Embodiment 2

[0049] According to an embodiment of the present invention, a product embodiment of a punctuation processing device is provided, figure 2 is a punctuation processing device according to an embodiment of the present invention, such as figure 2 As shown, the device includes a first determination module 101 , a second determination module 103 and a processing module 105 .

[0050] Wherein, the first determination module 101 is used to determine whether there are multiple adjacent punctuation marks in the text to be processed; the second determination module 103 is used to determine whether there are multiple adjacent punctuation marks in the text to be processed, Determine whether a plurality of adjacent punctuation marks belong to a preset punctuation mark combination set, wherein the preset punctuation mark combination set includes at least one group of punctuation mark combinations composed of a plurality of punctuation marks; When the adjacent punctuation marks do not belo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for processing punctuation marks. Wherein, the method includes: determining whether there are multiple adjacent punctuation marks in the text to be processed; in the case that there are multiple adjacent punctuation marks in the text to be processed, determining whether the multiple adjacent punctuation marks belong to the preset Punctuation mark combination set, wherein, preset punctuation mark combination set comprises at least one group of punctuation mark combination that is formed by multiple punctuation marks; Under the situation that a plurality of adjacent punctuation marks do not belong to preset punctuation mark combination set, keep more one of the adjacent punctuation marks, and delete the other punctuation marks among the multiple adjacent punctuation marks to obtain the processed text. The invention solves the technical problem in the prior art that a plurality of consecutive punctuation marks appear in the text due to hand errors and the like, resulting in wrong use of the punctuation marks in the text.

Description

technical field [0001] The present invention relates to the field of text processing, in particular to a method and device for processing punctuation marks. Background technique [0002] With the popularization of the Internet, the explosive growth of text information, people need to process more and more text information every day, when writing text information, or when performing operations such as pasting, copying, and modifying text information, often There will be punctuation errors. For example, there is an extra period after the comma or an extra comma, or another sentence is pasted before the period at the end of a sentence, and the pasted word also ends with a period, so it appears Two full stops, because the punctuation marks are small, are easily overlooked by users, and it is not easy to check them out, which leads to the wrong use of punctuation marks in the text and affects the understanding of the text content. [0003] Aiming at the problem in the prior art ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F40/232
CPCG06F40/232
Inventor 张轩
Owner BEIJING GRIDSUM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More