CN108255798A - A kind of input method and its device of La Taihe forms formula - Google Patents

A kind of input method and its device of La Taihe forms formula Download PDF

Info

Publication number
CN108255798A
CN108255798A CN201611239094.3A CN201611239094A CN108255798A CN 108255798 A CN108255798 A CN 108255798A CN 201611239094 A CN201611239094 A CN 201611239094A CN 108255798 A CN108255798 A CN 108255798A
Authority
CN
China
Prior art keywords
word
formula
closing
input
introducer
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.)
Pending
Application number
CN201611239094.3A
Other languages
Chinese (zh)
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.)
Beijing Xintang Sichuang Educational Technology Co Ltd
Original Assignee
Beijing Xintang Sichuang Educational 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 Beijing Xintang Sichuang Educational Technology Co Ltd filed Critical Beijing Xintang Sichuang Educational Technology Co Ltd
Priority to CN201611239094.3A priority Critical patent/CN108255798A/en
Publication of CN108255798A publication Critical patent/CN108255798A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/02Feature extraction for speech recognition; Selection of recognition unit
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the present application offer a kind of input method and its device of La Taihe forms formula, the method, including:The voice of the input rule input according to default dictionary is obtained, and carries out speech recognition and obtains the corresponding sentence of input voice;The sentence is split as word by the word's kinds in the default dictionary, and judges the type of the word;Type according to the word carries out corresponding operating, obtains corresponding formula in the input voice.The embodiment of the present application can utilize voice to realize the input of La Taihe form formula, reduce the time that teacher is manually operated, improve the efficiency of Formula Input Technology.

Description

A kind of input method and its device of La Taihe forms formula
Technical field
The application belongs to electronic instruction technical field, and in particular to a kind of input method and its dress of La Taihe forms formula It puts.
Background technology
LaTeX (LATEX, transliteration " La Taihe ") is a kind of composing system based on Τ Ε Χ, by american computer scholar Lesley Lambert (Leslie Lamport) is developed in phase early 1980s, using this form, even if user There is no the knowledge of typesetting and programming that can also give full play to the power provided by TeX, it can be at several days or even several small When it is interior generation much have books quality printed matters.Show particularly for the complicated table of generation and mathematical formulae, this point It is prominent.Therefore it is highly suitable for generating the science and technology of high printing quality and Mathematics document.This system is equally applicable to generate The document of every other type from simple mail to completed books.
At present in education sector, teacher when using computer manufacture topic or handout, generally use word or Latex systems input formula.No matter which kind of input mode, be required to teacher and inputted with hand in keyboard or handwriting pad, this Kind mode is not only time-consuming and laborious, and more inconvenient for the individuals with disabilities for lacking hand function.
It, can be by the sound automatic conversion of people using equipment such as computer and microphones with the development of speech recognition technology Into corresponding letter symbol.Phonetic entry, which compares, to be manually entered, more flexible and convenient.
Therefore, the technical issues of how realizing La Taihe Formula Input Technologies using voice, become urgent need to resolve in the prior art.
Invention content
One of the technical issues of the embodiment of the present application solves be to provide a kind of input method of La Taihe forms formula and Its device can utilize voice to realize the input of La Taihe form formula, reduce the time of teacher's manual operation, improve public affairs The efficiency of formula input.
The embodiment of the present application provides a kind of input method of La Taihe forms formula, including:
The voice of the input rule input according to default dictionary is obtained, and it is corresponding to carry out speech recognition acquisition input voice Sentence;
The sentence is split as word by the word's kinds in the default dictionary, and judges the class of the word Type;
Type according to the word carries out corresponding operating, obtains corresponding formula in the input voice.
In the application specific embodiment, the input rule of the default dictionary includes:It is opened in formula or part formula Begin to add in introducer and terminate to add in closing in formula or part formula.
In the application specific embodiment, the word's kinds in the default dictionary include:Introducer, closing and general Logical word.
In the application specific embodiment, the type according to the word carries out corresponding operating, obtains the input Corresponding formula includes in voice:
If the word is introducer, then the node of a tree is created, the guiding is exported according to predetermined symbol table The corresponding symbol of word;If the word is generic word, then the corresponding symbol of generic word is sequentially output under the newly-built node;Such as The word is closing, then exports the corresponding symbol of the closing according to predetermined symbol table, and present node is returned to Its father node;
Tree is established according to the corresponding symbol of words whole in formula, obtains corresponding formula in the input voice And it is exported.
In the application specific embodiment, such as word is closing, then end of output word corresponds to symbol, and will Present node returns to its father node and further includes:
Such as the closing that the word is formula, then terminate the identification of formula.
In the application specific embodiment, the predetermined symbol table store the introducer, generic word and closing according to The corresponding La Taihe symbols that La Taihe specifications obtain.
In the application specific embodiment, such as word is introducer, then creates the node of a tree, root The corresponding symbol of the introducer is exported according to predetermined symbol table;As the word be generic word, then under the newly-built node according to It is secondary to export the corresponding symbol of generic word;If the word is closing, then exporting the closing according to predetermined symbol table corresponds to Symbol, and present node is returned into its father node and is further included:
If the word is not introducer, generic word and closing, it is sequentially output under the newly-built node described Word.
The corresponding above method, the application provide a kind of input unit of La Taihe forms formula, including:
Sound identification module for obtaining the voice of the input rule input according to default dictionary, and carries out speech recognition Obtain the corresponding sentence of input voice;
The sentence is split as word by type judging module for the word's kinds in the default dictionary, and Judge the type of the word;
Formula obtains module, and for carrying out corresponding operating according to the type of the word, it is right in the input voice to obtain The formula answered.
In the application specific embodiment, the input rule of the default dictionary includes:It is opened in formula or part formula Begin to add in introducer and terminate to add in closing in formula or part formula.
In the application specific embodiment, the word's kinds in the default dictionary include:Introducer, closing and general Logical word.
In the application specific embodiment, the formula obtains module and includes:
Classification obtaining unit is introducer for such as described word, then the node of a tree is created, according to default symbol Number table exports the corresponding symbol of the introducer;If the word is generic word, then it is sequentially output under the newly-built node general The corresponding symbol of logical word;If the word is closing, then the corresponding symbol of the closing is exported according to predetermined symbol table, and Present node is returned into its father node;
Character combining unit for establishing tree according to the corresponding symbol of words whole in formula, obtains described defeated Enter corresponding formula in voice and exported.
In the application specific embodiment, such as word is closing, then end of output word corresponds to symbol, and will Present node returns to its father node and further includes:
Such as the closing that the word is formula, then terminate the identification of formula.
In the application specific embodiment, the predetermined symbol table store the introducer, generic word and closing according to The corresponding La Taihe symbols that La Taihe specifications obtain.
In the application specific embodiment, if it is not introducer, general that the classification obtaining unit, which is additionally operable to the word, Logical word and closing, then be sequentially output the word under the newly-built node.
It can be seen from the above, the embodiment of the present application obtains the voice of the input rule input according to default dictionary, and carry out language Sound identification obtains the corresponding sentence of input voice.So as to which the sentence is split as by the word's kinds in the default dictionary Word, and judge the type of the word.Type according to the word carries out corresponding operating, and it is right in the input voice to obtain The formula answered.Therefore, the embodiment of the present application can utilize voice to realize the input of La Taihe form formula, reduce teacher and grasp manually The time of work improves the efficiency of Formula Input Technology.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of one embodiment flow chart of input method for La Taihe forms formula that the application provides;
Fig. 2 be the application provide a kind of La Taihe forms formula input method in mono- embodiment flow charts of step S3;
Fig. 3 be the application provide a kind of La Taihe forms formula input method in another embodiment flow charts of step S3
Fig. 4 is a kind of one example structure figure of input unit for La Taihe forms formula that the application provides;
Fig. 5 be the application provide a kind of La Taihe forms formula input unit in formula obtain one embodiment knot of module Composition;
Fig. 6 is the hardware architecture diagram of the electronic equipment of the input method for the La Taihe form formula that the application provides;
Fig. 7 is the flow chart of one application scenarios of input method for the La Taihe form formula that the application provides.
Specific embodiment
The embodiment of the present application obtains the voice of the input rule input according to default dictionary, and it is defeated to carry out speech recognition acquisition Enter the corresponding sentence of voice.So as to which the sentence is split as word, and judge by the word's kinds in the default dictionary The type of the word.Type according to the word carries out corresponding operating, obtains corresponding formula in the input voice.Cause This, the embodiment of the present application can utilize voice to realize the input of La Taihe form formula, reduce the time of teacher's manual operation, carry The high efficiency of Formula Input Technology.
Although the application can have many various forms of embodiments, in the accompanying drawings display and will herein in detail The specific embodiment of description, it should be appreciated that the disclosure of this embodiment should be considered as the example of principle, and be not intended to this Shen It please be limited to the specific embodiment being shown and described.In the following description, identical label shows for describing the several of attached drawing Identical, similar or corresponding part in figure.
As used herein, "one" or " one kind " of term are defined as one (kind) or more than one (kind).As herein It is used, term " multiple " is defined as two or more than two.As used herein, term " other " is defined as at least again It is one or more.As used herein, term "comprising" and/or " having " are defined to include (that is, open language).Such as Used herein, term " coupling " is defined as connecting, but is not necessarily to be directly connected to, and is not necessarily mechanically to connect. As used herein, term " program " or " computer program " or similar terms are defined as designed on the computer systems The instruction sequence of execution." program " or " computer program " may include subprogram, function, process, object method, object implementatio8, Executable application, applet, servlet, source code, object code, shared library/dynamic load library and/or design are used In the other instruction sequences performed on the computer systems.
Table is referred to " one embodiment ", " some embodiments ", " embodiment " or similar terms in entire this document Show that a particular feature, structure, or characteristic described in conjunction with the embodiments is included at least one embodiment of the invention.Therefore, exist The appearance of this word in the various places of entire this specification need not all represent identical embodiment.It is in addition, described specific Feature, structure or characteristic can combine in any suitable manner in one or more embodiments without limitation.
As used herein, term "or" should be construed as inclusive or represent any one or any group It closes.Therefore, " A, B or C " expression " following any one:A;B;C;A and B;A and C;B and C;A, B and C ".Only when element, When function, step or the combination of action inherently mutually exclusive in some way, it will the exception of this definition occurs.
In order to which those skilled in the art is made to more fully understand the technical solution in the application, below in conjunction with the embodiment of the present application In attached drawing, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's all other embodiments obtained should all belong to the range of the application protection.
Further illustrate that the application implements with reference to illustrations.
Referring to Fig. 1, one embodiment of the application provides a kind of input method of La Taihe forms formula, including:
S1, the voice inputted according to the input rule of default dictionary is obtained, and carries out speech recognition and obtain input voice pair The sentence answered.
The input rule of the default dictionary includes:Introducer is initially added into formula or part formula and in public affairs Formula or part formula terminate to add in closing.
In the embodiment of the present application, user carries out phonetic entry, user speech input by equipment such as computer and microphones It is easy to cause ambiguity, such as user speech input " x subtract 5 divided by 2 ", then just corresponding two kinds of situations.The first situation:x-5÷ 2;And the second situation:(x-5)÷2.
Ambiguity caused by order to eliminate user speech input, the embodiment of the present application are inputted according to the input rule of default dictionary Voice, such as above-mentioned formula phonetic entry " formula start x deduction numbers start 5 divided by 2 scores and terminate formula terminate ".
Wherein, " score starts " is to represent the introducer that part formula starts, and " score terminates " is represents part formula knot The closing of beam.
The embodiment of the present application will not be generated by adding in introducer and closing, the formula of phonetic entry in phonetic entry Ambiguity, the true intention expressed by phonetic entry are:x-(5÷2).
Specifically, dictionary described in the embodiment of the present application includes:" formula starts ", " formula terminates ", " are divided at " score starts " Number terminates ", " molecule starts ", " molecule terminates ", " denominator starts ", introducers, closing and the generic word such as " denominator terminates ". User can also edit dictionary content as needed, including:" summation starts ", " summation terminates ", " difference starts ", " difference knot Beam " etc..Introducer is used for the beginning of representation formula or part formula;Closing is used for the knot of representation formula or part formula Beam;Other letter, number, symbols etc. are generic word in formula other than introducer, closing.
The sentence is split as word, and judges the word by S2, the word's kinds in the default dictionary Type.
Specifically, the word's kinds in the default dictionary include:Introducer, closing and generic word.Default dictionary In introducer, word other than closing be generic word.
For example, sentence is " formula starts x and start molecule equal to score to start x 2 molecules is added to terminate denominator to start 5 denominator knots Beam score terminates formula and terminates ", then sentence is split as:" formula starts, and x is equal to, and score starts, and molecule starts, and x adds 2, Molecule terminates, and denominator starts, and 5, denominator terminates, and score terminates, and formula terminates ", it is finally public affairs by the writing of La Taihe formula Formula X=(X+2)/5.
S3, the type according to the word carry out corresponding operating, obtain corresponding La Taihe formula in the input voice.
The embodiment of the present application successively judges each word, judges whether it is introducer, generic word, end Word.If certain a kind of word, then operated accordingly.So as to represent the formula, and obtain institute by establishing a tree State the output of corresponding formula in input voice.
In the application one in the specific implementation, referring to Fig. 2, the step S3 includes:
S31, such as described word are introducer, then create the node of a tree, according to the output of predetermined symbol table The corresponding symbol of introducer;If the word is generic word, then the corresponding symbol of generic word is sequentially output under the newly-built node Number;If the word is closing, then the corresponding symbol of the closing is exported according to predetermined symbol table, and present node is moved back Return to its father node.
Specifically, the preset symbol table stores each introducer, closing, the corresponding La Taihe symbols of generic word, This correspondence is obtained according to La Taihe specifications.Such as " formula starts " correspondence " $ " symbol, " score starts " correspondence " Frac " symbols, etc..
S32, tree is established according to the corresponding symbol of words whole in formula, obtained corresponding in the input voice La Taihe formula are simultaneously exported.
Referring to Fig. 3, in the step S31 as the word be closing, then end of output word correspond to symbol, and ought Front nodal point returns to its father node and further includes:
Such as the closing that the word is formula, then terminate the identification of formula.
In the application one in the specific implementation, the step S31 is further included:
If the word is not introducer, generic word and closing, it is sequentially output under the newly-built node described Word.
For example, the word is word, then directly the word is sequentially output under the newly-built node.
The corresponding above method, referring to Fig. 4, one embodiment of the application provides a kind of input unit of La Taihe forms formula, Including:
Sound identification module 41 for obtaining the voice of the input rule input according to default dictionary, and carries out voice knowledge The corresponding sentence of voice Huo get not inputted.
The sentence is split as word by type judging module 42 for the word's kinds in the default dictionary, And judge the type of the word.
Formula obtains module 43, for carrying out corresponding operating according to the type of the word, obtains in the input voice Corresponding La Taihe formula.
The input rule of the default dictionary includes:Introducer is initially added into formula or part formula and in public affairs Formula or part formula terminate to add in closing.
In the embodiment of the present application, user carries out phonetic entry, user speech input by equipment such as computer and microphones It is easy to cause ambiguity, such as user speech input " x subtract 5 divided by 2 ", then just corresponding two kinds of situations.The first situation:x-5÷ 2;And the second situation:(x-5)÷2.
Ambiguity caused by order to eliminate user speech input, the embodiment of the present application are inputted according to the input rule of default dictionary Voice, such as above-mentioned formula phonetic entry " formula start x deduction numbers start 5 divided by 2 scores and terminate formula terminate ".
Wherein, " score starts " is to represent the introducer that part formula starts, and " score terminates " is represents part formula knot The closing of beam.
The embodiment of the present application will not be generated by adding in introducer and closing, the formula of phonetic entry in phonetic entry Ambiguity, the true intention expressed by phonetic entry are:x-(5÷2).
Specifically, dictionary described in the embodiment of the present application includes:" formula starts ", " formula terminates ", " are divided at " score starts " Number terminates ", " molecule starts ", " molecule terminates ", " denominator starts ", introducers, closing and the generic word such as " denominator terminates ". User can also edit dictionary content as needed, including:" summation starts ", " summation terminates ", " difference starts ", " difference knot Beam " etc..Introducer is used for the beginning of representation formula or part formula;Closing is used for the knot of representation formula or part formula Beam;Other letter, number, symbols etc. are generic word in formula other than introducer, closing.
Specifically, the word's kinds in the default dictionary include:Introducer, closing and generic word.Default dictionary In introducer, word other than closing be generic word.
For example, sentence is " formula starts x and start molecule equal to score to start x 2 molecules is added to terminate denominator to start 5 denominator knots Beam score terminates formula and terminates ", then sentence is split as:" formula starts, and x is equal to, and score starts, and molecule starts, and x adds 2, Molecule terminates, and denominator starts, and 5, denominator terminates, and score terminates, and formula terminates ", as formula X=(X+2)/5.
The embodiment of the present application successively judges each word, judges whether it is introducer, generic word, end Word.If certain a kind of word, then operated accordingly.So as to establish a tree, to represent the formula, and obtain institute State the output of corresponding formula in input voice.
In the application one in the specific implementation, referring to Fig. 5, the formula obtains module 43 and includes:
Classification obtaining unit 431 is introducer for such as described word, then the node of a tree is created, according to pre- If symbol table exports the corresponding symbol of the introducer;It is if the word is generic word, then defeated successively under the newly-built node Go out the corresponding symbol of generic word;If the word is closing, then the corresponding symbol of the closing is exported according to predetermined symbol table Number, and present node is returned into its father node.
Character combining unit 432, for establishing tree according to the corresponding symbol of words whole in formula, described in acquisition It inputs corresponding La Taihe formula in voice and is exported.
Specifically, the preset symbol table stores each introducer, closing, the corresponding La Taihe symbols of generic word, This correspondence is obtained according to La Taihe specifications.Such as " formula starts " correspondence " $ " symbol, " score starts " correspondence " Frac " symbols, etc..
It is described classification obtaining unit 431 in as the word be closing, then end of output word correspond to symbol, and ought Front nodal point returns to its father node and further includes:
Such as the closing that the word is formula, then terminate the identification of formula.
If in the application one in the specific implementation, it is described classification obtaining unit 431 be additionally operable to the word for introducer, Generic word and closing are then sequentially output the word under the newly-built node.
For example, the word is word, then directly the word is sequentially output under the newly-built node.
Fig. 6 is the hardware architecture diagram of the electronic equipment of the input method of the application La Taihe form formula.According to Fig. 6 Shown, which includes:
One or more processors 610 and memory 620, in Fig. 6 by taking a processor 610 as an example.
The equipment of the input method of La Taihe form formula can also include:Input unit 630 and output device 630.
Processor 610, memory 620, input unit 630 and output device 630 can pass through bus or other modes It connects, in Fig. 6 for being connected by bus.
Memory 620 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the input side of the La Taihe form formula in the embodiment of the present application Corresponding program instruction/the module of method is (for example, attached sound identification module shown in Fig. 4 41, type judging module 42, formula obtain Module 43).Processor 610 is stored in non-volatile software program, instruction and module in memory 620 by operation, from And various function application and the data processing of execute server, that is, realize the defeated of above method embodiment La Taihe form formula Enter method.
Memory 620 can include storing program area and storage data field, wherein, storing program area can store operation system System, the required application program of at least one function;Storage data field can store the input unit according to La Taihe form formula Use created data etc..In addition, memory 620 can include high-speed random access memory 620, can also include non- Volatile memory 620, for example, at least a magnetic disk storage 620, flush memory device or other non-volatile solid state memories 620.In some embodiments, memory 620 is optional including relative to the remotely located memory 620 of processor 610, these Remote memory 620 can pass through network connection to audio mode selector.The example of above-mentioned network is including but not limited to mutual Networking, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 630 can receive the number of input or character information and generate and the inputs of La Taihe form formula The key signals that the user setting and function control of device are related input.Output device 630 may include the equipment such as loud speaker.
One or more of modules are stored in the memory 620, when by one or more of processors During 610 execution, the input method of the La Taihe form formula in above-mentioned any means embodiment is performed.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that have mobile communication function, and to provide speech, data It communicates as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the scope of personal computer, there is calculating and processing work( Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play multimedia content.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, memory, system Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(6) other have the function of the electronic device of data interaction.
The application is further described below by one concrete application scene of the application to realize.
Referring to Fig. 7, the input method of the La Taihe forms formula includes:
71st, user carries out phonetic entry according to the input rule of default dictionary.
The input rule of the default dictionary includes:Introducer is initially added into formula or part formula and in public affairs Formula or part formula terminate to add in closing.
In the embodiment of the present application, user carries out phonetic entry, user speech input by equipment such as computer and microphones It is easy to cause ambiguity, such as user speech input " x subtract 5 divided by 2 ", then just corresponding two kinds of situations.The first situation:x-5÷ 2;And the second situation:(x-5)÷2.
Ambiguity caused by order to eliminate user speech input, the embodiment of the present application are inputted according to the input rule of default dictionary Voice, such as above-mentioned formula phonetic entry " formula start x deduction numbers start 5 divided by 2 scores and terminate formula terminate ".
Wherein, " score starts " is to represent the introducer that part formula starts, and " score terminates " is represents part formula knot The closing of beam.
The embodiment of the present application will not be generated by adding in introducer and closing, the formula of phonetic entry in phonetic entry Ambiguity, the true intention expressed by phonetic entry are:x-(5÷2).
Specifically, dictionary described in the embodiment of the present application includes:" formula starts ", " formula terminates ", " are divided at " score starts " Number terminates ", " molecule starts ", " molecule terminates ", " denominator starts ", introducers, closing and the generic word such as " denominator terminates ". User can also edit dictionary content as needed, including:" summation starts ", " summation terminates ", " difference starts ", " difference knot Beam " etc..Introducer is used for the beginning of representation formula or part formula;Closing is used for the knot of representation formula or part formula Beam;Other letter, number, symbols etc. are generic word in formula other than introducer, closing.
The sentence is split as word by the 72nd, word's kinds in the default dictionary.
Specifically, the word's kinds in the default dictionary include:Introducer, closing and generic word.Default dictionary In introducer, word other than closing be generic word.
For example, sentence is " formula starts x and start molecule equal to score to start x 2 molecules is added to terminate denominator to start 5 denominator knots Beam score terminates formula and terminates ", then sentence is split as:" formula starts, and x is equal to, and score starts, and molecule starts, and x adds 2, Molecule terminates, and denominator starts, and 5, denominator terminates, and score terminates, and formula terminates ", it is finally public affairs by the writing of La Taihe formula Formula X=(X+2)/5.
73rd, judge the type of the word.
The embodiment of the present application successively judges each word, judges whether it is introducer, generic word, end Word.
74th, such as described word is introducer, then creates the node of a tree, is drawn according to the output of predetermined symbol table The corresponding symbol of introductory word.
75th, such as described word is generic word, then the corresponding symbol of generic word is sequentially output under the newly-built node.
77th, such as described word is closing, then exports the corresponding symbol of the closing according to predetermined symbol table, and ought Front nodal point returns to its father node.
Specifically, the preset symbol table stores each introducer, closing, the corresponding La Taihe symbols of generic word, This correspondence is obtained according to La Taihe specifications.Such as " formula starts " correspondence " $ " symbol, " score starts " correspondence " Frac " symbols, etc..
77th, judge whether the closing that the closing is formula.
78th, if so, then terminating the identification of formula, otherwise, return to step 73.
For example, formula X=(X+2)/5, input sentence is " formula starts x and equal to score starts molecule and start x to add 2 molecules Terminate denominator and start 5 denominators to terminate score and terminate formula to terminate ", sentence is split as:" formula starts, and x is equal to, and score starts, Molecule starts, and x adds 2, and molecule terminates, and denominator starts, and 5, denominator terminates, and score terminates, and formula terminates ".
In this example embodiment, the symbol table used is:
Formula starts:$
Formula terminates:$
Score starts:\frac
Score terminates:
Molecule starts:{
Molecule terminates:}
Denominator starts:{
Denominator terminates:}
The La Taihe form formula obtained according to step 73 to step 78 are:
The apparatus embodiments described above are merely exemplary, wherein the module illustrated as separating component can To be or may not be physically separate, the component shown as module may or may not be physics mould Block, you can be located at a place or can also be distributed on multiple network modules.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Labour in the case of, you can to understand and implement.
It will be understood by those skilled in the art that embodiments herein can be provided as method, apparatus (equipment) or computer Program product.Therefore, in terms of the application can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, the meter for wherein including computer usable program code in one or more can be used in the application The computer journey that calculation machine usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The application is with reference to the method, apparatus (equipment) of embodiment and the flow chart and/or box of computer program product Figure describes.It should be understood that each flow and/or the side in flowchart and/or the block diagram can be realized by computer program instructions The combination of flow and/or box in frame and flowchart and/or the block diagram.These computer program instructions can be provided to logical With the processor of computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate a machine Device so that the instruction generation performed by computer or the processor of other programmable data processing devices is used to implement in flow The device of function specified in one flow of figure or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the application range.Obviously, those skilled in the art can be to the application Various modification and variations are carried out without departing from spirit and scope.If in this way, these modifications and variations of the application Belong within the scope of the application claim and its equivalent technologies, then the application is also intended to exist comprising these modification and variations It is interior.

Claims (14)

1. a kind of input method of La Taihe forms formula, which is characterized in that including:
The voice of the input rule input according to default dictionary is obtained, and carries out speech recognition and obtains the corresponding sentence of input voice Son;
The sentence is split as word by the word's kinds in the default dictionary, and judges the type of the word;
Type according to the word carries out corresponding operating, obtains corresponding La Taihe formula in the input voice.
2. the method as described in claim 1, which is characterized in that the input rule of the default dictionary includes:In formula or Part formula is initially added into introducer and terminates to add in closing in formula or part formula.
3. method as claimed in claim 2, which is characterized in that the word's kinds in the default dictionary include:Introducer, knot Beam word and generic word.
4. method as claimed in claim 3, which is characterized in that the type according to the word carries out corresponding operating, obtains Corresponding La Taihe formula in the input voice are obtained to include:
If the word is introducer, then the node of a tree is created, the introducer pair is exported according to predetermined symbol table The symbol answered;If the word is generic word, then the corresponding symbol of generic word is sequentially output under the newly-built node;As described in Word is closing, then exports the corresponding symbol of the closing according to predetermined symbol table, and present node is returned to his father Node;
Tree is established according to the corresponding symbol of words whole in formula, it is public to obtain corresponding La Taihe in the input voice Formula is simultaneously exported.
5. method as claimed in claim 4, which is characterized in that such as word is closing, then end of output word pair Symbol is answered, and present node is returned into its father node and is further included:
Such as the closing that the word is formula, then terminate the identification of formula.
6. method as claimed in claim 4, which is characterized in that the predetermined symbol table store the introducer, generic word and The corresponding La Taihe symbols that closing is obtained according to La Taihe specifications.
7. method as claimed in claim 4, which is characterized in that such as word is introducer, then creates a tree-shaped knot The node of structure exports the corresponding symbol of the introducer according to predetermined symbol table;If the word is generic word, then described new It builds under node and is sequentially output the corresponding symbol of generic word;If the word is closing, then according to the output of predetermined symbol table The corresponding symbol of closing, and present node is returned into its father node and is further included:
If the word is not introducer, generic word and closing, the word is sequentially output under the newly-built node.
8. a kind of input unit of La Taihe forms formula, which is characterized in that including:
Sound identification module for obtaining the voice of the input rule input according to default dictionary, and carries out speech recognition acquisition Input the corresponding sentence of voice;
The sentence is split as word, and judge by type judging module for the word's kinds in the default dictionary The type of the word;
Formula obtains module, for carrying out corresponding operating according to the type of the word, obtains corresponding in the input voice La Taihe formula.
9. device as claimed in claim 7, which is characterized in that the input rule of the default dictionary includes:In formula or Part formula is initially added into introducer and terminates to add in closing in formula or part formula.
10. device as claimed in claim 8, which is characterized in that the word's kinds in the default dictionary include:Introducer, Closing and generic word.
11. device as claimed in claim 9, which is characterized in that the formula obtains module and includes:
Classification obtaining unit is introducer for such as described word, then the node of a tree is created, according to predetermined symbol table Export the corresponding symbol of the introducer;If the word is generic word, then generic word is sequentially output under the newly-built node Corresponding symbol;If the word is closing, then the corresponding symbol of the closing is exported according to predetermined symbol table, and ought Front nodal point returns to its father node;
Character combining unit for establishing tree according to the corresponding symbol of words whole in formula, obtains the input language It corresponding La Taihe formula and is exported in sound.
12. device as claimed in claim 10, which is characterized in that such as word is closing, then end of output word Corresponding symbol, and present node is returned into its father node and is further included:
Such as the closing that the word is formula, then terminate the identification of formula.
13. device as claimed in claim 10, which is characterized in that the predetermined symbol table stores the introducer, generic word The corresponding La Taihe symbols obtained with closing according to La Taihe specifications.
14. device as claimed in claim 10, which is characterized in that if the classification obtaining unit is additionally operable to the word not For introducer, generic word and closing, then the word is sequentially output under the newly-built node.
CN201611239094.3A 2016-12-28 2016-12-28 A kind of input method and its device of La Taihe forms formula Pending CN108255798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611239094.3A CN108255798A (en) 2016-12-28 2016-12-28 A kind of input method and its device of La Taihe forms formula

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611239094.3A CN108255798A (en) 2016-12-28 2016-12-28 A kind of input method and its device of La Taihe forms formula

Publications (1)

Publication Number Publication Date
CN108255798A true CN108255798A (en) 2018-07-06

Family

ID=62720439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611239094.3A Pending CN108255798A (en) 2016-12-28 2016-12-28 A kind of input method and its device of La Taihe forms formula

Country Status (1)

Country Link
CN (1) CN108255798A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473551A (en) * 2019-09-10 2019-11-19 北京百度网讯科技有限公司 A kind of audio recognition method, device, electronic equipment and storage medium
CN111651961A (en) * 2020-04-15 2020-09-11 北京捷通华声科技股份有限公司 Voice-based input method and device
CN111930776A (en) * 2020-09-10 2020-11-13 北京维数统计事务所有限公司 Form processing method and device, electronic equipment and readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
侯华洋: "数学公式中文发音方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
候华洋等: "基于MathML的数学公式中文发音方法研究", 《系统科学与数学》 *
白华等: "数学公式中文发音的研究", 《计算机应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473551A (en) * 2019-09-10 2019-11-19 北京百度网讯科技有限公司 A kind of audio recognition method, device, electronic equipment and storage medium
CN111651961A (en) * 2020-04-15 2020-09-11 北京捷通华声科技股份有限公司 Voice-based input method and device
CN111930776A (en) * 2020-09-10 2020-11-13 北京维数统计事务所有限公司 Form processing method and device, electronic equipment and readable storage medium
CN111930776B (en) * 2020-09-10 2021-01-05 北京维数统计事务所有限公司 Form processing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
Chen et al. Recurrent neural network-based sentence encoder with gated attention for natural language inference
CN109923608B (en) System and method for ranking mixed speech recognition results using neural networks
CN110349572B (en) Voice keyword recognition method and device, terminal and server
CN109272988B (en) Voice recognition method based on multi-path convolution neural network
CN1327406C (en) Open type word table speech identification
CN107077841A (en) Superstructure Recognition with Recurrent Neural Network for Text To Speech
CN109887484A (en) A kind of speech recognition based on paired-associate learning and phoneme synthesizing method and device
CN110399488B (en) Text classification method and device
CN109036391A (en) Audio recognition method, apparatus and system
CN108877782A (en) Audio recognition method and device
CN107507615A (en) Interface intelligent interaction control method, device, system and storage medium
CN109460461A (en) Text matching technique and system based on text similarity model
CN108255841A (en) A kind of method and its device of topic search
CN110019712A (en) More intent query method and apparatus, computer equipment and computer readable storage medium
CN111046674B (en) Semantic understanding method and device, electronic equipment and storage medium
CN108255798A (en) A kind of input method and its device of La Taihe forms formula
CN108133168A (en) Formula searching method and its device in a kind of text identification
CN108133209A (en) Target area searching method and its device in a kind of text identification
CN106502988A (en) The method and apparatus that a kind of objective attribute target attribute is extracted
CN117935788A (en) Man-machine interaction method and device, electronic equipment and storage medium
CN111581347B (en) Sentence similarity matching method and device
US20230005466A1 (en) Speech synthesis method, and electronic device
WO2023040545A1 (en) Data processing method and apparatus, device, storage medium, and program product
CN108241604A (en) A kind of interactive editor's method and its device for realizing La Taihe form formula
CN108241847A (en) La Taihe forms formula processing method and its device in a kind of text identification

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706

RJ01 Rejection of invention patent application after publication