Text processing method, device and storage medium
Abstract
Provided are a text processing method, a device and a storage medium, relating to a field of computer technology, and especially to a field of artificial intelligence, such as natural language processing and deep learning. The specific implementation scheme includes: performing text processing on first text, by using a text processing acceleration operator; and processing, in parallel and faster, content after the text processing, by using the text processing acceleration operator. Text processing and parallel acceleration are carried out by the text processing acceleration operator, which can improve the speed of text processing.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A text processing method, comprising: performing text processing on first text, by using a text processing acceleration operator, comprising: obtaining a first tensor corresponding to the first text; segmenting the first tensor, to obtain a plurality of segmentation results; performing identifier mapping on each of the plurality of segmentation results; and generating a second tensor, by using a mapping result; and performing parallel acceleration processing on, content after the text processing, by using the text processing acceleration operator, comprising: processing, in parallel, the second tensor, by using multiple threads.
- Claim 2Depends on #1
The method of claim 1, wherein segmenting the first tensor, to obtain the plurality of segmentation results, comprises at least one of: performing word segmentation processing on the first tensor, to obtain a plurality of segmented words; and performing term segmentation processing on the first tensor, to obtain a plurality of segmented terms.
- Claim 3Depends on #2
The method of claim 2, wherein performing the identifier mapping on each of the plurality of segmentation results, comprises: mapping each segmented word and/or each segmented term to a numeric value, according to a mapping relationship.
- Claim 4Depends on #1
The method of claim 1, wherein generating the second tensor by using the mapping result, comprises: obtaining each line of numeric value of the second tensor, according to a result of mapping of a corresponding line of string of the first tensor, the first tensor comprising N lines of string, the second tensor comprising N lines of numeric value corresponding to the N lines of string, and N being a positive integer.
- Claim 5Depends on #1
The method of claim 1, wherein the first text comprises a string, and the first tensor is a string tensor; and the second tensor is an integer tensor, and each line of numeric value of the second tensor uniquely corresponds to one line of string of the first tensor.
- Claim 6Depends on #1
The method of claim 1, wherein the text processing is transformed from being executed in a first language into being executed in a second language.
- Claim 7Depends on #6
The method of claim 6, wherein the first language is an interpreted language and the second language is a compiled language.
- Claim 8Depends on #1
The method of claim 1, further comprising: performing natural language understanding processing on content after the parallel acceleration processing by using a natural language understanding model.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims the priority from Chinese Patent Application No. 202111505371.1, filed with the Chinese Patent Office on Dec. 10, 2021, the content of which is hereby incorporated herein by reference in its entirety. TECHNICAL FIELD The present disclosure relates to a field of computer technology, and in particular, to a field of artificial intelligence, such as natural language processing and deep learning. BACKGROUND Natural Language Processing (NLP) is one of the application scenarios of the deep learning framework. With the rapid popularization of pre-training model technology, the paradigms of the two mission-critical applications that are natural language understanding and generating are gradually unified, and the requirements of developers and business scenarios for its performance and ease of use are also gradually improved. SUMMARY The present disclosure provides a text processing method and apparatus, a system, a device and a storage medium. According to one aspect of the present disclosure, provided is a text processing method, including: performing text processing on first text, by using a text processing acceleration operator; and processing, in parallel and faster, content after the text processing, by using the text processing acceleration operator. According to another aspect of the present disclosure, provided is a text processing apparatus, including: a text processing module configured to perform text processing on first text, by using a text processing acceleration operator; and a parallel acceleration module configured to process, in parallel and faster, content after the text processing, by using the text processing acceleration operator. According to another aspect of the present disclosure, provided is a system based on a deep learning framework, including: a text processing acceleration operator configured to perform text processing on first text and process, in parallel and faster, cont
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Oct. 11, 2023
- —
- (JP) Notice of Refusal
- —
- App. No. JP2022-124589.
- Aug. 1, 2022
- —
- (CN) First Office Action and Search Report
- —
- App. No. CN2021115053711.