CN113407038A - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN113407038A
CN113407038A CN202010184014.9A CN202010184014A CN113407038A CN 113407038 A CN113407038 A CN 113407038A CN 202010184014 A CN202010184014 A CN 202010184014A CN 113407038 A CN113407038 A CN 113407038A
Authority
CN
China
Prior art keywords
pinyin
character string
input
chinese character
user
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
CN202010184014.9A
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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202010184014.9A priority Critical patent/CN113407038A/en
Publication of CN113407038A publication Critical patent/CN113407038A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses an input method, an input device and a device for inputting. An embodiment of the method comprises: when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface; receiving a Chinese character string input by a user in a pinyin conversion interface; and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin. This embodiment improves the efficiency of pinyin input.

Description

Input method, input device and input device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an input method, an input device and an input device.
Background
Pinyin is a tool for assisting the pronunciation of Chinese characters and is also an internationally universally accepted modern standard Chinese Latin transcription standard. With the spread and popularization of Chinese, pinyin needs to be used in more and more scenes. For example, in the computer teaching of Chinese or Chinese to Chinese beginners such as international students, it is often necessary to input pinyin with tone marks in a presentation. For another example, when a uncommon word is encountered, the pinyin of the word is also typically queried to determine its pronunciation.
The existing input method application usually only supports obtaining the final symbols with tone symbols, and cannot quickly obtain the complete pinyin with tone symbols, so that the user needs to query a pinyin conversion tool or a mobile phone application of a webpage version to obtain the complete pinyin of a certain Chinese language. However, this pinyin acquisition method is cumbersome, resulting in inefficient pinyin input.
Disclosure of Invention
The embodiment of the application provides an input method, an input device and an input device, and aims to solve the technical problem that the input efficiency of pinyin corresponding to Chinese is low due to the fact that the pinyin obtaining mode is complicated in the prior art.
In a first aspect, an embodiment of the present application provides an input method, where the method includes: when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface; receiving a Chinese character string input by a user in a pinyin conversion interface; and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin.
In a second aspect, an embodiment of the present application provides an input device, including: the first display unit is configured to display a pinyin conversion interface when detecting that a user triggers a pinyin conversion function in an input process; the receiving unit is configured to receive a Chinese character string input by a user in the pinyin conversion interface; and the second display unit is configured to inquire the pinyin corresponding to the Chinese character string and display the pinyin.
In a third aspect, an embodiment of the present application provides an apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors and include instructions for: when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface; receiving a Chinese character string input by a user in a pinyin conversion interface; and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin.
In a fourth aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the method as described in the first aspect above.
According to the input method, the input device and the input device, when the fact that the user triggers the pinyin conversion function in the input process is detected, a pinyin conversion interface is displayed; then receiving the Chinese character string input by the user in the pinyin conversion interface; and finally, inquiring pinyin corresponding to the Chinese character string and displaying the pinyin. Therefore, the conversion function of Chinese characters and pinyin can be triggered in the input process, and the required pinyin can be directly obtained after pinyin conversion is carried out by using the function. In the process, a pinyin conversion tool or a mobile phone application of the webpage version does not need to be inquired, so that the pinyin obtaining mode is convenient and fast, and the pinyin input efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of an input method according to the present application;
FIG. 2 is a schematic diagram of a pinyin conversion interface according to the application;
FIG. 3 is a schematic diagram of a pinyin conversion interface showing pinyin, in accordance with the present application;
FIG. 4 is a flow diagram of yet another embodiment of an input method according to the present application;
FIG. 5 is a schematic diagram of a pinyin conversion interface showing pinyin, in accordance with the present application;
FIG. 6 is a schematic diagram of a pinyin conversion interface showing pinyin, in accordance with the present application;
FIG. 7 is a schematic diagram of an embodiment of an input device according to the present application;
FIG. 8 is a schematic diagram of a structure of an apparatus for input according to the present application;
FIG. 9 is a schematic diagram of a server in accordance with some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to FIG. 1, a flow 100 of one embodiment of an input method according to the present application is shown. The input method can be operated in various electronic devices including but not limited to: a server, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, an intelligent tv, a wearable device, and so on.
The input method application mentioned in the embodiment of the application can support various input methods. The input method may be an encoding method used for inputting various symbols to electronic devices such as computers and mobile phones, and a user may conveniently input a desired character or character string to the electronic devices using the input method application. It should be noted that, in the embodiment of the present application, in addition to the common chinese input method (such as pinyin input method, wubi input method, zhuyin input method, phonetic input method, handwriting input method, etc.), the input method may also support other language input methods (such as japanese hiragana input method, korean input method, etc.), and the input method and the language category of the input method are not limited at all.
The input method in this embodiment may include the following steps:
step 101, when detecting that a user triggers a pinyin conversion function in an input process, displaying a pinyin conversion interface.
In this embodiment, when the execution main body of the input method detects that the user triggers the pinyin conversion function in the input process, a pinyin conversion interface can be displayed. The pinyin conversion function may be a function provided by an input method application. Thus, the user may trigger the function during the course of the input. This function may be used to convert a hanzi string to pinyin.
In practice, the user may trigger the pinyin conversion function in various ways. For example, the pinyin conversion function may be triggered by activating (e.g., clicking) a particular key in the input method application. Alternatively, the pinyin conversion function may be triggered by inputting a certain character string, such as "pinyin conversion"; or, a certain voice command can be input through voice to trigger the pinyin conversion function and the like. It should be noted that the manner of triggering the pinyin conversion function is not limited to the above-mentioned example, and other triggering manners may be preset as needed.
The pinyin conversion interface can comprise a first area for inputting Chinese characters and a second area for displaying pinyin. The first area can support a plurality of input modes. For example, input methods such as input by an input method and paste input are supported. The input method may include, but is not limited to, text input, voice input, and the like. The second area can present pinyin with one or more formats, and the pinyin displayed in the area can support user editing, copying and the like.
It should be noted that the first region and the second region may be two independent regions, or may be different positions in one region, and the shape and arrangement of the first region and the second region are not limited in the embodiment of the present application.
By way of example, FIG. 2 illustrates a schematic diagram of a Pinyin conversion interface. As shown in fig. 2, a rectangular frame below "original text (not exceeding 5000 characters)" is a first area for inputting chinese characters. "Zhuyin result: the lower rectangular box is a second area for displaying pinyin. The interface may include a plurality of function keys, such as a "convert" key, an "on screen" key, an "clear" key, a "select format" key, etc., in addition to the first area and the second area, for triggering different operations. For example, after the user triggers (e.g., clicks) the "convert" button, the operation of converting the kanji character string in the first region into pinyin may be performed.
It should be noted that the above function keys may not be presented in the pinyin conversion interface. For example, after a user inputs a Chinese character string in the first region, the corresponding pinyin can be automatically displayed in the second region, and the user does not need to trigger the process.
Optionally, the pinyin converted by the pinyin conversion function may adopt one or more formats. The converted format may include, but is not limited to, at least one of: phonetic body, Chinese character phonetic body, digital mark tone body, silent tone body, initial body and phonetic notation body.
The pinyin body can be in a format with more conventional pinyin. For example, the pinyin of the pinyin body corresponding to the Chinese character "Gu ǔ Lou". The Chinese character and pinyin body can be a format containing both Chinese characters and pinyin. For example, pinyin is marked above Chinese characters. The number-marked tone body may be in a pinyin format in which tones are represented numerically. For example, the number corresponding to the Chinese character "Gu" indicates the pinyin of the tone "zu 3 guo 2". The said tone-free body may be a pinyin without tone marks, such as "zu guo". The initial body may be the initial character of the pinyin corresponding to each character of the kanji character string. For example, the initial corresponding to the Chinese character "the country" is "Z G". The phonetic notation body is the phonetic notation corresponding to the Chinese character.
Step 102, receiving a Chinese character string input by a user in a pinyin conversion interface.
In this embodiment, the execution body may receive a kanji character string input by a user in the pinyin conversion interface. Here, the user can input the kanji character string through various input methods.
By way of example, a user may enter a hanzi string in a pinyin conversion interface by a code entry method or a voice entry method. At this time, the execution body may receive a character string input by the user. The encoding input mode may include, but is not limited to, handwriting input, pinyin input, five-stroke input, and the like.
As yet another example, the user may copy the text string to be converted and paste the copied text string to the Pinyin conversion interface. At this time, the execution body may receive a character string pasted by the user.
It should be noted that the execution main body may also receive the kanji character string in other manners, which is not described in detail in this embodiment of the application. For example, a Chinese character string selected by the user before triggering the Pinyin conversion function can be used as an input string, and the string can be automatically presented on a Pinyin conversion interface.
And 103, inquiring pinyin corresponding to the Chinese character string and displaying the pinyin.
In this embodiment, the execution main body may query the pinyin corresponding to the kanji character string in a plurality of ways.
In one scenario, the execution body may locally store a dictionary. The dictionary may store a large number of pinyins corresponding to words. At this time, the execution main body can query the pinyin corresponding to each character in the Chinese character string one by one through a local dictionary, so that the pinyins corresponding to the characters are arranged in sequence to obtain the pinyins corresponding to the Chinese character string.
In another scenario, the execution body may store a dictionary locally. The dictionary may store a large number of pinyins corresponding to words. At this time, the execution body may first perform word segmentation on the kanji character string. And then, querying the pinyin corresponding to each word through a local dictionary, and arranging the pinyin corresponding to each word according to the sequence to obtain the pinyin corresponding to the Chinese character string.
In another scenario, the execution subject may query pinyin corresponding to the chinese character string by sending a request to the server. And then receiving the query result returned by the server. Thereby showing the pinyin indicated by the query result.
It should be noted that the way of querying the pinyin corresponding to the kanji character string may be preset as needed, and is not limited to the above list. For example, it may first be determined whether a Chinese character string contains polyphones. If not, the pinyin corresponding to each character can be inquired, so that the pinyin corresponding to the Chinese character string is generated. If yes, the non-polyphonic characters in the Chinese character string can be converted into pinyin; then determining whether polyphone characters in the Chinese character string are converted into pinyin; and finally, combining all the pinyin according to the corresponding sequence to obtain the pinyin corresponding to the character string of the Chinese character. When the polyphone is converted into pinyin, the correct pinyin can be selected by means of the context information. In addition, when the user inputs the Chinese character string by adopting the pinyin input method, the pinyin of the polyphone can be assisted and determined by the pinyin used when the user inputs the polyphone.
In this embodiment, after the pinyin corresponding to the kanji character string is queried, the pinyin can be displayed on the current interface. For example, referring to fig. 3, fig. 3 is a schematic diagram illustrating a pinyin conversion interface after pinyin. As shown in FIG. 3, when the user inputs "Gu" in the Pinyin conversion interface, the Pinyin conversion interface may present the Pinyin "z ǔ Gu Lou".
In some optional implementations of this embodiment, the following steps may be performed:
firstly, segmenting the Chinese character string.
Various word segmentation methods may be employed herein. For example, a statistical-based word segmentation approach may be employed. Specifically, the frequency of the combination of adjacent words in the field to be analyzed may be counted, and the frequency of occurrence of the combination of words may be calculated. And when the probability is higher than a preset probability threshold value, judging that the combination forms a word, thereby realizing word segmentation of the field to be analyzed.
In addition, the word segmentation method may be a word segmentation method based on a character string matching principle, and the field to be analyzed and the character string preset in the machine dictionary of the electronic device are matched by using the character string matching principle, where the character string matching principle may be a forward maximum matching method, a reverse maximum matching method, a segmentation labeling method, a word-by-word traversal matching method, a forward optimal matching method, a reverse optimal matching method, or the like.
And secondly, correcting errors of all words obtained after word segmentation.
The execution body may adopt various existing error correction methods to correct the error of the word. For example, a set of pairs of mispronunciations may be pre-established based on historical input data for a large number of users. A large number of misword pairs may be included in the set. Each wrong word pair includes a correct word and a wrong word. The wrong word may be a word containing a wrong word. For example, the wrong words are "as a result of a fire" and "as a result of a fire", "longing" and "as a sprint", "imminent danger" and "imminent danger", etc.
At this time, for each word obtained after word segmentation, whether each word is a wrong word can be determined in a manner of matching with a wrong word pair in the wrong word pair set.
Optionally, in the process of correcting the word, when it is determined that a word contains a wrong word, the execution main body may directly replace the word in the chinese character string with a correct word; or, the characters in the word are replaced by the corresponding characters in the correct word.
Optionally, in the process of correcting the word, when it is determined that a word contains a wrong word, the execution main body may add a label of a correct word while keeping the wrong word. For example, in a kanji character string, the corresponding correct word is added after the incorrect word, and the correct word may be marked with punctuation marks such as brackets.
And thirdly, inquiring pinyin corresponding to each word obtained after error correction.
The execution main body can inquire the pinyin corresponding to each word through the dictionary, so that the pinyin corresponding to each word is arranged according to the sequence to obtain the pinyin corresponding to the Chinese character string.
Optionally, if, in the second step, a label of a correct character is added after determining that a word contains a wrong character, in the third step, the execution main body may also present the pinyin of the wrong character and the pinyin of the correct character obtained after error correction in the pinyin corresponding to the Chinese character string, so as to not only remind the user of the pronunciation of the wrong character and the pronunciation of the correct character, but also avoid the situation that the user cannot obtain an accurate pronunciation due to error correction.
Optionally, each word obtained after error correction may be sequentially used as a target word, and whether the target word contains polyphones may be determined. If the target words do not contain polyphone characters, the pinyin corresponding to each character in the target words can be inquired from a preset database. The preset database comprises corresponding relation information of Chinese characters and pinyin. It should be noted that the preset database may also contain information about correspondence between words and pinyins. At this time, the pinyin corresponding to the target word can also be directly inquired. If the target word contains polyphones, the pinyin corresponding to the polyphones in the target word can be inquired from a preset polyphone database, and the pinyin corresponding to the non-polyphones in the target word can be inquired from the preset database. The polyphone database comprises corresponding relation information of polyphones in preset words and pinyin. The preset words are words containing polyphones.
In practice, the polyphone database may maintain various polyphones in the chinese language, multiple pinyins corresponding to each polyphone, and a vocabulary (including one or more predetermined words) corresponding to each pinyin of each polyphone. As an example, for the polyphone "long", the polyphone database may contain the pinyin "ch" ng "and" zh { hach } ng corresponding to the polyphone. Meanwhile, preset words such as ' length ', ' growing ' and the like when the polyphone ' length ' is read ' ch ' ng ' can also be included; and preset words including the polyphone length when reading zh { hacek over (a) } ng, such as "elder", "long", "growing", and the like.
Therefore, for the target word of the pinyin to be inquired, for example, the target word is 'long' and the reading of the polyphone 'long' in the target word is 'zh { hacek over (a) } ng' through the polyphone database.
The multi-tone database may be pre-constructed based on a large number of data statistics. The accuracy of the pinyin can be further ensured by matching with a multi-tone database.
Fourthly, summarizing the pinyin corresponding to each word to generate the pinyin corresponding to the Chinese character string, and displaying the pinyin corresponding to the Chinese character string.
In some optional implementation manners of this embodiment, the execution main body may further display a pinyin corresponding to the chinese character string, and then display the pinyin on a screen. Therefore, the displayed pinyin can be directly displayed on a screen without being copied and pasted by a user, the convenience of inputting the pinyin by the user is further improved, and the input efficiency of the pinyin is further improved.
In some optional implementations of this embodiment, the pinyin conversion interface may further include at least one function key. The at least one function key is used for indicating at least one of the following operations to be executed on the displayed pinyin: screen-up, copying and sending. After displaying the pinyin, in response to detecting the triggering operation of the user on any function key, the operation indicated by the triggered function key can be executed on the displayed pinyin. For example, the function keys may include an on screen key, a copy key, and a send key. And when the triggering operation of the user on the screen-up key is detected, the pinyin can be displayed on the screen. When the triggering operation of the user on the copy key is detected, the pinyin can be copied. And when the triggering operation of the user on the sending key is detected, the pinyin can be sent to the opposite end in the current interactive scene.
According to the method provided by the embodiment of the application, when the fact that the user triggers the pinyin conversion function in the input process is detected, a pinyin conversion interface is displayed; then receiving the Chinese character string input by the user in the pinyin conversion interface; and finally, inquiring pinyin corresponding to the Chinese character string and displaying the pinyin. Therefore, the conversion function of Chinese characters and pinyin can be triggered in the input process, and the required pinyin can be directly obtained after pinyin conversion is carried out by using the function. In the process, a pinyin conversion tool or a mobile phone application of the webpage version does not need to be inquired, so that the pinyin obtaining mode is convenient and fast, and the pinyin input efficiency is improved.
With further reference to fig. 4, a flow 200 of yet another embodiment of an input method is shown. The process 400 of the input method includes the following steps:
step 401, when it is detected that the user triggers the pinyin conversion function in the input process, displaying a pinyin conversion interface.
It should be noted that step 401 may refer to step 101 in the embodiment corresponding to fig. 1, which is not described again in this embodiment.
Step 402, receiving a Chinese character string input by a user in a pinyin conversion interface.
It should be noted that step 402 may refer to step 102 in the embodiment corresponding to fig. 1, and this embodiment is not described again.
And 403, detecting the triggering operation of the user on the format option in the pinyin conversion interface.
In this embodiment, at least one format option may be included in the pinyin conversion interface. Different format options may correspond to different pinyin formats. Therefore, the Chinese character string input by the user can be converted into pinyin with different formats. After receiving the Chinese character string input by the user in the pinyin conversion interface, the execution main body can detect the triggering operation of the user on the format option in the pinyin conversion interface.
In practice, the at least one format option includes at least one of: phonetic body, Chinese character phonetic body, digital mark tone body, silent tone body, initial body and phonetic notation body.
In this embodiment, the format options in the pinyin conversion interface may be presented in the form of images, icons, or menus. The display style of the pinyin conversion interface and the format options may be preset as required, which is not limited in this embodiment.
It should be noted that the operation of step 403 may also be performed before step 402.
And step 404, taking the format of the trigger operation indication as a target format, inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin in the target format.
In this embodiment, the execution main body may query the pinyin corresponding to the chinese character string by using the format of the trigger operation indication as a target format. Here, the operation of querying the pinyin corresponding to the kanji character string may be step 103, which is not described in detail in this embodiment.
After querying the pinyin corresponding to the kanji character string, the execution body may display the pinyin in a target format.
By way of example, FIG. 5 illustrates a diagram of a Pinyin conversion interface after Pinyin is presented. As shown in fig. 5, after the user inputs the chinese character string "home" in the pinyin conversion interface, the format option "hanzi plus pinyin body" is triggered. At this time, a presentation result as shown in fig. 5 may be presented.
As yet another example, FIG. 6 illustrates yet another schematic diagram of a Pinyin conversion interface after Pinyin is presented. As shown in fig. 6, after the user inputs the chinese character string "home" in the pinyin conversion interface, the format option "number-labeled tone" is triggered. At this time, a presentation result as shown in fig. 6 may be presented.
As can be seen from fig. 4, compared with the embodiment shown in fig. 1, the process 400 of the input method in this embodiment involves a step of detecting a trigger operation of a user on a format option in a pinyin conversion interface and a step of presenting a pinyin according to a format indicated by the trigger operation. Therefore, various formats can be provided for the user to select, and the pinyin display effect is enriched.
With further reference to fig. 7, as an implementation of the method shown in the above figures, the present application provides an embodiment of an input device, which corresponds to the embodiment of the method shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 7, the input device 700 according to the present embodiment includes: a first presentation unit 701 configured to present a pinyin conversion interface when it is detected that a user triggers a pinyin conversion function during an input process; a receiving unit 702 configured to receive a kanji character string input by the user in the pinyin conversion interface; the second display unit 703 is configured to query the pinyin corresponding to the kanji character string and display the pinyin.
In some optional implementations of this embodiment, the receiving unit 702 is further configured to: receiving a Chinese character string input by the user in the pinyin conversion interface in a coding input mode or a voice input mode; or receiving the Chinese character string pasted by the user in the pinyin conversion interface.
In some optional implementations of this embodiment, the pinyin conversion interface includes at least one format option; and, the second presentation unit 703 is further configured to: detecting the triggering operation of the user on the format option in the pinyin conversion interface; and taking the format of the trigger operation indication as a target format, inquiring the pinyin corresponding to the Chinese character string, and displaying the pinyin in the target format.
In some optional implementations of this embodiment, the at least one format option includes at least one of: phonetic body, Chinese character phonetic body, digital mark tone body, silent tone body, initial body and phonetic notation body.
In some optional implementations of this embodiment, the pinyin conversion interface includes at least one function key, where the at least one function key is used to instruct at least one of the following operations to be performed on the displayed pinyin: screen-up, copying and sending; and after said presenting said pinyin, said device further comprising: an operation unit configured to execute the operation indicated by the triggered function key on the pinyin in response to detecting the triggering operation of the user on any function key
In some optional implementations of this embodiment, the second display unit 703 is further configured to: performing word segmentation on the Chinese character string; correcting errors of all words obtained after word segmentation; inquiring pinyin corresponding to each word obtained after error correction; and summarizing the pinyin corresponding to each word to generate the pinyin corresponding to the Chinese character string, and displaying the pinyin corresponding to the Chinese character string.
In some optional implementations of this embodiment, the second display unit 703 is further configured to: sequentially taking each word obtained after error correction as a target word, and executing the following steps: determining whether the target words contain polyphone characters; if the target word does not contain polyphone characters, inquiring pinyin corresponding to each character in the target word from a preset database, wherein the preset database comprises corresponding relation information of Chinese characters and pinyin; and if yes, inquiring pinyin corresponding to polyphones in the target word from a preset polyphone database, and inquiring pinyin corresponding to non-polyphones in the target word from the preset database, wherein the polyphone database comprises corresponding relation information of polyphones and pinyin in preset words, and the preset words are words containing the polyphones.
The device provided by the above embodiment of the application shows the pinyin conversion interface when detecting that the user triggers the pinyin conversion function in the input process; then receiving the Chinese character string input by the user in the pinyin conversion interface; and finally, inquiring pinyin corresponding to the Chinese character string and displaying the pinyin. Therefore, the conversion function of Chinese characters and pinyin can be triggered in the input process, and the required pinyin can be directly obtained after pinyin conversion is carried out by using the function. In the process, a pinyin conversion tool or a mobile phone application of the webpage version does not need to be inquired, so that the pinyin obtaining mode is convenient and fast, and the pinyin input efficiency is improved.
Fig. 8 is a block diagram illustrating an apparatus 800 for input according to an example embodiment, the apparatus 800 may be an intelligent terminal or a server. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user as described above. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the above-mentioned communication component 816 further comprises a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 9 is a schematic diagram of a server in some embodiments of the present application. The server 900 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and memory 932, one or more storage media 930 (e.g., one or more mass storage devices) storing applications 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 922 may be provided in communication with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.
The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, one or more keyboards 956, and/or one or more operating systems 941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input method, the method comprising: when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface; receiving a Chinese character string input by the user in the pinyin conversion interface; and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin.
Optionally, the receiving the chinese character string input by the user in the pinyin conversion interface includes: receiving a Chinese character string input by the user in the pinyin conversion interface in a coding input mode or a voice input mode; or receiving the Chinese character string pasted in the pinyin conversion interface by the user.
Optionally, the pinyin conversion interface includes at least one format option; and, said presenting said pinyin comprises: detecting the triggering operation of the user on the format option in the pinyin conversion interface; and taking the format of the trigger operation indication as a target format, inquiring the pinyin corresponding to the Chinese character string, and displaying the pinyin in the target format.
Optionally, the at least one format option includes at least one of: phonetic body, Chinese character phonetic body, digital mark tone body, silent tone body, initial body and phonetic notation body.
Optionally, the pinyin conversion interface includes at least one function key, where the at least one function key is used to instruct the displayed pinyin to perform at least one of the following operations: screen-up, copying and sending; and, the device being configured to execute the one or more programs by the one or more processors includes instructions for: and in response to the detection of the triggering operation of the user on any function key, executing the operation indicated by the triggered function key on the pinyin.
Optionally, the querying pinyin corresponding to the chinese character string and displaying the pinyin includes: performing word segmentation on the Chinese character string; correcting errors of all words obtained after word segmentation; inquiring pinyin corresponding to each word obtained after error correction; and summarizing the pinyin corresponding to each word to generate the pinyin corresponding to the Chinese character string, and displaying the pinyin corresponding to the Chinese character string.
Optionally, the querying the pinyin corresponding to each word obtained after error correction includes: sequentially taking each word obtained after error correction as a target word, and executing the following steps: determining whether the target word contains polyphone characters; if the target word does not contain polyphone characters, inquiring pinyin corresponding to each character in the target word from a preset database, wherein the preset database comprises corresponding relation information of Chinese characters and pinyin; and if yes, inquiring pinyin corresponding to polyphones in the target word from a preset polyphone database, and inquiring pinyin corresponding to non-polyphones in the target word from the preset database, wherein the polyphone database comprises corresponding relation information of polyphones and pinyin in preset words, and the preset words are words containing the polyphones.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The present application provides an input method, an input device and an input device, and the principles and embodiments of the present application are described herein using specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An input method, characterized in that the method comprises:
when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface;
receiving a Chinese character string input by the user in the pinyin conversion interface;
and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin.
2. The method of claim 1, wherein receiving the kanji character string entered by the user in the pinyin conversion interface comprises:
receiving a Chinese character string input by the user in the pinyin conversion interface in a coding input mode or a voice input mode; or
And receiving the Chinese character string pasted in the pinyin conversion interface by the user.
3. The method of claim 1, wherein the pinyin conversion interface includes at least one format option; and
the displaying the pinyin comprises:
detecting the triggering operation of the user on the format option in the pinyin conversion interface;
and taking the format of the trigger operation indication as a target format, inquiring the pinyin corresponding to the Chinese character string, and displaying the pinyin in the target format.
4. The method of claim 3, wherein the at least one format option comprises at least one of: phonetic body, Chinese character phonetic body, digital mark tone body, silent tone body, initial body and phonetic notation body.
5. The method of claim 1, wherein the pinyin conversion interface includes at least one function key for instructing performance of at least one of the following operations on the presented pinyin: screen-up, copying and sending; and
after the presenting the pinyin, the method further comprising:
and in response to the detection of the triggering operation of the user on any function key, executing the operation indicated by the triggered function key on the pinyin.
6. The method of claim 1, wherein the querying the pinyin corresponding to the kanji character string and presenting the pinyin comprises:
performing word segmentation on the Chinese character string;
correcting errors of all words obtained after word segmentation;
inquiring pinyin corresponding to each word obtained after error correction;
and summarizing the pinyin corresponding to each word to generate the pinyin corresponding to the Chinese character string, and displaying the pinyin corresponding to the Chinese character string.
7. The method of claim 6, wherein the querying the pinyin corresponding to each word obtained after error correction comprises:
sequentially taking each word obtained after error correction as a target word, and executing the following steps:
determining whether the target word contains polyphone characters;
if the target word does not contain polyphone characters, inquiring pinyin corresponding to each character in the target word from a preset database, wherein the preset database comprises corresponding relation information of Chinese characters and pinyin;
and if yes, inquiring pinyin corresponding to polyphones in the target word from a preset polyphone database, and inquiring pinyin corresponding to non-polyphones in the target word from the preset database, wherein the polyphone database comprises corresponding relation information of polyphones and pinyin in preset words, and the preset words are words containing the polyphones.
8. An input device, the device comprising:
the first display unit is configured to display a pinyin conversion interface when detecting that a user triggers a pinyin conversion function in an input process;
a receiving unit configured to receive a Hanzi character string input by the user in the pinyin conversion interface;
and the second display unit is configured to inquire the pinyin corresponding to the Chinese character string and display the pinyin.
9. An apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
when detecting that a user triggers a pinyin conversion function in the input process, displaying a pinyin conversion interface;
receiving a Chinese character string input by the user in the pinyin conversion interface;
and inquiring pinyin corresponding to the Chinese character string, and displaying the pinyin.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010184014.9A 2020-03-16 2020-03-16 Input method, input device and input device Pending CN113407038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010184014.9A CN113407038A (en) 2020-03-16 2020-03-16 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010184014.9A CN113407038A (en) 2020-03-16 2020-03-16 Input method, input device and input device

Publications (1)

Publication Number Publication Date
CN113407038A true CN113407038A (en) 2021-09-17

Family

ID=77676839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010184014.9A Pending CN113407038A (en) 2020-03-16 2020-03-16 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN113407038A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327090A (en) * 2021-12-31 2022-04-12 吉林科讯信息科技有限公司 Japanese input method and related device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841277A (en) * 2005-03-30 2006-10-04 英华达(上海)电子有限公司 Method for displaying Chinese phonetic transcription in hand-writing input method
CN101241514A (en) * 2008-03-21 2008-08-13 北京搜狗科技发展有限公司 Method for creating error-correcting database, automatic error correcting method and system
CN101699536A (en) * 2009-10-20 2010-04-28 无敌科技(西安)有限公司 Method and electronic device for adding phonetic symbols to Chinese characters
CN105404624A (en) * 2014-09-01 2016-03-16 阿里巴巴集团控股有限公司 Chinese character recognition method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841277A (en) * 2005-03-30 2006-10-04 英华达(上海)电子有限公司 Method for displaying Chinese phonetic transcription in hand-writing input method
CN101241514A (en) * 2008-03-21 2008-08-13 北京搜狗科技发展有限公司 Method for creating error-correcting database, automatic error correcting method and system
CN101699536A (en) * 2009-10-20 2010-04-28 无敌科技(西安)有限公司 Method and electronic device for adding phonetic symbols to Chinese characters
CN105404624A (en) * 2014-09-01 2016-03-16 阿里巴巴集团控股有限公司 Chinese character recognition method, device and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327090A (en) * 2021-12-31 2022-04-12 吉林科讯信息科技有限公司 Japanese input method and related device and equipment

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
CN107688399B (en) Input method and device and input device
CN108829686B (en) Translation information display method, device, equipment and storage medium
CN109002183B (en) Information input method and device
CN109388810A (en) A kind of data processing method, device and the device for data processing
CN111860000A (en) Text translation editing method and device, electronic equipment and storage medium
CN109308126B (en) Candidate word display method and device
CN110795014B (en) Data processing method and device and data processing device
CN106339160A (en) Browsing interactive processing method and device
CN113918030A (en) Handwriting input method and device and handwriting input device
CN105487799A (en) Content conversion method and device
CN113407038A (en) Input method, input device and input device
CN110780749B (en) Character string error correction method and device
CN109471538B (en) Input method, input device and input device
CN108108356B (en) Character translation method, device and equipment
RU2636673C2 (en) Method and device for line saving
CN112837668B (en) Voice processing method and device for processing voice
CN109992121B (en) Input method, input device and input device
CN108983992B (en) Candidate item display method and device with punctuation marks
CN107688400B (en) Input error correction method and device for input error correction
CN112905023A (en) Input error correction method and device for input error correction
CN112528129B (en) Language searching method and device for multilingual translation system
US10423706B2 (en) Method and device for selecting information
CN111752397B (en) Candidate word determining method and device
CN112748809B (en) Method and device for displaying entry of input method

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