WO2022105754A1 - Character input method and apparatus, and electronic device - Google Patents

Character input method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022105754A1
WO2022105754A1 PCT/CN2021/130961 CN2021130961W WO2022105754A1 WO 2022105754 A1 WO2022105754 A1 WO 2022105754A1 CN 2021130961 W CN2021130961 W CN 2021130961W WO 2022105754 A1 WO2022105754 A1 WO 2022105754A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
word
text
input
words
Prior art date
Application number
PCT/CN2021/130961
Other languages
French (fr)
Chinese (zh)
Inventor
董丽君
孟庆杰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022105754A1 publication Critical patent/WO2022105754A1/en

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
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a method, an apparatus and an electronic device for inputting text.
  • the electronic device when a user uses an electronic device to input content, if the above-mentioned input content happens to have corresponding text content in the first thesaurus of the electronic device, it can be directly displayed in the electronic device for the user to select.
  • the electronic device When there is no corresponding text content in the first lexicon of the electronic device, in order to improve the efficiency of the user inputting text, the electronic device usually records the final on-screen vocabulary when the user enters the content, and when the user enters the input content again, you can Displayed directly in the electronic device for user selection.
  • the electronic device since the electronic device records all the characters on the screen, when the user inputs part of the characters in the whole sentence, the electronic device still cannot directly output the characters required by the user. In this way, the vocabulary recorded by the electronic device cannot meet the actual needs of the user and conform to the actual input habit of the user, which in turn makes the user need to use the electronic device to repeatedly input text, which increases the steps of text input, resulting in low efficiency when the user enters text. .
  • the purpose of the embodiments of the present application is to provide a method, device and electronic device for inputting text, which can solve the problem that the vocabulary recorded by the electronic device cannot meet the actual needs of the user and conform to the actual input habit of the user, thereby making the user need to use the electronic device.
  • the device repeatedly enters text, adding steps to enter text, which leads to a problem of low efficiency when the user enters text.
  • an embodiment of the present application provides a method for inputting text.
  • the method includes: an electronic device receives a first character string input by a user, and displays a first text corresponding to the first character string;
  • the text includes the target word
  • the above target word and the corresponding relationship between the above target word and the target character string are stored in the target thesaurus; wherein, the above-mentioned first character string includes the above-mentioned target character string, and the above-mentioned target word is semantic complete words.
  • an embodiment of the present application provides a device for inputting text
  • the device includes a display module and a storage module
  • the display module is configured to receive a first character string input by a user, and display the first character string corresponding to the first character string.
  • a text the above-mentioned storage module is configured to store the above-mentioned target word and the corresponding relationship between the above-mentioned target word and the target character string in the target vocabulary when the above-mentioned first text displayed by the above-mentioned display module includes the target word; wherein , the first character string includes the target character string, and the target word is the semantically complete word.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the electronic device after receiving the first character string input by the user, displays the first text corresponding to the first character string, and if the first text includes a target word, the target word, And the corresponding relationship between the target word and the target character string is stored in the target lexicon, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that after the electronic device displays the first text, the electronic device can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target vocabulary.
  • the device enables the user to directly output the target word for the user to use when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device in the future, saving user input.
  • the time and steps for selecting the final word after the character string corresponding to the target word improves the efficiency of the user using the electronic device.
  • FIG. 1 is a schematic flowchart of a method for inputting text provided by an embodiment of the present application
  • FIG. 2 is one of the schematic diagrams of an interface to which a method for inputting text provided by an embodiment of the present application is applied;
  • FIG. 3 is a second schematic diagram of an interface to which a method for inputting text provided by an embodiment of the present application is applied;
  • FIG. 4 is a schematic structural diagram of a device for inputting text according to an embodiment of the present application.
  • FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the method for inputting text provided by the embodiments of the present application can be applied to a scenario where a user inputs text on the upper screen.
  • the user may have the following two input situations:
  • the first input case is a first input case
  • the electronic device will record the sentence "Do you like Xiao Ming” in the thesaurus.
  • the user needs to use the electronic device "Xiao Ming” since the electronic device records the sentence "Do you like Xiao Ming", the user needs to filter "Xiao” and "Ming” in turn after entering "xiaoming" on the screen.
  • the electronic equipment can only record a complete sentence that is displayed on the screen at one time, but cannot record other words in the sentence that are not in the electronic equipment thesaurus.
  • the user needs other words in the sentence
  • the vocabulary is displayed on the screen, the user will actually be caused to repeatedly input the words that have been entered and displayed on the screen, which increases the steps for the user to input characters, and reduces the efficiency of the user in using the electronic device.
  • the second input case is a first input case
  • This embodiment provides a method for inputting text. As shown in FIG. 1 , this embodiment is applied to a first electronic device, and the electronic device positioning method includes the following steps 201 and 202
  • Step 201 The device for inputting text receives a first character string input by a user, and displays a first text corresponding to the first character string.
  • the above-mentioned first text may be a candidate word selected by the user and displayed in the candidate word display area to be displayed on the screen.
  • the above-mentioned first text may be the first text consisting of X words, or may be the first text consisting of X words corresponding to one word.
  • the above process of displaying the first text may be: displaying the candidate words to be displayed on the screen in other areas of the interface except the candidate word display area.
  • the current display interface is a dialog window interface of a chat application
  • the user can display the first text displayed in the candidate word display area in the dialog window interface through the first input, as shown in FIG. 2 , except for the above-mentioned dotted line
  • the area other than the area where the frame 11 is located, and the remaining areas are the display areas after the screen is displayed.
  • the above-mentioned process of displaying the first text may be: after the above-mentioned X words are displayed in the candidate word display area, the electronic device receives the input on the upper screen. On the screen together.
  • the above-mentioned process of displaying the first text may be: the Y-th word in the above-mentioned X words is displayed in the candidate word display area. After the electronic device receives the input from the screen, the screen is displayed.
  • the process of displaying the first text may be: after the first character in the above-mentioned X characters is displayed in the candidate word display area, the electronic device receives the input from the screen; then, the first character in the above-mentioned X characters is displayed on the screen; After the two characters are displayed in the candidate word display area, they are displayed on the screen after the electronic device receives the input on the upper screen; until the Xth character in the above X characters is displayed in the candidate word display area, after the electronic device receives the input on the upper screen screen.
  • the Y-th word in the above-mentioned X words may be one word in the X words, or may be a plurality of words, but not all the words in the X words.
  • Example 1 When the user needs the first text displayed on the electronic device to be "Fuding Community”, the user can first enter “Blessing”, go to the screen, delete “Wish”, then enter “Ding”, go to the screen, and finally enter " Community” on the screen, then the final first text on the screen is "Fuding Community”.
  • Step 202 In the case where the first text includes the target word, the device for inputting the text stores the target word and the corresponding relationship between the target word and the target character string in the target vocabulary.
  • the first character string includes the target character string
  • the target word is a word with complete semantics.
  • the above-mentioned words with complete semantics are words that can express complete and independent meanings
  • the above-mentioned target thesaurus may be an overall thesaurus pre-stored in the electronic device, that is, a thesaurus containing all words in the electronic device; it may also be a user-defined thesaurus; it may also be a pre-stored thesaurus in the electronic device
  • a sub-thesaurus, the sub-thesaurus can be a thesaurus corresponding to one or several applications.
  • the device for inputting text after receiving the first character string input by the user, the device for inputting text displays the first text corresponding to the first character string, and the first text includes the text of the target word.
  • the target word and the corresponding relationship between the target word and the target character string are stored in the target lexicon
  • the first character string includes the target character string
  • the target word is a word with complete semantics.
  • the device for inputting text can directly output the target word when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device through this intelligent learning method.
  • the time and steps for selecting the final word after the user enters the character string corresponding to the target word is saved, and the efficiency of the user using the electronic device is improved.
  • the method for inputting text in this embodiment of the present application may include the following step A:
  • Step A The device for inputting text performs word segmentation processing on the first text, and extracts N words in the first text.
  • the above target words are: words that are not stored in the target word database among the above N words.
  • the above word segmentation process may be a process of performing word recognition on the first text.
  • the electronic device may use an application tool or a plug-in including a natural language processing (Natural Language Processing, NLP) function to perform word segmentation processing on the above-mentioned first text.
  • NLP Natural Language Processing
  • the above-mentioned word segmentation processing is a process of identifying and extracting N words from the first text.
  • the word segmentation process is a process of identifying the three words "you", “like” and "Xiaoming" from the first text "you like Xiaoming”.
  • the electronic device can recognize N word segments, that is, N words, in the first text through the recognition process of the word segmentation process.
  • the electronic device may compare the above N words with all the words stored in the target thesaurus. For the repeated words, only words that are not stored in the target thesaurus are stored.
  • Example 1 Suppose the user uses the Pinyin input method to input "nixihuanxiaoming" (ie the first string above) in the chat interface while using the chat application, and selects the corresponding Chinese “You like Huawei", as shown in Figure 3 As shown in (a) of the above, the user clicks the “send” control 21 to input the input, and after the electronic device receives the input, as shown in (b) of FIG. That is, the above-mentioned first text) is displayed in the dialog interface 22 . At this time, the electronic device performs word segmentation processing on "you like Huaweing", and extracts 3 word segmentations (that is, the above N words), which are "you", “like” and "Xiaoming”.
  • the electronic device compares the above three segmented words with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus). If the word database does not contain "Xiao Ming", the electronic device stores "Xiao Ming" (that is, the above target word) in the word database.
  • the method for inputting text may further include the following steps B1 and B2:
  • Step B1 The apparatus for inputting text receives the first input of the above-mentioned first text sent by the user.
  • Step B2 In response to the above-mentioned first input, the apparatus for inputting text displays the above-mentioned first text on the screen.
  • the method for inputting text may include the following step B3:
  • Step B3 The device for inputting text performs word segmentation processing on the above-mentioned first text after being displayed on the screen.
  • first input can be used to trigger the candidate word to be displayed on the screen, that is, the first text to be displayed on the screen.
  • the device for inputting text displays the first text on the screen.
  • relevant operations of word segmentation processing are started.
  • the above-mentioned first input may be a touch input, for example, a click input, a voice input, or an input of a special gesture, which is not limited in this embodiment of the present application.
  • the method for inputting text may further include the following steps C1 and C2:
  • Step C1 The device for inputting text receives the user's input for deleting the target character in the first text.
  • Step C2 The device for inputting characters integrates the characters before and after the target character, and determines the integrated word as the target word if the word obtained after integration satisfies the condition.
  • the above target characters are part of the characters in the first text.
  • the above-mentioned target character can be located in the middle position of the first text, that is, there are characters before and after the target character; the above-mentioned target character can be located in the front position of the first text, that is, there is no character in front of the target character;
  • the target character may be located behind the first text, that is, there are no characters behind the target character.
  • the input device automatically combines the remaining characters after receiving the deleted input, and generates words correspondingly.
  • the above conditions are: the generated words are words not included in the target vocabulary, that is, if the words obtained after integration are not in the target vocabulary, the integrated words are determined as target words and stored.
  • Example 2 Combined with the above example 1, suppose the user uses the Pinyin input method to input “qinshui”, “wanliu” and “huayuan” in the input box successively, and selects the corresponding Chinese “hydrophilic”, “Gulf stream” and “garden”.
  • the input device After entering the box, delete and input the middle character "flow" in the string, then the remaining "hydrophilic bay garden", the input device will compare "hydrophilic bay garden" with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus ) to compare the words in the thesaurus in the electronic device, if the word is not included in the thesaurus in the electronic device (that is, if the above conditions are met), determine "Hyridic Bay Garden” as the target word and store it in the thesaurus.
  • the user can display the characters containing the words required by the user in the input box by spelling the commonly used vocabulary, and when the user deletes the redundant characters,
  • the electronic device can automatically integrate the remaining characters, and store the word in the thesaurus if the target vocabulary does not contain the word, so as to be used for the next use, and improve the efficiency of the user's use of the electronic device to input characters.
  • performing word segmentation processing on the first text in the above step A, and extracting N words in the first text may include the following steps D1 and D2:
  • Step D1 In the case where there is a deletion input of the target character in the first text, the device for inputting text detects the first substring before the target position where the target character is located, and detects the first substring in the first subcharacter. When the string satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word.
  • Step D2 In the presence of deletion input of the target character in the first text, the device for inputting text detects the second substring after the target position where the target character is located, and performs When the string satisfies the predetermined word segmentation condition, the word matching the above-mentioned second substring is determined as the target word.
  • the predetermined word segmentation condition is: words matching the first substring and words matching the second substring are words not included in the target vocabulary.
  • the above-mentioned first substring may contain multiple characters
  • the above-mentioned second substring may also contain multiple characters
  • the device for inputting text can automatically traverse the target lexicon of the electronic device to inquire whether it contains words that match the first substring and words that match the second substring. Words, in the case that the words matching the first substring and the words matching the second substring are not included, the words matching the first substring and the words matching the second substring can be automatically combined.
  • the words are stored in the target thesaurus.
  • the electronic device can automatically detect the words formed by the strings before and after the redundant characters, and compare it with its own target thesaurus.
  • the words formed by the above strings are not included, the words formed by the strings before and after the above redundant characters are stored in the thesaurus for memory, which is convenient for users to use later.
  • the detection time improves the efficiency of the user inputting text using the electronic device.
  • the above-mentioned first character string includes M substrings.
  • the method for inputting text in this embodiment of the present application may include the following step E:
  • Step E The device for inputting text determines the target candidate words corresponding to each substring, and displays the M target candidate words on the screen, where M is a positive integer.
  • the above-mentioned first character string is a character string corresponding to the characters or words that the user needs to display on the screen.
  • the characters in the above-mentioned first character string may correspond to different character types. For example, Pinyin characters, or Wubi characters.
  • the above-mentioned M substrings may correspond to a single character, or a word, or a phrase, or an entire sentence. where each substring corresponds to a character type.
  • the above-mentioned M substrings may correspond to a single character or a word containing a single character, that is, the above-mentioned 1 substring corresponds to a single character or a word that includes a single character string.
  • the above-mentioned X single characters as described in the foregoing content, may form a word, and the word corresponds to the first text.
  • the substring corresponding to the character "Fu” in the above example 1 may be "fu", or the character string "zhufu" corresponding to the word "blessing" containing the character "Fu”.
  • the above-mentioned M sub-strings may correspond to phrases or whole sentences, that is, the above-mentioned M sub-strings correspond to a phrase composed of N words or a whole sentence composed of N words. String.
  • One substring corresponds to one word, and the above-mentioned N words can form the first text as described in the foregoing content.
  • a candidate word corresponding to the substring will be displayed on the interface displaying the substring for the user to select, and the user selects the target candidate corresponding to the substring.
  • the screen input can be performed on the electronic device, and the M target candidate words can be displayed on the screen.
  • Example 3 Suppose the user wants to use the pinyin input method to output "hydrophilic bay garden" in the dialog box of the chat interface during the process of using the chat application, then the user first uses the pinyin input method to input "qin” in the chat interface, and then In the candidate words, select “pro” (that is, the above-mentioned target candidate word) on the screen; then enter “shui” in the chat interface, select “water” (that is, the above-mentioned target candidate word) on the screen; then enter “wanliu” in the chat interface , select “Gulfstream” (that is, the target candidate word above) on the screen, delete the word “Flow” in “Gulfstream”; finally, enter “huayuan” in the chat interface, select “Garden” (that is, the target candidate word above) on the screen , and finally output "Hybrid Bay Garden” in the dialog 22 of the chat interface.
  • select "pro” that is, the above-mentioned target candidate word
  • water
  • the word segmentation process is performed on the first text to extract the N words in the first text
  • the method for inputting text in the embodiment of the present application may include: Step F as follows:
  • Step F When the duration of the above-mentioned first text on the screen reaches a predetermined duration, the device for inputting text performs word segmentation processing on the above-mentioned first text to obtain N words.
  • the above-mentioned predetermined duration may be preset by the electronic device, or may be user-defined and set, which is not limited in this embodiment of the present application.
  • Example 4 Combined with the above example 1, when the electronic device displays "You like Huawei” (that is, the first text above) in the dialog interface (that is, the above-mentioned upper screen), after the predetermined time period arrives, the electronic device displays "Do you like Huawei” "Xiao Ming" (that is, the first text above) is subjected to word segmentation processing to obtain 3 word segmentations (that is, the above N words). For specific word segmentation processing, please refer to Example 1.
  • Example 5 Combined with the above example 3, when "Hydromic Bay Garden” is output in the dialog box 31 of the chat interface, after the predetermined time period arrives, the electronic device will perform an operation on the "Hyridic Bay Garden" (that is, the above-mentioned first text). After word segmentation processing, 1 word segmentation (that is, the above-mentioned N words) is obtained, and the electronic device compares the above-mentioned 1 word segmentation with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus). If the "hydrophilic bay garden” is not stored in the thesaurus, the electronic device stores the "hydrophilic bay garden” (ie, the above target word) in the thesaurus.
  • 1 word segmentation that is, the above-mentioned N words
  • the electronic device compares the above-mentioned 1 word segmentation with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus). If the "hydrophilic bay garden”
  • the electronic device can perform word segmentation processing after combining the content input by the user for a period of time, and even the words output by the user through multiple screen display processes can also be learned and stored in the target vocabulary, that is, it is not only It can memorize and store long sentences or phrases in segments, and can also memorize and store words composed of single characters by themselves. Therefore, it is convenient for the user to use the word again and directly generate the word, so that the way that the electronic device learns and stores the text input by the user is more in line with the actual input habit of the user, enhances the ability of the electronic device to learn and store words, and improves the efficiency of the user using the electronic device.
  • the method for inputting text in the embodiment of the present application may include the following step G1:
  • Step G1 The device for inputting characters receives the first character string input by the user when the target interface of the target application is displayed.
  • step G2 Based on above-mentioned step G1, in above-mentioned step 202 with above-mentioned target word, and the correspondence relation of above-mentioned target word and target character string is stored in the target vocabulary, the method for inputting text in the embodiment of the present application can comprise following step G2:
  • Step G2 The device for inputting characters stores the N target words and the corresponding relationship between the target words and the target character string in the target vocabulary corresponding to the target application.
  • the above-mentioned target application may be any application in the electronic device that includes a text-based interaction function.
  • chat application video application.
  • the above-mentioned target interface may be any interface in the above-mentioned target application in which the user can input text.
  • chat interface in chat application video search interface in video application.
  • the above target thesaurus may be: a thesaurus composed of words related to the content in the target application.
  • the above-mentioned target thesaurus may be a thesaurus carried by the target application.
  • the target thesaurus may be the thesaurus corresponding to the thesaurus data package pre-stored in the data package of the target application when the user downloads the target application.
  • the above-mentioned relationship between the target application and the target vocabulary may be a one-to-one correspondence, that is, one target application corresponds to one target vocabulary; it may also be a corresponding relationship in which multiple applications correspond to one target vocabulary.
  • the electronic device may set the vocabulary according to the functional characteristics of the application. For example: when the target application is a shopping application of daily necessities, the words contained in the thesaurus of the shopping application of life are words of daily necessities; when the application is a shopping application of food, the thesaurus of the shopping application of food contains words The words are food words.
  • the electronic device may set the thesaurus according to the type of the application. For example, when both the lifestyle shopping application and the food shopping application are shopping applications, the above-mentioned life shopping application and food shopping correspond to the same thesaurus, and the words contained in the thesaurus are shopping words, which can satisfy the The needs of life shopping applications can also meet the needs of food shopping applications.
  • the electronic device may store the target word segment in the target word database.
  • the electronic device can classify the target word segmentation according to the word segmentation type, and store it in the target thesaurus corresponding to the target application.
  • the electronic device Words that match the application scenario can be accurately retrieved from the target thesaurus corresponding to the target application for the user to filter and use.
  • the method for inputting text provided by the embodiment of the present application further includes the following steps H1 and H2:
  • Step H1 The device for inputting text receives the second input of the second character string.
  • the second character string includes a start character of the character string corresponding to the target word segment and some characters after the start character.
  • the target participle is "qinshuiwanhuayuan”
  • the above second string can be: “qinshuiw”.
  • the above-mentioned second character string does not include the complete character string corresponding to the above-mentioned target word segmentation.
  • Step H2 In response to the second input, the device for inputting text displays a list of candidate words corresponding to the second character string.
  • the above-mentioned second input is an input for inputting a second character string.
  • the above-mentioned second input may be a touch input, such as a click input, a voice input, or an input of a specific gesture. , which is not limited in the embodiments of the present application.
  • the above-mentioned candidate word list may include all candidate words that conform to the above-mentioned second character string spelling rule, and the above-mentioned candidate word list includes the above-mentioned target word.
  • the electronic device may adjust the display priority order of the target word within a predetermined time after the electronic device stores the target word, and within the predetermined time, if the user inputs the second character string, the electronic device may In the candidate word list, adjust the display order of the target word to the first display.
  • Example 6 Before “Xiao Ming" is stored, when the user inputs the partial string “xiao” corresponding to “Xiao Ming", the display order of the candidate words in the candidate word list is "Xiaohua”, “Xiaohong”.
  • the user after the target word is stored in the thesaurus of the electronic device, the user only needs to input some characters corresponding to the target word, and then the target word can be found in the candidate word list and used, which improves the user's ability to input text using the electronic device. efficiency.
  • the execution body may be a device for inputting characters, or a control module in the device for inputting characters for executing the method for inputting characters.
  • the device for inputting characters provided by the embodiments of the present application is described by taking the method for inputting characters performed by the device for inputting characters as an example.
  • FIG. 4 is a schematic structural diagram of a possible structure of the apparatus for implementing the text input provided by the embodiment of the present application.
  • the above-mentioned apparatus 600 for inputting text includes: a display module 601 and a storage module 602; the above-mentioned display module 601 is used for receiving a first character string input by a user, and displaying the first text corresponding to the above-mentioned first character string;
  • the above-mentioned storage module 602 is configured to store the above-mentioned target word and the corresponding relationship between the above-mentioned target word and the target character string in the target vocabulary when the above-mentioned first text displayed by the above-mentioned display module 601 includes the target word; wherein,
  • the above-mentioned first character string includes the above-mentioned target character string, and the above-mentioned target word is the above-mentioned semantically complete word.
  • the device for inputting text provided by the embodiment of the present application, after receiving the first character string input by the user, the device for inputting text displays the first text corresponding to the first character string, in the case that the target word is included in the first text , the target word and the corresponding relationship between the target word and the target character string are stored in the target lexicon, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that when the device for inputting text displays the first text, the device for inputting text can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target thesaurus.
  • the device for inputting text can directly output the target word when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device through this intelligent learning method.
  • the time and steps for selecting the final word after the user enters the character string corresponding to the target word is saved, and the efficiency of the user using the electronic device is improved.
  • the above-mentioned apparatus 600 further includes an extraction module 603; the above-mentioned extraction module 603 is configured to perform word segmentation processing on the above-mentioned first text, and extract N words in the above-mentioned first text; wherein, the above-mentioned The target words are: words that are not stored in the target thesaurus among the above M words.
  • the above-mentioned apparatus 600 further includes: a first receiving module 604, a screen-up module 605, and a processing module 606; the above-mentioned first receiving module 604 is configured to receive the first text sent by the user. an input; the above-mentioned screen-up module 605 is used to display the above-mentioned first text in response to the above-mentioned first input received by the above-mentioned first receiving module 604; the above-mentioned processing module 606 is used for the above-mentioned screen-up module 605 after the screen is displayed The above-mentioned first text is subjected to word segmentation processing.
  • the above-mentioned apparatus 600 further includes: a second receiving module 607 and a first determining module 608; the above-mentioned second receiving module 607 is configured to receive the user's deletion of the target characters in the above-mentioned first text Input; The first determining module 608 is configured to integrate the characters before and after the target character, and determine the integrated word as the target word if the word obtained after integration satisfies the condition.
  • the above-mentioned apparatus 600 further includes a second determination module 609; the above-mentioned second determination module 609 is configured to, when there is a deletion input to the target character in the first text, The first substring before the target position where the target character is located is detected, and when the above-mentioned first substring satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word; the above-mentioned The second determination module 609 is further configured to detect the second substring after the target position where the target character is located in the case where there is an input to delete the target character in the first text, and perform the detection in the second substring after the target position of the target character. When the substring satisfies the predetermined word segmentation condition, the word matching the second substring is determined as the target word.
  • the device for inputting text in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for inputting text in this embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the apparatus for inputting text provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 2 , and in order to avoid repetition, details are not repeated here.
  • the modules that must be included in the text input device 600 are indicated by solid line boxes, such as the display module 601 ; the modules that may or may not be included in the text input device 600 are indicated by dotted line boxes , such as the extraction module 603 .
  • an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • an electronic device 700 including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • the program or instruction is executed by the processor 701
  • each process of the above-mentioned method for inputting text is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072
  • the display unit 106 includes a display panel 1061
  • the input unit 104 includes an image processor 1041 and a microphone 1042
  • the memory 109 can be used to store software programs (eg, an operating system). , applications required for at least one function) and various data.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the display unit 106 is configured to receive the first character string input by the user, and display the first text corresponding to the first character string; the memory 109 is configured to display the target word in the first text
  • the words, and the correspondence between the target words and the target character string are stored in the target thesaurus; wherein, the first character string includes the target character string, and the target word is a word with complete semantics.
  • the electronic device after receiving the first character string input by the user, the electronic device displays the first text corresponding to the first character string, and if the first text includes the target word, the target word is displayed in the electronic device.
  • the words and the corresponding relationship between the target word and the target character string are stored in the target thesaurus, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that after the electronic device displays the first text, the electronic device can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target vocabulary.
  • the device enables the user to directly output the target word for the user to use when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device in the future, saving user input.
  • the time and steps for selecting the final word after the character string corresponding to the target word improves the efficiency of the user using the electronic device.
  • the above-mentioned processor 110 is configured to perform word segmentation processing on the above-mentioned first text, and extract N words in the above-mentioned first text; wherein, the above-mentioned target words are: among the above-mentioned N words, the target thesaurus does not store words. .
  • the above-mentioned user input unit 107 is configured to receive the first input of the user sending the above-mentioned first text; the above-mentioned processor 110 is further configured to display the above-mentioned first text on the screen in response to the above-mentioned first input; the above-mentioned processor 110, which is specifically configured to perform word segmentation processing on the above-mentioned first text after the screen is displayed.
  • the above-mentioned user input unit 107 is also used to receive the deletion input of the target character in the above-mentioned first text by the user; the above-mentioned processor 110 is also used to integrate the characters before and after the above-mentioned target character, and the words obtained after the integration. When the conditions are met, the above-mentioned integrated words are determined as target words.
  • the above-mentioned processor 110 is specifically configured to detect the first substring before the target position where the above-mentioned target character is located in the presence of a deletion input to the target character in the first text, and in the In the case that the above-mentioned first substring satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word; the above-mentioned processor 110 is specifically configured to delete the target character in the first text when there is a In the case of input, the second substring after the target position where the target character is located is detected, and if the second substring satisfies the predetermined word segmentation condition, the second substring matching the second substring is selected. The word is determined as the target word.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned method for inputting text is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Onl Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above method embodiments for inputting text and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

The present application relates to the technical field of communications. Disclosed are a character input method and apparatus, and an electronic device. The method comprises: an electronic device receiving a first character string input by a user, and displaying first text corresponding to the first character string; and when the first text comprises a target word, the electronic device storing the target word and a correspondence between the target word and a target character string in a target word library, wherein the first character string comprises the target character string, and the target word is a word of which the semantics is complete.

Description

输入文字的方法、装置和电子设备Method, device and electronic device for inputting text
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年11月20日在中国提交的中国专利申请号202011306337.7的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011306337.7 filed in China on Nov. 20, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种输入文字的方法、装置和电子设备。The present application belongs to the field of communication technologies, and in particular relates to a method, an apparatus and an electronic device for inputting text.
背景技术Background technique
目前,用户在使用电子设备输入内容的过程中,若上述输入内容在电子设备第一词库中恰巧有对应的文字内容时,则可以直接在电子设备中显示出来供用户选择,若输入的内容在电子设备第一词库中没有对应的文字内容时,为了提高用户输入文字的效率,电子设备通常会记录用户输入该内容时最终的上屏词汇,在用户再次输入该输入内容时,则可以直接在电子设备中显示出来供用户选择。At present, when a user uses an electronic device to input content, if the above-mentioned input content happens to have corresponding text content in the first thesaurus of the electronic device, it can be directly displayed in the electronic device for the user to select. When there is no corresponding text content in the first lexicon of the electronic device, in order to improve the efficiency of the user inputting text, the electronic device usually records the final on-screen vocabulary when the user enters the content, and when the user enters the input content again, you can Displayed directly in the electronic device for user selection.
然而,由于电子设备记录的为所有的上屏字符,当用户输入该整句字符中的部分字符时,电子设备仍旧无法直接输出用户需要的字符。如此,电子设备所记录的词汇并不能满足用户的实际需求、符合用户的实际输入习惯,进而会使得用户需要使用电子设备重复输入文字,增加了输入文字的步骤,导致用户输入文字时效率较低。However, since the electronic device records all the characters on the screen, when the user inputs part of the characters in the whole sentence, the electronic device still cannot directly output the characters required by the user. In this way, the vocabulary recorded by the electronic device cannot meet the actual needs of the user and conform to the actual input habit of the user, which in turn makes the user need to use the electronic device to repeatedly input text, which increases the steps of text input, resulting in low efficiency when the user enters text. .
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种输入文字的方法、装置和电子设备,能够解决电子设备所记录的词汇并不能满足用户的实际需求、符合用户的实际输入习惯,进而会使得用户需要使用电子设备重复输入文字,增加了输入文字的步骤,导致用户输入文字时效率较低的问题。The purpose of the embodiments of the present application is to provide a method, device and electronic device for inputting text, which can solve the problem that the vocabulary recorded by the electronic device cannot meet the actual needs of the user and conform to the actual input habit of the user, thereby making the user need to use the electronic device. The device repeatedly enters text, adding steps to enter text, which leads to a problem of low efficiency when the user enters text.
第一方面,本申请实施例提供了一种输入文字的方法,该方法包括:电子设备接收用户输入的第一字符串,显示上述第一字符串对应的第一文本;电子设备在上述第一文本中包括目标词语的情况下,将上述目标词语,以及上述目标词语与目标字符串的对应关系存入目标词库中;其中,上述第一字符串包括上述目标字符串,上述目标词语为语义完整的词语。In a first aspect, an embodiment of the present application provides a method for inputting text. The method includes: an electronic device receives a first character string input by a user, and displays a first text corresponding to the first character string; In the case that the text includes the target word, the above target word and the corresponding relationship between the above target word and the target character string are stored in the target thesaurus; wherein, the above-mentioned first character string includes the above-mentioned target character string, and the above-mentioned target word is semantic complete words.
第二方面,本申请实施例提供了一种输入文字的装置,上述装置包括显示模块和存储模块;上述显示模块,用于接收用户输入的第一字符串,显示上述第一字符串对应的第一文本;上述存储模块,用于在上述显示模块显示的上述第一文本中包括目标词语的情况下,将上述目标词语,以及上述目标词语与目标字符串的对应关系存入目标词库;其中,上述第一字符串包括上述目标字符串,上述目标词语为上述语义完整的词语。In a second aspect, an embodiment of the present application provides a device for inputting text, the device includes a display module and a storage module; the display module is configured to receive a first character string input by a user, and display the first character string corresponding to the first character string. a text; the above-mentioned storage module is configured to store the above-mentioned target word and the corresponding relationship between the above-mentioned target word and the target character string in the target vocabulary when the above-mentioned first text displayed by the above-mentioned display module includes the target word; wherein , the first character string includes the target character string, and the target word is the semantically complete word.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,电子设备在接收到用户输入的第一字符串后,显示第一字符串对应的第一文本,在该第一文本中包括目标词语的情况下,将该目标词语,以及与目标词语与目标字符串的对应关系存入目标词库中,该第一字符串中包括目标字符串,该目标词语为语义完整的词语。由上述过程可知,当电子设备显示第一文本后,电子设备可以提取出第一文本中的目标词语,并将目标词语以及与目标词语对应的目标字符串存入目标词库中,如此,电子设备通过这种智能化的学习方式,使得用户在后续需要在电子设备上使用该目标词语时,可以在输入目标词语对应的目标字符串时即可以直接输出该目标词语供用户使用,节省用户输入目标词语对应的字符串后选择最终词语的时间和步骤,提高了用户使用电子设备的效率。In the embodiment of the present application, after receiving the first character string input by the user, the electronic device displays the first text corresponding to the first character string, and if the first text includes a target word, the target word, And the corresponding relationship between the target word and the target character string is stored in the target lexicon, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that after the electronic device displays the first text, the electronic device can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target vocabulary. Through this intelligent learning method, the device enables the user to directly output the target word for the user to use when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device in the future, saving user input. The time and steps for selecting the final word after the character string corresponding to the target word improves the efficiency of the user using the electronic device.
附图说明Description of drawings
图1是本申请实施例提供的一种输入文字的方法的流程示意图;1 is a schematic flowchart of a method for inputting text provided by an embodiment of the present application;
图2为本申请实施例提供的一种输入文字的方法所应用的界面的示意图之一;2 is one of the schematic diagrams of an interface to which a method for inputting text provided by an embodiment of the present application is applied;
图3为本申请实施例提供的一种输入文字的方法所应用的界面的示意图之二;3 is a second schematic diagram of an interface to which a method for inputting text provided by an embodiment of the present application is applied;
图4为本申请实施例提供的一种输入文字的装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for inputting text according to an embodiment of the present application;
图5为本发明实施例提供的一种电子设备的结构示意图之一;FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention;
图6为本发明实施例提供的一种电子设备的结构示意图之二。FIG. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的输入文字的方法进行详细地说明。The text input method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
本申请实施例提供的输入文字的方法可以应用于用户输入上屏文字的场景。The method for inputting text provided by the embodiments of the present application can be applied to a scenario where a user inputs text on the upper screen.
针对用户输入上屏文字的场景,用户可能存在以下两种输入情况:For the scenario where the user enters text on the screen, the user may have the following two input situations:
第一种输入情况:The first input case:
若用户需要使用电子设备输入“你喜欢小明吗”这句话,则用户输入拼音字符串“nixihuanxiaomingma”,然后,依次筛选“你喜欢”、“小”、“明”、“吗”,最后确认,实现该字符串对应的文字“你喜欢小明吗”上屏。此时,电子设备会记录“你喜欢小明吗”这句话在词库中。当用户需要使用电子设备“小明”时,由于电子设备记录的是“你喜欢小明吗”这句话,则需要用户在输入“xiaoming”后,再次依次筛选“小”和“明”上屏。If the user needs to use the electronic device to input the sentence "Do you like Xiaoming", the user will input the pinyin string "nixihuanxiaomingma", then filter "you like", "Xiao", "Ming", "Do" in turn, and finally confirm , and realize the text "Do you like Xiaoming" corresponding to the string on the screen. At this time, the electronic device will record the sentence "Do you like Xiao Ming" in the thesaurus. When the user needs to use the electronic device "Xiao Ming", since the electronic device records the sentence "Do you like Xiao Ming", the user needs to filter "Xiao" and "Ming" in turn after entering "xiaoming" on the screen.
如此,由于电子设备学习词汇的局限性,电子设备仅能够记录一次性上屏的完整句子,而无法记录该句子中的电子设备词库中所没有的其他词汇,当用户需要该句子中的其他词 汇上屏时,实际会导致用户重复输入已经输入过并上屏的词语,增加用户输入字符的步骤,降低用户使用电子设备的效率。In this way, due to the limitation of vocabulary learning by electronic equipment, the electronic equipment can only record a complete sentence that is displayed on the screen at one time, but cannot record other words in the sentence that are not in the electronic equipment thesaurus. When the user needs other words in the sentence When the vocabulary is displayed on the screen, the user will actually be caused to repeatedly input the words that have been entered and displayed on the screen, which increases the steps for the user to input characters, and reduces the efficiency of the user in using the electronic device.
第二种输入情况:The second input case:
若用户需要使用电子设备输入“亲水湾花园”这个词,则用户输入拼音字符串“qin”筛选“亲”,上屏;然后输入拼音字符串“shui”筛选“水”,上屏;由于“湾”字在候选词显示区域中较为靠后,因此,用户可以输入“wanliu”筛选“湾流”,上屏,删去“流”字;最后,输入拼音字符串“huayuan”筛选“花园”上屏。用户完成上述输入过程后,基于电子设备当前的学习方式,其无法记录“亲水湾花园”至词库中,当用户再次需要输入“亲水湾花园”时,依旧需要按照上述筛选及上屏方式输入该词语。If the user needs to use the electronic device to input the word "hydrophilic bay garden", the user will input the pinyin string "qin" to filter "parent" and go to the screen; then input the pinyin string "shui" to filter "water", and the screen will be displayed; The word "Wan" is relatively low in the candidate word display area. Therefore, the user can input "wanliu" to filter "Wanliu", go to the screen and delete the word "Flow"; finally, input the pinyin string "huayuan" to filter "Garden" screen. After the user completes the above input process, based on the current learning method of the electronic device, it cannot record "Hyridic Bay Garden" into the vocabulary. to enter the word.
如此,由于电子设备学习词汇的局限性,电子设备仅能够记录一次性上屏的完整词语,而这种记录方式显然并不符合用户实际使用的输入习惯,当用户再次需要已经输入过的词语再次上屏时,则需要用户按照之前输入上屏的方式再次重新输入,由此,会增加用户输入字符的时间和步骤,降低用户使用电子设备的效率。In this way, due to the limitation of vocabulary learning by electronic devices, electronic devices can only record complete words that are displayed on the screen at one time, and this recording method obviously does not conform to the actual input habits of users. When the screen is displayed, the user needs to re-enter the screen again according to the previous input method, which increases the time and steps for the user to input characters and reduces the efficiency of the user in using the electronic device.
本实施例提供一种输入文字的方法,如图1所示,本实施例应用于第一电子设备,该电子设备定位方法包括以下步骤201和步骤202This embodiment provides a method for inputting text. As shown in FIG. 1 , this embodiment is applied to a first electronic device, and the electronic device positioning method includes the following steps 201 and 202
步骤201:输入文字的装置接收用户输入的第一字符串,显示上述第一字符串对应的第一文本。Step 201: The device for inputting text receives a first character string input by a user, and displays a first text corresponding to the first character string.
在本申请实施例中,上述第一文本可以为用户选择好的,显示在候选词显示区域的待上屏候选词。In this embodiment of the present application, the above-mentioned first text may be a candidate word selected by the user and displayed in the candidate word display area to be displayed on the screen.
示例性的,上述第一文本可以为由X个词语组成的第一文本,也可以为由X个字对应一个词语组成的第一文本。Exemplarily, the above-mentioned first text may be the first text consisting of X words, or may be the first text consisting of X words corresponding to one word.
在本申请实施例中,上述显示第一文本的过程可以为:将待上屏候选词显示在界面中除了候选词显示区域以外的其他区域。例如,当前的显示界面为聊天应用的对话窗口界面,则用户可以通过第一输入,将显示在候选词显示区域的第一文本,显示在对话窗口界面中,如图2所示,除了上述虚线框11所在区域以外的区域,其余区域为上屏后的显示区域。In the embodiment of the present application, the above process of displaying the first text may be: displaying the candidate words to be displayed on the screen in other areas of the interface except the candidate word display area. For example, if the current display interface is a dialog window interface of a chat application, the user can display the first text displayed in the candidate word display area in the dialog window interface through the first input, as shown in FIG. 2 , except for the above-mentioned dotted line The area other than the area where the frame 11 is located, and the remaining areas are the display areas after the screen is displayed.
示例性的,当上述第一文本为由X个词语组成的第一文本时,上述显示第一文本的过程可以为:上述X个词语在候选词显示区域显示后,在电子设备接收上屏输入后一并上屏。Exemplarily, when the above-mentioned first text is the first text composed of X words, the above-mentioned process of displaying the first text may be: after the above-mentioned X words are displayed in the candidate word display area, the electronic device receives the input on the upper screen. On the screen together.
示例性的,当上述第一文本为由X个字对应一个词语组成的第一文本时,上述显示第一文本的过程可以为:上述X个字中的第Y个字在候选词显示区域显示后,在电子设备接收上屏输入后上屏。具体的,显示第一文本的过程可以为:上述X个字中的第一个字在候选词显示区域显示后,在电子设备接收上屏输入后上屏;然后,上述X个字中的第二个字在候选词显示区域显示后,在电子设备接收上屏输入后上屏;直至,上述X个字中的第X个字在候选词显示区域显示后,在电子设备接收上屏输入后上屏。需要说明的是,上述X个字中的第Y个字可以为X个字中的一个字,也可以为多个字,但不会是X个字中的全部文字。Exemplarily, when the above-mentioned first text is the first text composed of X words corresponding to one word, the above-mentioned process of displaying the first text may be: the Y-th word in the above-mentioned X words is displayed in the candidate word display area. After the electronic device receives the input from the screen, the screen is displayed. Specifically, the process of displaying the first text may be: after the first character in the above-mentioned X characters is displayed in the candidate word display area, the electronic device receives the input from the screen; then, the first character in the above-mentioned X characters is displayed on the screen; After the two characters are displayed in the candidate word display area, they are displayed on the screen after the electronic device receives the input on the upper screen; until the Xth character in the above X characters is displayed in the candidate word display area, after the electronic device receives the input on the upper screen screen. It should be noted that the Y-th word in the above-mentioned X words may be one word in the X words, or may be a plurality of words, but not all the words in the X words.
例1:当用户需要电子设备显示的第一文本为“福鼎小区”时,用户可以先输入“祝福”,上屏,删去“祝”,然后输入“鼎”,上屏,最后输入“小区”上屏,则最终的上屏第一文本为“福鼎小区”。Example 1: When the user needs the first text displayed on the electronic device to be "Fuding Community", the user can first enter "Blessing", go to the screen, delete "Wish", then enter "Ding", go to the screen, and finally enter " Community" on the screen, then the final first text on the screen is "Fuding Community".
步骤202:输入文字的装置在上述第一文本中包括目标词语的情况下,将上述目标词语,以及上述目标词语与目标字符串的对应关系存入目标词库中。Step 202: In the case where the first text includes the target word, the device for inputting the text stores the target word and the corresponding relationship between the target word and the target character string in the target vocabulary.
在本申请实施例中,上述第一字符串包括上述目标字符串,上述目标词语为语义完整的词语。In this embodiment of the present application, the first character string includes the target character string, and the target word is a word with complete semantics.
在本申请实施例中,上述语义完整的词语为能够表达完整、独立含义的词语In the embodiments of the present application, the above-mentioned words with complete semantics are words that can express complete and independent meanings
在本申请实施例中,上述目标词库可以为电子设备中预存的整体词库,即包含电子设备中所有词语的词库;还可以为用户自定义的词库;也可以为电子设备中预存子词库,该子词库可以为一个或若干个应用对应的词库。In this embodiment of the present application, the above-mentioned target thesaurus may be an overall thesaurus pre-stored in the electronic device, that is, a thesaurus containing all words in the electronic device; it may also be a user-defined thesaurus; it may also be a pre-stored thesaurus in the electronic device A sub-thesaurus, the sub-thesaurus can be a thesaurus corresponding to one or several applications.
在本申请实施例提供的输入文字的方法中,输入文字的装置在接收到用户输入的第一字符串后,显示第一字符串对应的第一文本,在该第一文本中包括目标词语的情况下,将该目标词语,以及与目标词语与目标字符串的对应关系存入目标词库中,该第一字符串中包括目标字符串,该目标词语为语义完整的词语。由上述过程可知,当输入文字的装置显示第一文本后,输入文字的装置可以提取出第一文本中的目标词语,并将目标词语以及与目标词语对应的目标字符串存入目标词库中,如此,输入文字的装置通过这种智能化的学习方式,使得用户在后续需要在电子设备上使用该目标词语时,可以在输入目标词语对应的目标字符串时即可以直接输出该目标词语供用户使用,节省用户输入目标词语对应的字 符串后选择最终词语的时间和步骤,提高了用户使用电子设备的效率。In the method for inputting text provided by the embodiment of the present application, after receiving the first character string input by the user, the device for inputting text displays the first text corresponding to the first character string, and the first text includes the text of the target word. In this case, the target word and the corresponding relationship between the target word and the target character string are stored in the target lexicon, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that when the device for inputting text displays the first text, the device for inputting text can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target thesaurus. , in this way, the device for inputting text can directly output the target word when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device through this intelligent learning method. When used by the user, the time and steps for selecting the final word after the user enters the character string corresponding to the target word is saved, and the efficiency of the user using the electronic device is improved.
可选的,在本申请实施例中,在上述步骤202之前,本申请实施例中的输入文字的方法可以包括如下步骤A:Optionally, in this embodiment of the present application, before step 202 above, the method for inputting text in this embodiment of the present application may include the following step A:
步骤A:输入文字的装置对上述第一文本进行分词处理,提取上述第一文本中的N个词语。Step A: The device for inputting text performs word segmentation processing on the first text, and extracts N words in the first text.
示例性的,上述目标词语为:上述N个词语中,目标词库中未存储的词语。Exemplarily, the above target words are: words that are not stored in the target word database among the above N words.
在本申请实施例中,上述分词处理可以为对第一文本进行词语识别的处理过程。一般的,电子设备可以采用包含自然语言处理(Natural Language Processing、NLP)功能的应用工具或者插件对上述第一文本进行分词处理。In this embodiment of the present application, the above word segmentation process may be a process of performing word recognition on the first text. Generally, the electronic device may use an application tool or a plug-in including a natural language processing (Natural Language Processing, NLP) function to perform word segmentation processing on the above-mentioned first text.
在一种示例中,若上述第一文本为由X个词语组成的第一文本,则上述分词处理为:从该第一文本中识别、提取出N个词语的过程。例如,当上述第一文本为“你喜欢小明”时,该分词处理为从第一文本“你喜欢小明”中识别出“你”“喜欢”“小明”这三个词语的过程。In an example, if the above-mentioned first text is a first text composed of X words, the above-mentioned word segmentation processing is a process of identifying and extracting N words from the first text. For example, when the above-mentioned first text is "you like Xiaoming", the word segmentation process is a process of identifying the three words "you", "like" and "Xiaoming" from the first text "you like Xiaoming".
在本申请实施例中,电子设备经过上述分词处理的识别过程,可以识别出第一文本中的N个分词,即N个词语。In the embodiment of the present application, the electronic device can recognize N word segments, that is, N words, in the first text through the recognition process of the word segmentation process.
在本申请实施例中,电子设备可以将上述N个词语与目标词库中存储的所有词语相进行比对,当上述N个词语中出现与目标词库中相同的重复词语时,可以不存储该重复词语,仅存储目标词库中未存储的词语。In this embodiment of the present application, the electronic device may compare the above N words with all the words stored in the target thesaurus. For the repeated words, only words that are not stored in the target thesaurus are stored.
示例1:假设用户在使用聊天应用的过程中,使用拼音输入法在聊天界面中输入“nixihuanxiaoming”(即上述第一字符串),并选定对应的中文“你喜欢小明”后,如图3中的(a)所示,用户对“发送”控件21进行点击输入,电子设备接收该输入后,如图3中的(b)所示,将与“nixihuanxiaoming”对应的“你喜欢小明”(即上述第一文本)显示在对话框界面22中。此时,电子设备对“你喜欢小明”进行分词处理,提取出3个分词(即上述N个词语),分别为“你”、“喜欢”和“小明”。然后,电子设备将上述3个分词与电子设备中的词库(即上述目标词库)进行比对,经过比对,查询到电子设备中的词库中存储有“你”和“喜欢”这两个词,词库中未包含“小明”,则电子设备将“小明”(即上述目标词语)存储至词库中。Example 1: Suppose the user uses the Pinyin input method to input "nixihuanxiaoming" (ie the first string above) in the chat interface while using the chat application, and selects the corresponding Chinese "You like Xiaoming", as shown in Figure 3 As shown in (a) of the above, the user clicks the “send” control 21 to input the input, and after the electronic device receives the input, as shown in (b) of FIG. That is, the above-mentioned first text) is displayed in the dialog interface 22 . At this time, the electronic device performs word segmentation processing on "you like Xiaoming", and extracts 3 word segmentations (that is, the above N words), which are "you", "like" and "Xiaoming". Then, the electronic device compares the above three segmented words with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus). If the word database does not contain "Xiao Ming", the electronic device stores "Xiao Ming" (that is, the above target word) in the word database.
可选的,在本申请实施例中,在上述步骤201中的显示上述第一字符串对应的第一文本之前,本申请实施例提供的输入文字的方法还可以包括如下步骤B1和步骤B2:Optionally, in the embodiment of the present application, before displaying the first text corresponding to the first character string in the above step 201, the method for inputting text provided by the embodiment of the present application may further include the following steps B1 and B2:
步骤B1:输入文字的装置接收用户发送上述第一文本的第一输入。Step B1: The apparatus for inputting text receives the first input of the above-mentioned first text sent by the user.
步骤B2:响应于上述第一输入,输入文字的装置将上述第一文本上屏。Step B2: In response to the above-mentioned first input, the apparatus for inputting text displays the above-mentioned first text on the screen.
在上述步骤B1和步骤B2的基础上,在上述步骤A中的对上述第一文本进行分词处理中,本申请实施例提供的输入文字的方法可以包括如下步骤B3:On the basis of the above steps B1 and B2, in the word segmentation process for the above-mentioned first text in the above step A, the method for inputting text provided by this embodiment of the present application may include the following step B3:
步骤B3:输入文字的装置对上屏后的上述第一文本进行分词处理。Step B3: The device for inputting text performs word segmentation processing on the above-mentioned first text after being displayed on the screen.
可以理解的,上述第一输入可以用于触发待上屏候选词,即第一文本上屏。输入文字的装置在第一文本上屏后,启动分词处理的相关操作。其中,上述分词处理的描述可以参照前述内容,此处不再赘述。It can be understood that the above-mentioned first input can be used to trigger the candidate word to be displayed on the screen, that is, the first text to be displayed on the screen. After the device for inputting text displays the first text on the screen, relevant operations of word segmentation processing are started. For the description of the above word segmentation processing, reference may be made to the foregoing content, which will not be repeated here.
示例性的,上述第一输入可以为触控输入,例如,点击输入,也可以为语音输入,还可以为特殊手势的输入,本申请实施例对此不作限定。Exemplarily, the above-mentioned first input may be a touch input, for example, a click input, a voice input, or an input of a special gesture, which is not limited in this embodiment of the present application.
可选的,在本申请实施例中,在上述步骤201中的显示上述第一字符串对应的第一文本之后,本申请实施例提供的输入文字的方法还可以包括如下步骤C1和步骤C2:Optionally, in the embodiment of the present application, after displaying the first text corresponding to the first character string in the above step 201, the method for inputting text provided by the embodiment of the present application may further include the following steps C1 and C2:
步骤C1:输入文字的装置接收用户对上述第一文本中目标字符的删除输入。Step C1: The device for inputting text receives the user's input for deleting the target character in the first text.
步骤C2:输入文字的装置将上述目标字符前后的字符整合,在整合后得到的词语满足条件的情况下,将上述整合后的词语确定为目标词语。Step C2: The device for inputting characters integrates the characters before and after the target character, and determines the integrated word as the target word if the word obtained after integration satisfies the condition.
需要理解的是,上述目标字符为第一文本中的部分字符。其中,上述目标字符可以位于第一文本的中间位置,也即,该目标字符的前后均有字符;上述目标字符可以位于第一文本的前方位置,也即,该目标字符的前方没有字符;上述目标字符可以位于第一文本的后方位置,也即,该目标字符的后方没有字符。It should be understood that the above target characters are part of the characters in the first text. Wherein, the above-mentioned target character can be located in the middle position of the first text, that is, there are characters before and after the target character; the above-mentioned target character can be located in the front position of the first text, that is, there is no character in front of the target character; The target character may be located behind the first text, that is, there are no characters behind the target character.
可以理解的,输入设备对接收过删除输入后的剩余字符进行自动组合,并对应生成词语。上述条件为:上述生成词语为目标词库中未包含的词语,即,在整合后得到的词语未在目标词库中,则将整合后的词语确定为目标词语并进行保存。It can be understood that the input device automatically combines the remaining characters after receiving the deleted input, and generates words correspondingly. The above conditions are: the generated words are words not included in the target vocabulary, that is, if the words obtained after integration are not in the target vocabulary, the integrated words are determined as target words and stored.
示例2:结合上述示例1,假设用户使用拼音输入法在输入框中先后输入“qinshui”“wanliu”“huayuan”,并选定对应的中文“亲水”“湾流”“花园”,显示在输入框中后,对该字符串中的中间字符“流”进行删除输入,则剩余“亲水湾花园”,输入设备将 “亲水湾花园”与电子设备中的词库(即上述目标词库)中的词语进行对比,在电子设备中的词库中的不包含该词的情况下(即上述满足条件的情况下),将“亲水湾花园”确定为目标词语,存入词库。Example 2: Combined with the above example 1, suppose the user uses the Pinyin input method to input "qinshui", "wanliu" and "huayuan" in the input box successively, and selects the corresponding Chinese "hydrophilic", "Gulf stream" and "garden". After entering the box, delete and input the middle character "flow" in the string, then the remaining "hydrophilic bay garden", the input device will compare "hydrophilic bay garden" with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus ) to compare the words in the thesaurus in the electronic device, if the word is not included in the thesaurus in the electronic device (that is, if the above conditions are met), determine "Hyridic Bay Garden" as the target word and store it in the thesaurus.
如此,在目标词库不包含有用户需要的词语的情况下,用户可以通过拼写常用词汇的拼写方式使包含用户需要词语的字符其显示在输入框中,当用户删去其中多余的字符时,电子设备可以自动整合剩余字符,并在目标词库中不包含该词的情况下,存入词库,以便于用于下一次使用,提高用户的使用电子设备输入文字的效率。In this way, in the case that the target vocabulary does not contain the words required by the user, the user can display the characters containing the words required by the user in the input box by spelling the commonly used vocabulary, and when the user deletes the redundant characters, The electronic device can automatically integrate the remaining characters, and store the word in the thesaurus if the target vocabulary does not contain the word, so as to be used for the next use, and improve the efficiency of the user's use of the electronic device to input characters.
可选的,在本申请实施例中,上述步骤A中的对上述第一文本进行分词处理,提取上述第一文本中的N个词语,可以包括如下步骤D1和步骤D2:Optionally, in the embodiment of the present application, performing word segmentation processing on the first text in the above step A, and extracting N words in the first text, may include the following steps D1 and D2:
步骤D1:在存在对第一文本中的目标字符的删除输入的情况下,输入文字的装置对上述目标字符所处的目标位置之前的第一子字符串进行检测,并在上述第一子字符串满足预定分词条件的情况下,将与上述第一子字符串匹配的词语确定为目标词语。Step D1: In the case where there is a deletion input of the target character in the first text, the device for inputting text detects the first substring before the target position where the target character is located, and detects the first substring in the first subcharacter. When the string satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word.
步骤D2:在存在对第一文本中的目标字符的删除输入的情况下,输入文字的装置对上述目标字符所处的目标位置之后的第二子字符串进行检测,并在上述第二子字符串满足预定分词条件的情况下,将与上述第二子字符串匹配的词语确定为目标词语。Step D2: In the presence of deletion input of the target character in the first text, the device for inputting text detects the second substring after the target position where the target character is located, and performs When the string satisfies the predetermined word segmentation condition, the word matching the above-mentioned second substring is determined as the target word.
可以理解的,上述目标字符可以参照前述步骤C1和步骤C2中的描述,此处不再赘述。It can be understood that, for the above-mentioned target characters, reference may be made to the descriptions in the foregoing steps C1 and C2, and details are not repeated here.
示例性的,上述预定分词条件为:与上述第一子字符串匹配的词语以及与第二子字符串匹配的词语为目标词库中未包含的词语。Exemplarily, the predetermined word segmentation condition is: words matching the first substring and words matching the second substring are words not included in the target vocabulary.
示例性的,上述第一子字符串可以包含多个字符,相类似的,上述第二子字符串也可以包含多个字符。Exemplarily, the above-mentioned first substring may contain multiple characters, and similarly, the above-mentioned second substring may also contain multiple characters.
示例性的,在接收用户的删除输入后,输入文字的装置可以自动在电子设备的目标词库中遍历,查询是否包含与上述第一子字符串匹配的词语和与第二子字符串匹配的词语,在不包含与上述第一子字符串匹配的词语和与第二子字符串匹配的词语的情况下,可以自动将与第一子字符串匹配的词语和与第二子字符串匹配的词语存入目标词库。Exemplarily, after receiving the user's deletion input, the device for inputting text can automatically traverse the target lexicon of the electronic device to inquire whether it contains words that match the first substring and words that match the second substring. Words, in the case that the words matching the first substring and the words matching the second substring are not included, the words matching the first substring and the words matching the second substring can be automatically combined. The words are stored in the target thesaurus.
如此,在用户误输入多余字符的情况下,在进行删除输入后,电子设备可以自动对该多余字符前后的字符串组成的词语进行检测,并与自身目标词库进行比对,在目标词库不包含上述字符串组成词语的情况下,将上述多余字符前后的字符串组成的词语存入词库进 行记忆,以便于用户后期使用,同时在第一文本较长的情况下,一定程度上缩短检测的时间,提高用户使用电子设备输入文字的效率。In this way, in the case where the user mistakenly inputs redundant characters, after deleting the input, the electronic device can automatically detect the words formed by the strings before and after the redundant characters, and compare it with its own target thesaurus. In the case that the words formed by the above strings are not included, the words formed by the strings before and after the above redundant characters are stored in the thesaurus for memory, which is convenient for users to use later. The detection time improves the efficiency of the user inputting text using the electronic device.
可选地,在本申请实施例中,上述第一字符串包括M个子字符串。在此基础上,在上述步骤201中,本申请实施例中的输入文字的方法可以包括如下步骤E:Optionally, in this embodiment of the present application, the above-mentioned first character string includes M substrings. On this basis, in the above step 201, the method for inputting text in this embodiment of the present application may include the following step E:
步骤E:输入文字的装置确定每个子字符串对应的目标候选词,并将M个目标候选词上屏,M为正整数。Step E: The device for inputting text determines the target candidate words corresponding to each substring, and displays the M target candidate words on the screen, where M is a positive integer.
可以理解的,上述第一字符串为用户所需要上屏的文字或者词语所对应的字符串。上述第一字符串中的字符可以对应不同的字符类型。例如,拼音字符、或者五笔字符。上述M个子字符串可以对应单个文字、或者词语、或者短语、或者整句。其中,每个子字符串对应一种字符类型。It can be understood that the above-mentioned first character string is a character string corresponding to the characters or words that the user needs to display on the screen. The characters in the above-mentioned first character string may correspond to different character types. For example, Pinyin characters, or Wubi characters. The above-mentioned M substrings may correspond to a single character, or a word, or a phrase, or an entire sentence. where each substring corresponds to a character type.
在一种示例中,当上述M为1时,上述M个子字符串可以对应单个文字,或者包含单个文字的词语,即上述1个子字符串为1个单个文字或者包含1个单个文字的词语对应字符串。其中,上述X个单个文字如前述内容所述,可以组成一个词语,该词语对应第一文本。例如,上述例1中的“福”字对应的子字符串可以为“fu”,也可以为包含“福”字的词语“祝福”对应的字符串“zhufu”。In an example, when the above-mentioned M is 1, the above-mentioned M substrings may correspond to a single character or a word containing a single character, that is, the above-mentioned 1 substring corresponds to a single character or a word that includes a single character string. Wherein, the above-mentioned X single characters, as described in the foregoing content, may form a word, and the word corresponds to the first text. For example, the substring corresponding to the character "Fu" in the above example 1 may be "fu", or the character string "zhufu" corresponding to the word "blessing" containing the character "Fu".
在另一种示例中,当上述M大于1时,上述M个子字符串可以对应短语或者整句话,也即上述M个子字符串为N个词语组成的短语或者N个词语组成的整句对应的字符串。其中,一个子字符串对应一个词语,上述N个词语如前述内容所述,可以组成第一文本。In another example, when the above-mentioned M is greater than 1, the above-mentioned M sub-strings may correspond to phrases or whole sentences, that is, the above-mentioned M sub-strings correspond to a phrase composed of N words or a whole sentence composed of N words. String. One substring corresponds to one word, and the above-mentioned N words can form the first text as described in the foregoing content.
示例性的,上述目标候选词为电子设备识别子字符串后,会在显示该子字符串的界面显示与该子字符串对应的候选词供用户选择,用户选定子字符串对应的目标候选词后,可以对电子设备执行上屏输入,将M个目标候选词上屏。Exemplarily, after the above-mentioned target candidate word is a substring recognized by the electronic device, a candidate word corresponding to the substring will be displayed on the interface displaying the substring for the user to select, and the user selects the target candidate corresponding to the substring. After the word is selected, the screen input can be performed on the electronic device, and the M target candidate words can be displayed on the screen.
示例3:假设用户在使用聊天应用的过程中,欲使用拼音输入发在聊天界面的对话框中输出“亲水湾花园”,则用户先使用拼音输入法在聊天界面中输入“qin”,在候选词中选择“亲”(即上述目标候选词)上屏;然后在聊天界面中输入“shui”,选择“水”(即上述目标候选词)上屏;然后在聊天界面中输入“wanliu”,选择“湾流”(即上述目标候选词)上屏,删去“湾流”中的“流”字;最后在聊天界面中输入“huayuan”,选择“花园”(即上述目标候选词)上屏,最终在聊天界面的对话框22中输出“亲水湾花园”。Example 3: Suppose the user wants to use the pinyin input method to output "hydrophilic bay garden" in the dialog box of the chat interface during the process of using the chat application, then the user first uses the pinyin input method to input "qin" in the chat interface, and then In the candidate words, select "pro" (that is, the above-mentioned target candidate word) on the screen; then enter "shui" in the chat interface, select "water" (that is, the above-mentioned target candidate word) on the screen; then enter "wanliu" in the chat interface , select "Gulfstream" (that is, the target candidate word above) on the screen, delete the word "Flow" in "Gulfstream"; finally, enter "huayuan" in the chat interface, select "Garden" (that is, the target candidate word above) on the screen , and finally output "Hybrid Bay Garden" in the dialog 22 of the chat interface.
可选地,在本申请实施例中,在上述步骤A中的对上述第一文本进行分词处理,提取上述第一文本中的N个词语中,本申请实施例中的输入文字的方法可以包括如下步骤F:Optionally, in the embodiment of the present application, in the above step A, the word segmentation process is performed on the first text to extract the N words in the first text, the method for inputting text in the embodiment of the present application may include: Step F as follows:
步骤F:当上述第一文本的上屏时长达到预定时长时,输入文字的装置对上述第一文本进行分词处理,得到N个词语。Step F: When the duration of the above-mentioned first text on the screen reaches a predetermined duration, the device for inputting text performs word segmentation processing on the above-mentioned first text to obtain N words.
示例性的,上述预定时长可以为电子设备预设的,也可以为用户自定义设置的,本申请实施例对此不作限定。Exemplarily, the above-mentioned predetermined duration may be preset by the electronic device, or may be user-defined and set, which is not limited in this embodiment of the present application.
示例性的,上述分词处理可以参照前述描述,此处不再赘述。Exemplarily, for the above word segmentation processing, reference may be made to the foregoing description, which will not be repeated here.
示例4:结合上述示例1,当电子设备将“你喜欢小明”(即上述第一文本)显示在对话框界面中(即上述上屏)时,在预定时长到达后,电子设备对“你喜欢小明”(即上述第一文本)进行分词处理,得到3个分词(即上述N个词语),具体的分词处理可以参照示例1。Example 4: Combined with the above example 1, when the electronic device displays "You like Xiaoming" (that is, the first text above) in the dialog interface (that is, the above-mentioned upper screen), after the predetermined time period arrives, the electronic device displays "Do you like Xiaoming" "Xiao Ming" (that is, the first text above) is subjected to word segmentation processing to obtain 3 word segmentations (that is, the above N words). For specific word segmentation processing, please refer to Example 1.
示例5:结合上述示例3,当在聊天界面的对话框31中中输出“亲水湾花园”时,在预定时长到达后,电子设备对“亲水湾花园”(即上述第一文本)进行分词处理,得到1个分词(即上述N个词语),电子设备将上述1个分词与电子设备中的词库(即上述目标词库)进行比对,经过比对,查询到电子设备中的词库中未存储该“亲水湾花园”,则电子设备将“亲水湾花园”(即上述目标词语)存储至词库中。Example 5: Combined with the above example 3, when "Hydromic Bay Garden" is output in the dialog box 31 of the chat interface, after the predetermined time period arrives, the electronic device will perform an operation on the "Hyridic Bay Garden" (that is, the above-mentioned first text). After word segmentation processing, 1 word segmentation (that is, the above-mentioned N words) is obtained, and the electronic device compares the above-mentioned 1 word segmentation with the thesaurus in the electronic device (that is, the above-mentioned target thesaurus). If the "hydrophilic bay garden" is not stored in the thesaurus, the electronic device stores the "hydrophilic bay garden" (ie, the above target word) in the thesaurus.
如此,电子设备能够将用户花费一段时间内输入的内容组合后,进行分词处理,即使是用户通过多次上屏过程输出的词语,也能够学习并存储至目标词库中,也即,其既可以对长句或者短语进行分段式记忆、存储,也可以对单个文字组成的词语进行自行组合式记忆、存储。从而方便用户再次使用该词语后直接出词,使得电子设备学习存储用户输入过的文字的方式更加符合用户的实际输入习惯,增强电子设备学习存储词语的能力,提高用户使用电子设备的效率。In this way, the electronic device can perform word segmentation processing after combining the content input by the user for a period of time, and even the words output by the user through multiple screen display processes can also be learned and stored in the target vocabulary, that is, it is not only It can memorize and store long sentences or phrases in segments, and can also memorize and store words composed of single characters by themselves. Therefore, it is convenient for the user to use the word again and directly generate the word, so that the way that the electronic device learns and stores the text input by the user is more in line with the actual input habit of the user, enhances the ability of the electronic device to learn and store words, and improves the efficiency of the user using the electronic device.
可选地,在本申请实施例中,在上述步骤201中,本申请实施例中的输入文字的方法可以包括如下步骤G1:Optionally, in the embodiment of the present application, in the foregoing step 201, the method for inputting text in the embodiment of the present application may include the following step G1:
步骤G1:输入文字的装置在显示目标应用的目标界面的情况下,接收用户输入的第一字符串。Step G1: The device for inputting characters receives the first character string input by the user when the target interface of the target application is displayed.
基于上述步骤G1,在上述步骤202中的将上述目标词语,以及上述目标词语与目标字 符串的对应关系存入目标词库中,本申请实施例中的输入文字的方法可以包括如下步骤G2:Based on above-mentioned step G1, in above-mentioned step 202 with above-mentioned target word, and the correspondence relation of above-mentioned target word and target character string is stored in the target vocabulary, the method for inputting text in the embodiment of the present application can comprise following step G2:
步骤G2:输入文字的装置将上述N个目标词语,以及上述目标词语与目标字符串的对应关系存入上述目标应用对应的目标词库。Step G2: The device for inputting characters stores the N target words and the corresponding relationship between the target words and the target character string in the target vocabulary corresponding to the target application.
示例性的,上述目标应用可以为电子设备中的包含文字类交互功能的任一应用。例如:聊天应用、视频应用。Exemplarily, the above-mentioned target application may be any application in the electronic device that includes a text-based interaction function. For example: chat application, video application.
示例性的,上述目标界面可以为上述目标应用中可以用户输入文字的任一界面。例如:聊天应用中的聊天界面、视频应用中的视频搜索界面。Exemplarily, the above-mentioned target interface may be any interface in the above-mentioned target application in which the user can input text. For example: chat interface in chat application, video search interface in video application.
示例性的,上述第一输入可以参照前述描述,此处不再赘述。Exemplarily, for the above-mentioned first input, reference may be made to the foregoing description, which will not be repeated here.
示例性的,上述目标词库可以为:由与目标应用中的内容相关的词语组成的词库。Exemplarily, the above target thesaurus may be: a thesaurus composed of words related to the content in the target application.
示例性的,上述目标词库可以为目标应用自行携带的词库。其中,该目标词库可以为用户下载目标应用时,该目标应用的数据包中预存的词库数据包所对应的词库。Exemplarily, the above-mentioned target thesaurus may be a thesaurus carried by the target application. The target thesaurus may be the thesaurus corresponding to the thesaurus data package pre-stored in the data package of the target application when the user downloads the target application.
示例性的,上述目标应用与目标词库之间的关系可以为一一对应的关系,即一个目标应用对应一个目标词库;也可以为多个应用对应一个目标词库的对应关系。Exemplarily, the above-mentioned relationship between the target application and the target vocabulary may be a one-to-one correspondence, that is, one target application corresponds to one target vocabulary; it may also be a corresponding relationship in which multiple applications correspond to one target vocabulary.
在一种示例中,当上述目标应用与目标词库之间的关系为一一对应的关系时:电子设备可以根据应用的功能特性设定词库。例如:当目标应用为生活用品类购物应用时,该生活类购物应用的词库中包含的词语为生活用品类词语;当应用为食品类购物应用时,该食品类购物应用的词库中包含的词语为食品类词语。In an example, when the relationship between the target application and the target vocabulary is a one-to-one correspondence: the electronic device may set the vocabulary according to the functional characteristics of the application. For example: when the target application is a shopping application of daily necessities, the words contained in the thesaurus of the shopping application of life are words of daily necessities; when the application is a shopping application of food, the thesaurus of the shopping application of food contains words The words are food words.
在一种示例中,当上述目标应用与目标词库之间的关系为多个应用对应一个目标词库的对应关系时:电子设备可以根据应用的类型设定词库。例如,当生活类购物应用和食品类购物应用均为购物类应用时,上述生活类购物应用和食品类购物对应的同一个词库,该词库中包含的词语为购物类词语,即可以满足生活类购物应用的需求,也可以满足食品类购物应用的需求。In an example, when the relationship between the target application and the target thesaurus is a corresponding relationship between multiple applications corresponding to one target thesaurus: the electronic device may set the thesaurus according to the type of the application. For example, when both the lifestyle shopping application and the food shopping application are shopping applications, the above-mentioned life shopping application and food shopping correspond to the same thesaurus, and the words contained in the thesaurus are shopping words, which can satisfy the The needs of life shopping applications can also meet the needs of food shopping applications.
示例性的,电子设备在得到目标分词后,即可将该目标分词存入目标词库。Exemplarily, after obtaining the target word segment, the electronic device may store the target word segment in the target word database.
如此,电子设备可以在获取目标分词后,可以为目标分词按照分词类型分类,存入目标应用相对应的目标词库中,在用户后续使用目标应用,输入目标分词对应的字符串时,电子设备可以从目标应用对应的目标词库中准确调取符合应用场景的词语供用户筛选使 用。In this way, after acquiring the target word segmentation, the electronic device can classify the target word segmentation according to the word segmentation type, and store it in the target thesaurus corresponding to the target application. When the user subsequently uses the target application and inputs the character string corresponding to the target word segmentation, the electronic device Words that match the application scenario can be accurately retrieved from the target thesaurus corresponding to the target application for the user to filter and use.
可选的,在本申请实施例中,在上述步骤202之后,本申请实施例提供的输入文字的方法还包括如下步骤H1和步骤H2:Optionally, in the embodiment of the present application, after the above step 202, the method for inputting text provided by the embodiment of the present application further includes the following steps H1 and H2:
步骤H1:输入文字的装置接收对第二字符串的第二输入。Step H1: The device for inputting text receives the second input of the second character string.
示例性的,上述第二字符串包含上述目标分词对应的字符串的起始字符及上述起始字符之后的部分字符。例如:当目标分词为“qinshuiwanhuayuan”时,上述第二字符串可以为:“qinshuiw”。Exemplarily, the second character string includes a start character of the character string corresponding to the target word segment and some characters after the start character. For example: when the target participle is "qinshuiwanhuayuan", the above second string can be: "qinshuiw".
需要说明的是,上述第二字符串不包含上述目标分词对应的完整字符串。It should be noted that the above-mentioned second character string does not include the complete character string corresponding to the above-mentioned target word segmentation.
步骤H2:响应于上述第二输入,输入文字的装置显示上述第二字符串对应的候选词列表。Step H2: In response to the second input, the device for inputting text displays a list of candidate words corresponding to the second character string.
可以理解的,上述第二输入为用于输入第二字符串的输入,具体地,上述第二输入可以为触控输入,例如:点击输入,也可以为语音输入,还可以为特定手势的输入,本申请实施例对此不作限定。It can be understood that the above-mentioned second input is an input for inputting a second character string. Specifically, the above-mentioned second input may be a touch input, such as a click input, a voice input, or an input of a specific gesture. , which is not limited in the embodiments of the present application.
可以理解的,上述候选词列表可以包含符合上述第二字符串拼写规则的所有候选词,且上述候选词列表中包含上述目标词语。It can be understood that the above-mentioned candidate word list may include all candidate words that conform to the above-mentioned second character string spelling rule, and the above-mentioned candidate word list includes the above-mentioned target word.
在一种示例中,电子设备在存入上述目标词语后的预定时间内,电子设备可以调整上述目标词语的显示优先级顺序,在预定时间内,若用户输入第二字符串,则电子设备可以在候选词列表中,将目标词语的显示排序调整为首个显示。In an example, the electronic device may adjust the display priority order of the target word within a predetermined time after the electronic device stores the target word, and within the predetermined time, if the user inputs the second character string, the electronic device may In the candidate word list, adjust the display order of the target word to the first display.
示例6:在未存入“小明”之前,用户输入“小明”对应的部分字符串“xiao”时,候选词列表中候选词的显示顺序为“小花”,“小红”。结合上述示例1,当电子设备将“小明”(即上述目标词语)存储至词库中后,一周内(即上述预定时间内),用户再次输入“小明”对应的部分字符串“xiao”(即上述第二字符串)时,电子设备将在候选词列表的第一位显示“小明”,而将“小花”,“小红”显示在“小明”后面。Example 6: Before "Xiao Ming" is stored, when the user inputs the partial string "xiao" corresponding to "Xiao Ming", the display order of the candidate words in the candidate word list is "Xiaohua", "Xiaohong". Combining the above example 1, after the electronic device stores "Xiao Ming" (that is, the above target word) in the thesaurus, within one week (that is, the above predetermined time), the user enters the partial string "xiao" corresponding to "Xiao Ming" again ( That is, the above-mentioned second character string), the electronic device will display "Xiao Ming" in the first position of the candidate word list, and display "Xiao Hua" and "Xiao Hong" after "Xiao Ming".
如此,在电子设备的词库存储目标词语后,用户仅需要输入该目标词语对应的部分字符,即可在候选词列表中查找到该目标词语,并进行使用,提高用户使用电子设备输入文字的效率。In this way, after the target word is stored in the thesaurus of the electronic device, the user only needs to input some characters corresponding to the target word, and then the target word can be found in the candidate word list and used, which improves the user's ability to input text using the electronic device. efficiency.
需要说明的是,本申请实施例提供的输入文字的方法,执行主体可以为输入文字的装 置,或者该输入文字的装置中的用于执行输入文字的方法的控制模块。本申请实施例中以输入文字的装置执行输入文字的方法为例,说明本申请实施例提供的输入文字的装置。It should be noted that, in the method for inputting characters provided by the embodiments of the present application, the execution body may be a device for inputting characters, or a control module in the device for inputting characters for executing the method for inputting characters. In the embodiments of the present application, the device for inputting characters provided by the embodiments of the present application is described by taking the method for inputting characters performed by the device for inputting characters as an example.
图4为实现本申请实施例提供的输入文字的装置的可能的结构示意图。如图4所示,上述输入文字的装置600包括:显示模块601和存储模块602;上述显示模块601,用于接收用户输入的第一字符串,显示上述第一字符串对应的第一文本;上述存储模块602,用于在上述显示模块601显示的上述第一文本中包括目标词语的情况下,将上述目标词语,以及上述目标词语与目标字符串的对应关系存入目标词库;其中,上述第一字符串包括上述目标字符串,上述目标词语为上述语义完整的词语。FIG. 4 is a schematic structural diagram of a possible structure of the apparatus for implementing the text input provided by the embodiment of the present application. As shown in FIG. 4, the above-mentioned apparatus 600 for inputting text includes: a display module 601 and a storage module 602; the above-mentioned display module 601 is used for receiving a first character string input by a user, and displaying the first text corresponding to the above-mentioned first character string; The above-mentioned storage module 602 is configured to store the above-mentioned target word and the corresponding relationship between the above-mentioned target word and the target character string in the target vocabulary when the above-mentioned first text displayed by the above-mentioned display module 601 includes the target word; wherein, The above-mentioned first character string includes the above-mentioned target character string, and the above-mentioned target word is the above-mentioned semantically complete word.
本申请实施例提供的输入文字的装置,输入文字的装置在接收到用户输入的第一字符串后,显示第一字符串对应的第一文本,在该第一文本中包括目标词语的情况下,将该目标词语,以及与目标词语与目标字符串的对应关系存入目标词库中,该第一字符串中包括目标字符串,该目标词语为语义完整的词语。由上述过程可知,当输入文字的装置显示第一文本后,输入文字的装置可以提取出第一文本中的目标词语,并将目标词语以及与目标词语对应的目标字符串存入目标词库中,如此,输入文字的装置通过这种智能化的学习方式,使得用户在后续需要在电子设备上使用该目标词语时,可以在输入目标词语对应的目标字符串时即可以直接输出该目标词语供用户使用,节省用户输入目标词语对应的字符串后选择最终词语的时间和步骤,提高了用户使用电子设备的效率。The device for inputting text provided by the embodiment of the present application, after receiving the first character string input by the user, the device for inputting text displays the first text corresponding to the first character string, in the case that the target word is included in the first text , the target word and the corresponding relationship between the target word and the target character string are stored in the target lexicon, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that when the device for inputting text displays the first text, the device for inputting text can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target thesaurus. , in this way, the device for inputting text can directly output the target word when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device through this intelligent learning method. When used by the user, the time and steps for selecting the final word after the user enters the character string corresponding to the target word is saved, and the efficiency of the user using the electronic device is improved.
可选的,在本申请实施例中,上述装置600还包括提取模块603;上述提取模块603,用于对上述第一文本进行分词处理,提取上述第一文本中的N个词语;其中,上述目标词语为:上述M个词语中,目标词库中未存储的词语。Optionally, in this embodiment of the present application, the above-mentioned apparatus 600 further includes an extraction module 603; the above-mentioned extraction module 603 is configured to perform word segmentation processing on the above-mentioned first text, and extract N words in the above-mentioned first text; wherein, the above-mentioned The target words are: words that are not stored in the target thesaurus among the above M words.
可选的,在本申请实施例中,上述装置600还包括:第一接收模块604、上屏模块605和处理模块606;上述第一接收模块604,用于接收用户发送上述第一文本的第一输入;上述上屏模块605,用于响应于上述第一接收模块604接收的上述第一输入,将上述第一文本上屏;上述处理模块606,用于对上述上屏模块605上屏后的上述第一文本进行分词处理。Optionally, in the embodiment of the present application, the above-mentioned apparatus 600 further includes: a first receiving module 604, a screen-up module 605, and a processing module 606; the above-mentioned first receiving module 604 is configured to receive the first text sent by the user. an input; the above-mentioned screen-up module 605 is used to display the above-mentioned first text in response to the above-mentioned first input received by the above-mentioned first receiving module 604; the above-mentioned processing module 606 is used for the above-mentioned screen-up module 605 after the screen is displayed The above-mentioned first text is subjected to word segmentation processing.
可选的,在本申请实施例中,上述装置600还包括:第二接收模块607和第一确定模块608;上述第二接收模块607,用于接收用户对上述第一文本中目标字符的删除输入; 上述第一确定模块608,用于将上述目标字符前后的字符整合,在整合后得到的词语满足条件的情况下,将上述整合后的词语确定为目标词语。Optionally, in this embodiment of the present application, the above-mentioned apparatus 600 further includes: a second receiving module 607 and a first determining module 608; the above-mentioned second receiving module 607 is configured to receive the user's deletion of the target characters in the above-mentioned first text Input; The first determining module 608 is configured to integrate the characters before and after the target character, and determine the integrated word as the target word if the word obtained after integration satisfies the condition.
可选的,在本申请实施例中,上述装置600还包括第二确定模块609;上述第二确定模块609,用于在存在对第一文本中的目标字符的删除输入的情况下,对上述目标字符所处的目标位置之前的第一子字符串进行检测,并在上述第一子字符串满足预定分词条件的情况下,将与上述第一子字符串匹配的词语确定为目标词语;上述第二确定模块609,还用于在存在对第一文本中的目标字符的删除输入的情况下,对上述目标字符所处的目标位置之后的第二子字符串进行检测,并在上述第二子字符串满足预定分词条件的情况下,将与上述第二子字符串匹配的词语确定为目标词语。Optionally, in this embodiment of the present application, the above-mentioned apparatus 600 further includes a second determination module 609; the above-mentioned second determination module 609 is configured to, when there is a deletion input to the target character in the first text, The first substring before the target position where the target character is located is detected, and when the above-mentioned first substring satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word; the above-mentioned The second determination module 609 is further configured to detect the second substring after the target position where the target character is located in the case where there is an input to delete the target character in the first text, and perform the detection in the second substring after the target position of the target character. When the substring satisfies the predetermined word segmentation condition, the word matching the second substring is determined as the target word.
本申请实施例中的输入文字的装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for inputting text in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的输入文字的装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for inputting text in this embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的输入文字的装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。The apparatus for inputting text provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 2 , and in order to avoid repetition, details are not repeated here.
需要说明的是,如图4所示,输入文字的装置600中一定包括的模块用实线框示意,如显示模块601;输入文字的装置600中可以包括也可以不包括的模块用虚线框示意,如提取模块603。It should be noted that, as shown in FIG. 4 , the modules that must be included in the text input device 600 are indicated by solid line boxes, such as the display module 601 ; the modules that may or may not be included in the text input device 600 are indicated by dotted line boxes , such as the extraction module 603 .
可选的,如图5所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述输入文字的方法实施例的各个过程,且能达到相同的技术 效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 5 , an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701, When the program or instruction is executed by the processor 701, each process of the above-mentioned method for inputting text is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。其中,用户输入单元107包括:触控面板1071和其他输入设备1072,显示单元106包含显示面板1061,输入单元104包括图像处理器1041和麦克风1042,存储器109可用于存储软件程序(如,操作系统、至少一个功能所需的应用程序)以及各种数据。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part. The user input unit 107 includes a touch panel 1071 and other input devices 1072, the display unit 106 includes a display panel 1061, the input unit 104 includes an image processor 1041 and a microphone 1042, and the memory 109 can be used to store software programs (eg, an operating system). , applications required for at least one function) and various data.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,显示单元106,用于接收用户输入的第一字符串,显示上述第一字符串对应的第一文本;存储器109,用于在上述第一文本中包括目标词语的情况下,将上述目标词语,以及上述目标词语与目标字符串的对应关系存入目标词库中;其中,上述第一字符串包括上述目标字符串,上述目标词语为语义完整的词语。The display unit 106 is configured to receive the first character string input by the user, and display the first text corresponding to the first character string; the memory 109 is configured to display the target word in the first text The words, and the correspondence between the target words and the target character string are stored in the target thesaurus; wherein, the first character string includes the target character string, and the target word is a word with complete semantics.
本申请实施例的电子设备,该电子设备在接收到用户输入的第一字符串后,显示第一字符串对应的第一文本,在该第一文本中包括目标词语的情况下,将该目标词语,以及与目标词语与目标字符串的对应关系存入目标词库中,该第一字符串中包括目标字符串,该目标词语为语义完整的词语。由上述过程可知,当电子设备显示第一文本后,电子设备可以提取出第一文本中的目标词语,并将目标词语以及与目标词语对应的目标字符串存入目标词库中,如此,电子设备通过这种智能化的学习方式,使得用户在后续需要在电子设备上使用该目标词语时,可以在输入目标词语对应的目标字符串时即可以直接输出该目标词语供用户使用,节省用户输入目标词语对应的字符串后选择最终词语的时间和步骤,提高 了用户使用电子设备的效率。In the electronic device according to the embodiment of the present application, after receiving the first character string input by the user, the electronic device displays the first text corresponding to the first character string, and if the first text includes the target word, the target word is displayed in the electronic device. The words and the corresponding relationship between the target word and the target character string are stored in the target thesaurus, the first character string includes the target character string, and the target word is a word with complete semantics. It can be seen from the above process that after the electronic device displays the first text, the electronic device can extract the target word in the first text, and store the target word and the target character string corresponding to the target word in the target vocabulary. Through this intelligent learning method, the device enables the user to directly output the target word for the user to use when inputting the target string corresponding to the target word when the user needs to use the target word on the electronic device in the future, saving user input. The time and steps for selecting the final word after the character string corresponding to the target word improves the efficiency of the user using the electronic device.
可选的,上述处理器110,用于对上述第一文本进行分词处理,提取上述第一文本中的N个词语;其中,上述目标词语为:上述N个词语中,目标词库中未存储的词语。。Optionally, the above-mentioned processor 110 is configured to perform word segmentation processing on the above-mentioned first text, and extract N words in the above-mentioned first text; wherein, the above-mentioned target words are: among the above-mentioned N words, the target thesaurus does not store words. .
可选的,上述用户输入单元107,用于接收用户发送上述第一文本的第一输入;上述处理器110,还用于响应于上述第一输入,将上述第一文本上屏;上述处理器110,具体用于对上屏后的上述第一文本进行分词处理。Optionally, the above-mentioned user input unit 107 is configured to receive the first input of the user sending the above-mentioned first text; the above-mentioned processor 110 is further configured to display the above-mentioned first text on the screen in response to the above-mentioned first input; the above-mentioned processor 110, which is specifically configured to perform word segmentation processing on the above-mentioned first text after the screen is displayed.
可选的,上述用户输入单元107,还用于接收用户对上述第一文本中目标字符的删除输入;上述处理器110,还用于将上述目标字符前后的字符整合,在整合后得到的词语满足条件的情况下,将上述整合后的词语确定为目标词语。Optionally, the above-mentioned user input unit 107 is also used to receive the deletion input of the target character in the above-mentioned first text by the user; the above-mentioned processor 110 is also used to integrate the characters before and after the above-mentioned target character, and the words obtained after the integration. When the conditions are met, the above-mentioned integrated words are determined as target words.
可选的,上述处理器110,具体用于在存在对第一文本中的目标字符的删除输入的情况下,对上述目标字符所处的目标位置之前的第一子字符串进行检测,并在上述第一子字符串满足预定分词条件的情况下,将与上述第一子字符串匹配的词语确定为目标词语;上述处理器110,具体用于在存在对第一文本中的目标字符的删除输入的情况下,对上述目标字符所处的目标位置之后的第二子字符串进行检测,并在上述第二子字符串满足预定分词条件的情况下,将与上述第二子字符串匹配的词语确定为目标词语。Optionally, the above-mentioned processor 110 is specifically configured to detect the first substring before the target position where the above-mentioned target character is located in the presence of a deletion input to the target character in the first text, and in the In the case that the above-mentioned first substring satisfies the predetermined word segmentation condition, the word matching the above-mentioned first substring is determined as the target word; the above-mentioned processor 110 is specifically configured to delete the target character in the first text when there is a In the case of input, the second substring after the target position where the target character is located is detected, and if the second substring satisfies the predetermined word segmentation condition, the second substring matching the second substring is selected. The word is determined as the target word.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该 程序或指令被处理器执行时实现上述输入文字的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned method for inputting text is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Onl Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Onl Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述输入文字的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above method embodiments for inputting text and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在 本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种输入文字的方法,所述方法包括:A method for inputting text, the method comprising:
    接收用户输入的第一字符串,显示所述第一字符串对应的第一文本;receiving the first character string input by the user, and displaying the first text corresponding to the first character string;
    在所述第一文本中包括目标词语的情况下,将所述目标词语,以及所述目标词语与目标字符串的对应关系存入目标词库中;In the case where the first text includes a target word, storing the target word and the corresponding relationship between the target word and the target character string in a target vocabulary;
    其中,所述第一字符串包括所述目标字符串,所述目标词语为语义完整的词语。Wherein, the first character string includes the target character string, and the target word is a word with complete semantics.
  2. 根据权利要求1所述的方法,其中,所述将所述目标词语,以及所述目标词语与目标字符串的对应关系存入目标词库中之前,所述方法还包括:The method according to claim 1, wherein, before storing the target word and the corresponding relationship between the target word and the target character string in the target vocabulary, the method further comprises:
    对所述第一文本进行分词处理,提取所述第一文本中的N个词语;performing word segmentation processing on the first text, and extracting N words in the first text;
    其中,所述目标词语为:所述N个词语中,目标词库中未存储的词语。Wherein, the target words are: among the N words, words that are not stored in the target thesaurus.
  3. 根据权利要求2所述的方法,其中,所述显示所述第一字符串对应的第一文本之前,所述方法包括:The method according to claim 2, wherein before the displaying the first text corresponding to the first character string, the method comprises:
    接收用户发送所述第一文本的第一输入;receiving a first input of the user sending the first text;
    响应于所述第一输入,将所述第一文本上屏;in response to the first input, putting the first text on the screen;
    所述对所述第一文本进行分词处理,包括:The performing word segmentation processing on the first text includes:
    对上屏后的所述第一文本进行分词处理。Perform word segmentation processing on the first text after the screen is displayed.
  4. 根据权利要求1所述的方法,其中,所述显示所述第一字符串对应的第一文本之后,还包括:The method according to claim 1, wherein after the displaying the first text corresponding to the first character string, the method further comprises:
    接收用户对所述第一文本中目标字符的删除输入;receiving a user's deletion input of the target character in the first text;
    将所述目标字符前后的字符整合,在整合后得到的词语满足条件的情况下,将所述整合后的词语确定为目标词语。The characters before and after the target character are integrated, and the integrated word is determined as the target word if the word obtained after integration satisfies the condition.
  5. 根据权利要求4所述的方法,其中,所述在整合后得到的词语满足条件的情况下,将所述整合后的词语确定为目标词语,包括:The method according to claim 4, wherein, under the condition that the words obtained after integration satisfy conditions, determining the integrated words as target words, comprising:
    在所述整合后得到的词语未在所述目标词库中的情况下,将所述整合后的词语确定为目标词语并保存。If the word obtained after the integration is not in the target word database, the word after integration is determined as a target word and saved.
  6. 根据权利要求2所述的方法,其中,所述对所述第一文本进行分词处理,提取所述第一文本中的N个词语,包括:The method according to claim 2, wherein, performing word segmentation processing on the first text to extract N words in the first text, comprising:
    在存在对第一文本中的目标字符的删除输入的情况下,对所述目标字符所处的目标位置之前的第一子字符串进行检测,并在所述第一子字符串满足预定分词条件的情况下,将与所述第一子字符串匹配的词语确定为目标词语;In the case of the deletion input of the target character in the first text, the first substring before the target position where the target character is located is detected, and the first substring satisfies the predetermined word segmentation condition In the case of , the word matching the first substring is determined as the target word;
    在存在对第一文本中的目标字符的删除输入的情况下,对所述目标字符所处的目标位置之后的第二子字符串进行检测,并在所述第二子字符串满足预定分词条件的情况下,将与所述第二子字符串匹配的词语确定为目标词语。In the case where there is an input to delete the target character in the first text, the second substring after the target position where the target character is located is detected, and the second substring satisfies the predetermined word segmentation condition In the case of , the word matching the second substring is determined as the target word.
  7. 一种输入文字的装置,所述装置包括显示模块和存储模块;A device for inputting text, the device includes a display module and a storage module;
    所述显示模块,用于接收用户输入的第一字符串,显示所述第一字符串对应的第一文本;The display module is configured to receive the first character string input by the user, and display the first text corresponding to the first character string;
    所述存储模块,用于在所述显示模块显示的所述第一文本中包括目标词语的情况下,将所述目标词语,以及所述目标词语与目标字符串的对应关系存入目标词库;The storage module is configured to store the target word and the corresponding relationship between the target word and the target character string in a target vocabulary when the first text displayed by the display module includes a target word ;
    其中,所述第一字符串包括所述目标字符串,所述目标词语为所述语义完整的词语。Wherein, the first character string includes the target character string, and the target word is the semantically complete word.
  8. 根据权利要求7所述的装置,其中,所述装置还包括提取模块;The apparatus of claim 7, wherein the apparatus further comprises an extraction module;
    所述提取模块,用于对所述第一文本进行分词处理,提取所述第一文本中的N个词语;The extraction module is configured to perform word segmentation processing on the first text, and extract N words in the first text;
    其中,所述目标词语为:所述M个词语中,目标词库中未存储的词语。Wherein, the target word is: among the M words, words not stored in the target word database.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:第一接收模块、上屏模块和处理模块;The device according to claim 8, wherein the device further comprises: a first receiving module, a screen upper module and a processing module;
    所述第一接收模块,用于接收用户发送所述第一文本的第一输入;the first receiving module, configured to receive the first input sent by the user to send the first text;
    所述上屏模块,用于响应于所述第一接收模块接收的所述第一输入,将所述第一文本上屏;the screen-up module, configured to display the first text on the screen in response to the first input received by the first receiving module;
    所述处理模块,用于对所述上屏模块上屏后的所述第一文本进行分词处理。The processing module is configured to perform word segmentation processing on the first text after the screen is displayed by the screen-up module.
  10. 根据权利要求7所述的装置,其中,所述装置还包括:第二接收模块和第一确定模块;The apparatus according to claim 7, wherein the apparatus further comprises: a second receiving module and a first determining module;
    所述第二接收模块,用于接收用户对所述第一文本中目标字符的删除输入;The second receiving module is used to receive the user's deletion input of the target character in the first text;
    所述第一确定模块,用于将所述目标字符前后的字符整合,在整合后得到的词语 满足条件的情况下,将所述整合后的词语确定为目标词语。The first determining module is configured to integrate the characters before and after the target character, and determine the integrated word as the target word under the condition that the word obtained after integration satisfies the condition.
  11. 根据权利要求10所述的装置,其中,所述第一确定模块具体用于:The apparatus according to claim 10, wherein the first determining module is specifically configured to:
    在所述整合后得到的词语未在所述目标词库中的情况下,将所述整合后的词语确定为目标词语并保存。If the word obtained after the integration is not in the target word database, the word after integration is determined as a target word and saved.
  12. 根据权利要求8所述的装置,其中,所述装置还包括第二确定模块;The apparatus of claim 8, wherein the apparatus further comprises a second determination module;
    所述第二确定模块,用于在存在对第一文本中的目标字符的删除输入的情况下,对所述目标字符所处的目标位置之前的第一子字符串进行检测,并在所述第一子字符串满足预定分词条件的情况下,将与所述第一子字符串匹配的词语确定为目标词语;The second determination module is configured to detect the first substring before the target position where the target character is located in the presence of a deletion input to the target character in the first text, and to detect the first substring before the target position of the target character. In the case that the first substring satisfies the predetermined word segmentation condition, the word matching the first substring is determined as the target word;
    所述第二确定模块,还用于在存在对第一文本中的目标字符的删除输入的情况下,对所述目标字符所处的目标位置之后的第二子字符串进行检测,并在所述第二子字符串满足预定分词条件的情况下,将与所述第二子字符串匹配的词语确定为目标词语。The second determination module is further configured to detect the second substring after the target position where the target character is located in the presence of a deletion input of the target character in the first text, and to detect the second substring after the target position of the target character. When the second substring satisfies the predetermined word segmentation condition, the word matching the second substring is determined as the target word.
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的输入文字的方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1-6 The steps of any one of the methods for inputting text.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的输入文字的方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, implement the steps of the method for inputting text according to any one of claims 1-6.
  15. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的输入文字的方法。A computer program product executed by at least one processor to implement the method of inputting text of any one of claims 1 to 6.
  16. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的输入文字的方法。A chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run a program or an instruction to implement the input according to any one of claims 1 to 6 text method.
  17. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至6中任一项所述的输入文字的方法。An electronic device comprising the electronic device configured to perform the method of inputting text as claimed in any one of claims 1 to 6.
PCT/CN2021/130961 2020-11-20 2021-11-16 Character input method and apparatus, and electronic device WO2022105754A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011306337.7 2020-11-20
CN202011306337.7A CN112558784A (en) 2020-11-20 2020-11-20 Method and device for inputting characters and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022105754A1 true WO2022105754A1 (en) 2022-05-27

Family

ID=75044380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130961 WO2022105754A1 (en) 2020-11-20 2021-11-16 Character input method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112558784A (en)
WO (1) WO2022105754A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558784A (en) * 2020-11-20 2021-03-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment
CN113641252B (en) * 2021-07-06 2024-03-29 维沃移动通信有限公司 Text input method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331A (en) * 2008-08-28 2010-03-03 北京搜狗科技发展有限公司 Character and phrase input method and input method system
WO2013029239A1 (en) * 2011-08-30 2013-03-07 宇龙计算机通信科技(深圳)有限公司 Dictionary database update device, input system, input method, and terminal
CN104699809A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Method and device for controlling optimized word bank
CN106933382A (en) * 2017-03-17 2017-07-07 北京小米移动软件有限公司 Update the method and device of input method dictionary
KR20180007183A (en) * 2016-07-12 2018-01-22 (주) 리얼밸류 sentence input method and devices using the Representative of alphabet with the spaces
CN112558784A (en) * 2020-11-20 2021-03-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331A (en) * 2008-08-28 2010-03-03 北京搜狗科技发展有限公司 Character and phrase input method and input method system
WO2013029239A1 (en) * 2011-08-30 2013-03-07 宇龙计算机通信科技(深圳)有限公司 Dictionary database update device, input system, input method, and terminal
CN104699809A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Method and device for controlling optimized word bank
KR20180007183A (en) * 2016-07-12 2018-01-22 (주) 리얼밸류 sentence input method and devices using the Representative of alphabet with the spaces
CN106933382A (en) * 2017-03-17 2017-07-07 北京小米移动软件有限公司 Update the method and device of input method dictionary
CN112558784A (en) * 2020-11-20 2021-03-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment

Also Published As

Publication number Publication date
CN112558784A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108369580B (en) Language and domain independent model based approach to on-screen item selection
WO2020108257A1 (en) Method and device for automatically splitting table content into columns, computer apparatus, and storage medium
US8370143B1 (en) Selectively processing user input
WO2018045646A1 (en) Artificial intelligence-based method and device for human-machine interaction
WO2022083750A1 (en) Text display method and apparatus and electronic device
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
US10496276B2 (en) Quick tasks for on-screen keyboards
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN107092424B (en) Display method and device of error correction items and device for displaying error correction items
WO2016082096A1 (en) System and method for predictive text entry using n-gram language model
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN108664142B (en) Input method with inter-document self-learning function
CN112562684B (en) Voice recognition method and device and electronic equipment
CN111797216B (en) Search term rewriting method, apparatus, device and storage medium
CN107797676B (en) Single character input method and device
WO2022166808A1 (en) Text restoration method and apparatus, and electronic device
WO2022143341A1 (en) Input method candidate word display method and apparatus, and electronic device
WO2022253138A1 (en) Text processing method and apparatus, and electronic device
WO2022233275A1 (en) Input correction method and apparatus
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
CN113157966B (en) Display method and device and electronic equipment
WO2022100622A1 (en) Candidate word display method and apparatus, and electronic device
CN113138676B (en) Expression symbol display method and device
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
US20140181672A1 (en) Information processing method and electronic apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21893901

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21893901

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.11.2023)