Lightweight text labeling method and system based on javascript, equipment and storage medium

A lightweight, text-based technology, applied in the fields of javascript-based lightweight text annotation, systems, equipment and storage media, it can solve problems such as subjective factors, and achieve strong scalability, simple use, and improved user experience. Effect

Pending Publication Date: 2021-05-14
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a javascript-based lightweight text labeling method to at least solve the problem of subjective factors in related technologies

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
  • Lightweight text labeling method and system based on javascript, equipment and storage medium
  • Lightweight text labeling method and system based on javascript, equipment and storage medium
  • Lightweight text labeling method and system based on javascript, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] refer to Figure 1 to Figure 8 As shown, this example discloses a specific implementation of a javascript-based lightweight text tagging method (hereinafter referred to as the "method").

[0065] Specifically, refer to figure 1 and figure 2 As shown, the method disclosed in this embodiment includes the following steps:

[0066] Step S1, parsing the SQL statement.

[0067] Then step S2 is executed to obtain an array of table names according to the parsing result of the SQL statement.

[0068] Specifically, in some of these embodiments, the parsed result of the SQL statement is obtained from the server, and the returned data type is usually an array, and each item of the array is a table name, in the form of image 3 shown. It should be noted that the present invention does not limit the form of the table name array.

[0069] Then step S3 is executed to add a span tag to each table name in the table name array.

[0070] Specifically, in some of these examples, ref...

Embodiment 2

[0087] In combination with a javascript-based lightweight text tagging method disclosed in Embodiment 1, this embodiment discloses a specific implementation example of a javascript-based lightweight text tagging system (hereinafter referred to as "system").

[0088] refer to Figure 9 As shown, the system includes:

[0089] Parsing module 1, parsing SQL statements;

[0090] The table name acquisition module 2 obtains an array of table names according to the parsing result of the SQL statement;

[0091] The span tag adding module 3, adds a span tag for each table name in the table name array;

[0092] The location acquiring module 4 is configured to acquire tag location information of the span tag, and acquire the location of the table name in the SQL statement according to the tag location information.

[0093] Specifically, in some of these embodiments, the span tag adding module 3 specifically includes:

[0094] The matching unit 31 is configured to matc...

Embodiment 3

[0104] combine Figure 10 As shown, this embodiment discloses a specific implementation manner of a computer device. The computer device may comprise a processor 81 and a memory 82 storing computer program instructions.

[0105] Specifically, the processor 81 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC for short), or may be configured to implement one or more integrated circuits in the embodiments of the present application.

[0106] Among them, the memory 82 may include mass storage for data or instructions. For example without limitation, the memory 82 may include a hard disk drive (Hard Disk Drive, referred to as HDD), a floppy disk drive, a solid state drive (SolidState Drive, referred to as SSD), flash memory, optical disk, magneto-optical disk, magnetic tape or universal serial bus (Universal Serial Bus, referred to as USB) drive or a combination of two or more of the above. Storage 82 may comprise removable ...

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 lightweight text labeling method and system based on javascript, equipment and a storage medium. The method comprises the following steps of analyzing an SQL statement; obtaining a table name array according to an analysis result of the SQL statement; adding a span label to each table name in the table name array; and obtaining label position information of the span label, and obtaining the position of the table name in the SQL statement according to the label position information. Through the method and the device, the technical problem that the position of a table cannot be conveniently found after the super-long SQL statement is analyzed can be solved, and the method and the device are simple to use and high in expansibility.

Description

technical field [0001] The invention relates to a lightweight text labeling method. More specifically, the present invention mainly relates to a javascript-based lightweight text labeling method, system, device and storage medium. Background technique [0002] In actual business, companies often need to let the server parse some tables in SQL (Structured Query Language, Structured Query Language) statements, and then perform some operations on these tables. However, when parsing a particularly long SQL statement, such as an SQL statement with dozens or hundreds of lines, it is usually impossible to accurately find the position of the table parsed by the server in the SQL statement, causing the company's business to fail. Good development. [0003] JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled programming language with function priority. Although JavaScript is well-known as a scripting language for developing Web pages, JavaScript is al...

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 Applications(China)
IPC IPC(8): G06F16/242G06F8/41
CPCG06F8/427G06F16/2433
Inventor 秦玉辰
Owner BEIJING MININGLAMP SOFTWARE SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products