CN110705220B - Text editing method, device and system applied to intelligent voice mouse and storage medium - Google Patents

Text editing method, device and system applied to intelligent voice mouse and storage medium Download PDF

Info

Publication number
CN110705220B
CN110705220B CN201910923013.9A CN201910923013A CN110705220B CN 110705220 B CN110705220 B CN 110705220B CN 201910923013 A CN201910923013 A CN 201910923013A CN 110705220 B CN110705220 B CN 110705220B
Authority
CN
China
Prior art keywords
text
analysis
intention
grammar
text editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910923013.9A
Other languages
Chinese (zh)
Other versions
CN110705220A (en
Inventor
冯海洪
毛德平
许成亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Mimouse Technology Co ltd
Original Assignee
Anhui Mimouse Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Mimouse Technology Co ltd filed Critical Anhui Mimouse Technology Co ltd
Priority to CN201910923013.9A priority Critical patent/CN110705220B/en
Publication of CN110705220A publication Critical patent/CN110705220A/en
Application granted granted Critical
Publication of CN110705220B publication Critical patent/CN110705220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the field of data processing, in particular to a text editing method, a device, a system and a storage medium applied to an intelligent voice mouse, wherein the method comprises the following steps: firstly, acquiring a user voice instruction, collecting and arranging, then, carrying out natural language processing on collected and arranged data through syntactic analysis, using MITIE as a tool for feature extraction and entity identification to extract features of the processed data, next, using sklearn as a tool for intention judgment, finally obtaining the intention of the user instruction, and finally, matching with functions of a corresponding editor according to the intention of the obtained user instruction and carrying out corresponding text editing operation.

Description

Text editing method, device and system applied to intelligent voice mouse and storage medium
Technical Field
The invention relates to the field of data processing, in particular to a text editing method, device and system applied to an intelligent voice mouse and a storage medium.
Background
At present, a mode of editing a text by people mainly performs manual operation, such as clicking corresponding function keys by a mouse or performing corresponding operation by adopting shortcut keys of a keyboard, but many people unfamiliar with office software may not smoothly perform the operation required by the people, and although a mainstream interaction mode is a key mouse and a touch screen, a trend of replacing a traditional interaction mode by a voice interaction mode has appeared. In fact, in life, we are increasingly using voice interactions. When driving, we get more and more used to give various instructions to the smart phone or the system through voice, the voice assistant has good completion degree to our commands, and the smart sound box which is gradually popularized is popular with more and more people. As technology advances, the manner in which voice interactions penetrate into more devices, we have been influenced by the manner in which voice interactions and unknowingly added, but we have not been self-aware, as not all changes can be easily perceived. It can be determined that future humans will apply to voice interaction technology in richer scenarios, and voice interaction will have a wider market. In this way, the voice interaction does not only not become a "chicken rib", but may also become the first interaction means in the future.
At present, the voice interaction technology is already applied to various fields, but development and utilization in the office field are relatively few, so the invention develops a text editing method applied to an intelligent voice mouse to expand the application of intelligent voice interaction in the office field.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to develop a text editing method applied to an intelligent voice mouse, so that people edit texts more intelligently and conveniently, and the invention provides the text editing method applied to the intelligent voice mouse, which comprises the following steps of:
step S1: acquiring and arranging the acquired user voice instruction;
step S2: carrying out natural language processing on the collected and arranged data through syntactic analysis;
step S3: extracting data features using MITIE as a tool for feature extraction and entity recognition;
step S4: using sklearn as a tool for determining the intention, and finally obtaining the intention of the user instruction;
step S5: the intention of the user instruction obtained through the last module is matched with the function of the corresponding editor, and corresponding text editing operation is performed.
Specifically, the natural language processing in step S2 includes the following steps:
step S21: chinese word segmentation: the open source system of Chinese word segmentation algorithm based on CRF, namely conditional random field, segments a Chinese character sequence into individual words;
step S22: part of speech tagging, namely using an HMM (hidden Markov model) and a Viterbi algorithm, and a maximum entropy algorithm to tag the part of speech of a word;
step S23: the method comprises the steps of marking a special name, and identifying an entity with a specific meaning in a text by adopting a standard HMM model and a Viterbi algorithm, wherein the entity mainly comprises a person name, a place name, an organization name and a proper noun;
step S24: semantic chunk, which adopts CRF, namely conditional random field to carry out semantic chunk;
step S25: syntax analysis, automatically deducing the grammar structure of a sentence according to a given grammar system, analyzing grammar units contained in the sentence and the relation between the grammar units, and converting the sentence into a structured grammar tree;
step S26: deep layer analysis: the method comprises the steps of syntactic relation deconstructing analysis, text similarity analysis, text keyword extraction, text classification, content abstract and emotion tendency analysis, wherein the text classification adopts a naive Bayesian algorithm.
Preferably, the parsing in step S25 includes phrase structure parsing and dependency parsing.
In order to achieve the above object, the present invention further provides a text editing apparatus for an intelligent voice mouse, comprising
The user command picking module is used for acquiring user voice commands and collecting and arranging the voice commands;
the instruction processing module is used for carrying out natural language processing on the collected and tidied data;
the feature extraction module is used for extracting features of the processed data by using MITIE as a tool for feature extraction and entity identification;
the acquisition module uses sklearn as a tool for judging the intention, and finally obtains the intention of the user instruction;
and the execution module is used for matching the obtained intention of the user instruction with the function of the corresponding editor and carrying out corresponding text editing operation.
The invention also provides a text editing system applied to the intelligent voice mouse, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method when executing the computer program.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program, the processor implementing the steps of the above method when executing the computer program.
The invention has the beneficial effects that:
the text editing method applied to the intelligent voice mouse is designed, a user can edit the text through voice interaction, replaces manual operation before, edits the text in a voice interaction mode, can greatly save the operation time of the user, and improves the office efficiency of the user.
Drawings
Fig. 1 is a flowchart of a text editing method applied to an intelligent voice mouse according to embodiment 1 of the present invention.
Fig. 2 is a block diagram of a text editing apparatus applied to an intelligent voice mouse according to embodiment 2 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Fig. 1 is a flowchart of a text editing method applied to an intelligent voice mouse according to an embodiment 1. As shown in fig. 1, a text editing method applied to an intelligent voice mouse includes the following steps:
step S1: and acquiring and arranging the acquired user voice instruction.
Step S2: and carrying out natural language processing on the collected and collated data through syntactic analysis.
In the step, chinese word segmentation is firstly carried out, and a Chinese character sequence is segmented into individual words by an open source system of a Chinese word segmentation algorithm based on a Conditional Random Field (CRF); then, marking the part of speech of the word by using an HMM (hidden Markov model) +Viterbi algorithm and a maximum entropy algorithm; then, identifying entities with specific meanings in the text by adopting a standard HMM model and a Viterbi algorithm, wherein the entities mainly comprise a person name, a place name, an organization name and proper nouns; then, semantic chunk is performed based on a Conditional Random Field (CRF) method; then, carrying out syntactic analysis including phrase structure syntactic analysis and dependency syntactic analysis, automatically deducing the syntactic structure of the sentence according to a given syntactic system, analyzing the syntactic units contained in the sentence and the relation between the syntactic units, and converting the sentence into a structured syntactic tree; and finally, carrying out deep analysis, and carrying out analysis comprising analysis of syntactic relation deconstruction, analysis of text similarity, extraction of text keywords, text classification, content abstract and emotion tendency analysis, wherein the text classification adopts a naive Bayesian algorithm.
Step S3: data features are extracted using MITIE as a tool for feature extraction and entity recognition.
Step S4: using sklearn as a tool for determining intention, and finally obtaining the intention of the user instruction.
Step S5: the intention of the user instruction obtained through the last module is matched with the function of the corresponding editor, and corresponding text editing operation is performed.
Example 2
Fig. 2 is a block diagram of a text editing apparatus for an intelligent voice mouse according to embodiment 2 of the present invention. As shown in fig. 2, the present embodiment provides a text editing apparatus for an intelligent voice mouse, including
The user command picking module is used for acquiring user voice commands and collecting and arranging the voice commands;
the instruction processing module is used for carrying out natural language processing on the collected and tidied data;
the feature extraction module is used for extracting features of the processed data by using MITIE as a tool for feature extraction and entity identification;
the acquisition module uses sklearn as a tool for judging the intention, and finally obtains the intention of the user instruction;
and the execution module is used for matching the obtained intention of the user instruction with the function of the corresponding editor and carrying out corresponding text editing operation.
Example 3
The embodiment provides a text editing system applied to an intelligent voice mouse, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method when executing the computer program.
Example 4
The present embodiment provides a computer readable storage medium having stored thereon a computer program, the processor implementing the steps of the above method when executing the computer program.
In summary, the text editing method, device, system and storage medium applied to the intelligent voice mouse disclosed in the embodiments of the present invention designs a text editing method applied to the intelligent voice mouse, and a user can implement editing of text through voice interaction, so as to replace the previous manual operation, thereby greatly saving the operation time of the user and improving the office efficiency of the user.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any modifications and substitutions will be apparent to those skilled in the art within the scope of the present invention, and it is intended that the scope of the present invention shall be defined by the appended claims.

Claims (5)

1. The text editing method applied to the intelligent voice mouse is characterized by comprising the following steps of:
step S1: acquiring and arranging the acquired user voice instruction;
step S2: the collected and consolidated data is processed in natural language through syntactic analysis, and the method comprises the following steps:
step S21: chinese word segmentation: the open source system of Chinese word segmentation algorithm based on CRF, namely conditional random field, segments a Chinese character sequence into individual words;
step S22: part of speech tagging, namely using an HMM (hidden Markov model) and a Viterbi algorithm, and a maximum entropy algorithm to tag the part of speech of a word;
step S23: the method comprises the steps of marking a special name, and identifying an entity with a specific meaning in a text by adopting a standard HMM model and a Viterbi algorithm, wherein the entity mainly comprises a person name, a place name, an organization name and a proper noun;
step S24: semantic chunk, which adopts CRF, namely conditional random field to carry out semantic chunk;
step S25: syntax analysis, automatically deducing the grammar structure of a sentence according to a given grammar system, analyzing grammar units contained in the sentence and the relation between the grammar units, and converting the sentence into a structured grammar tree;
step S26: deep layer analysis: performing syntactic relation deconstructing analysis, text similarity analysis, text keyword extraction, text classification, content abstract and emotion tendency analysis, wherein the text classification adopts a naive Bayesian algorithm;
step S3: extracting data features using MITIE as a tool for feature extraction and entity recognition;
step S4: using sklearn as a tool for determining the intention, and finally obtaining the intention of the user instruction;
step S5: the intention of the user instruction obtained through the last module is matched with the function of the corresponding editor, and corresponding text editing operation is performed.
2. The text editing method applied to an intelligent voice mouse as claimed in claim 1, wherein: the syntactic analysis in step S2 includes phrase structure parsing and dependency parsing.
3. A text editing device applied to an intelligent voice mouse is characterized in that: comprising
The user command picking module is used for acquiring user voice commands and collecting and arranging the voice commands;
the instruction processing module is used for carrying out natural language processing on the collected and tidied data;
the feature extraction module is used for extracting features of the processed data by using MITIE as a tool for feature extraction and entity identification;
the acquisition module uses sklearn as a tool for judging the intention, and finally obtains the intention of the user instruction;
the execution module is used for matching the obtained intention of the user instruction with the function of the corresponding editor and carrying out corresponding text editing operation;
the natural language processing includes the steps of:
chinese word segmentation: the open source system of Chinese word segmentation algorithm based on CRF, namely conditional random field, segments a Chinese character sequence into individual words;
part of speech tagging, namely using an HMM (hidden Markov model) and a Viterbi algorithm, and a maximum entropy algorithm to tag the part of speech of a word;
the method comprises the steps of marking a special name, and identifying an entity with a specific meaning in a text by adopting a standard HMM model and a Viterbi algorithm, wherein the entity mainly comprises a person name, a place name, an organization name and a proper noun;
semantic chunk, which adopts CRF, namely conditional random field to carry out semantic chunk;
syntax analysis, automatically deducing the grammar structure of a sentence according to a given grammar system, analyzing grammar units contained in the sentence and the relation between the grammar units, and converting the sentence into a structured grammar tree;
deep layer analysis: the method comprises the steps of syntactic relation deconstructing analysis, text similarity analysis, text keyword extraction, text classification, content abstract and emotion tendency analysis, wherein the text classification adopts a naive Bayesian algorithm.
4. A text editing system for an intelligent voice mouse comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that: the processor, when executing the computer program, implements the steps of the method of any of the preceding claims 1 or 2.
5. A computer-readable storage medium having stored thereon a computer program, characterized by: the program when executed by a processor performs the steps of the method of any of the preceding claims 1 or 2.
CN201910923013.9A 2019-09-27 2019-09-27 Text editing method, device and system applied to intelligent voice mouse and storage medium Active CN110705220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910923013.9A CN110705220B (en) 2019-09-27 2019-09-27 Text editing method, device and system applied to intelligent voice mouse and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910923013.9A CN110705220B (en) 2019-09-27 2019-09-27 Text editing method, device and system applied to intelligent voice mouse and storage medium

Publications (2)

Publication Number Publication Date
CN110705220A CN110705220A (en) 2020-01-17
CN110705220B true CN110705220B (en) 2023-05-30

Family

ID=69198219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910923013.9A Active CN110705220B (en) 2019-09-27 2019-09-27 Text editing method, device and system applied to intelligent voice mouse and storage medium

Country Status (1)

Country Link
CN (1) CN110705220B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813925A (en) * 2020-07-14 2020-10-23 混沌时代(北京)教育科技有限公司 Semantic-based unsupervised automatic summarization method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315737A (en) * 2017-07-04 2017-11-03 北京奇艺世纪科技有限公司 A kind of semantic logic processing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK201670539A1 (en) * 2016-03-14 2017-10-02 Apple Inc Dictation that allows editing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315737A (en) * 2017-07-04 2017-11-03 北京奇艺世纪科技有限公司 A kind of semantic logic processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种新型的语音分析编辑合成***;王成友等;《声学技术》;19970205(第01期);全文 *

Also Published As

Publication number Publication date
CN110705220A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN107315737B (en) Semantic logic processing method and system
US10210245B2 (en) Natural language question answering method and apparatus
CN108710704B (en) Method and device for determining conversation state, electronic equipment and storage medium
JP7096919B2 (en) Entity word recognition method and device
CN111046656B (en) Text processing method, text processing device, electronic equipment and readable storage medium
WO2018045646A1 (en) Artificial intelligence-based method and device for human-machine interaction
WO2020238045A1 (en) Intelligent speech recognition method and apparatus, and computer-readable storage medium
CN112151015B (en) Keyword detection method, keyword detection device, electronic equipment and storage medium
CN109726397B (en) Labeling method and device for Chinese named entities, storage medium and electronic equipment
CN109388705B (en) Text intention classification method
CN109408628B (en) A kind of method and relevant device parsing semantic structure of sentences
CN110633475A (en) Natural language understanding method, device and system based on computer scene and storage medium
CN104462041A (en) Method for completely detecting hot event from beginning to end
WO2019169722A1 (en) Shortcut key recognition method and apparatus, device, and computer-readable storage medium
CN110705220B (en) Text editing method, device and system applied to intelligent voice mouse and storage medium
CN107424612A (en) Processing method, device and machine readable media
CN103020311B (en) A kind of processing method of user search word and system
CN111680493A (en) English text analysis method and device, readable storage medium and computer equipment
CN114792092B (en) Text theme extraction method and device based on semantic enhancement
CN112562665A (en) Voice recognition method, storage medium and system based on information interaction
KR20220143229A (en) Apparatus and method extracting core sentence based on korean language model
CN111027308A (en) Text generation method, system, mobile terminal and storage medium
Henderson et al. Data-driven methods for spoken language understanding
CN110866400A (en) Automatic-updating lexical analysis system
CN117556049B (en) Text classification method of regular expression generated based on large language model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant