WO2020047709A1 - Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur - Google Patents

Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur Download PDF

Info

Publication number
WO2020047709A1
WO2020047709A1 PCT/CN2018/103816 CN2018103816W WO2020047709A1 WO 2020047709 A1 WO2020047709 A1 WO 2020047709A1 CN 2018103816 W CN2018103816 W CN 2018103816W WO 2020047709 A1 WO2020047709 A1 WO 2020047709A1
Authority
WO
WIPO (PCT)
Prior art keywords
character string
application
terminal
type
sample data
Prior art date
Application number
PCT/CN2018/103816
Other languages
English (en)
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 华为技术有限公司
Priority to PCT/CN2018/103816 priority Critical patent/WO2020047709A1/fr
Priority to CN201880090845.0A priority patent/CN111868668B/zh
Publication of WO2020047709A1 publication Critical patent/WO2020047709A1/fr

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

Definitions

  • Embodiments of the present application relate to the field of terminals, and in particular, to a method, terminal, and server for searching for candidate words of a Chinese input method.
  • IMA Input Method Application
  • IME Input Method Engine
  • IME Input Method Editor
  • the input method application After a user uses an input method to input a character string (such as a combination of some pinyin or a combination of numbers), the input method application usually provides some candidate words corresponding to the character string for the user to select.
  • the user's choice can realize the input of Chinese words.
  • One is to send a character string input by a user using an input method application to a cloud server, and the cloud server searches for the character string from the thesaurus.
  • the corresponding candidate word and return the searched candidate word to the terminal, so that the input method application of the terminal displays the candidate word corresponding to the character string for the user to select.
  • the other is that the terminal directly searches for the candidate word corresponding to the character string input by the user in the local thesaurus of the input method application and displays it for the user to choose.
  • candidate word searches are performed in the same thesaurus.
  • the candidate words displayed for the user by the input method application may not be what the user expects, and the accuracy of the searched candidate words is not high, resulting in low input efficiency.
  • the embodiments of the present application provide a method, terminal, and server for searching for candidate words of a Chinese input method, which can improve the accuracy of the candidate words searched out, thereby improving the input efficiency.
  • an embodiment of the present application provides a method for searching for a candidate word of a Chinese input method.
  • the method may include: a terminal displaying an interface of a first application, where the interface of the first application includes an input box, and upon receiving a user selection input box After the operation, in response to the operation, the interface of the input method application is displayed; the terminal receives the first character string input by the user in the interface of the input method application, and determines the first type corresponding to the first character string; the terminal sends to the server The identifier of the first type and the first string described above; the terminal receives at least one candidate word from the server, the candidate word being a Chinese word searched by the server from a thesaurus corresponding to the first type and matching the first string word.
  • the terminal displays at least one candidate word in an interface of the input method application.
  • the lexicon corresponding to the input method application may include a lexicon corresponding to the first type and a lexicon corresponding to the second type, and the lexicon corresponding to the first type is different from the lexicon corresponding to the second type.
  • a terminal may determine a type corresponding to the character string, and obtain and display candidate words corresponding to the character string according to the type For users to choose.
  • the candidate word corresponding to the string is searched from the thesaurus corresponding to the type, and the type can reflect the type of possible use scenarios of the user input string, that is, the type can reflect the user's input intention Therefore, the searched candidate words can better meet the needs of the user, which improves the accuracy of the searched candidate words and improves the input efficiency.
  • the foregoing terminal determines the first type corresponding to the first character string, and specifically may include: the terminal obtaining the time and place when the user enters the first character string, and an identifier of the first application, where: The acquired time, place, and identifier of the first application may be referred to as a user portrait when the first character string is input.
  • the terminal determines a similarity measure between the first data and each of the first sample data of the N first sample data.
  • the first data may include a first character string and a time, a place, and a first time when the user inputs the first character string.
  • An application identifier may be used to identify a user portrait.
  • the first sample data may include a second character string and a time and place when the user enters the second character string in the second application, and an identifier of the second application.
  • the time when the user enters the second character string, The place and the identification of the second application may be referred to as a user portrait when the second character string is input.
  • the terminal selects K first sample data that is most similar to the first data from the N first sample data according to the determined N similarity metrics, where K is an integer greater than or equal to 1 and less than or equal to N ;
  • the terminal may determine the first type according to the types corresponding to the K second character strings.
  • the K second character strings are the second character strings included in the K first sample data. When K is equal to 1, the type corresponding to the second character string is used as the first type.
  • the type corresponding to the majority of the K second character strings is taken as the first type.
  • the user portrait when the first character string is currently input and the user portrait when the second character string is input are used to determine the type corresponding to the first character string, so that the thesaurus for searching for candidate words matches the user input intention more, The accuracy of the searched candidate words is further improved.
  • the first data may also include a first character string, and any one or two of the following parameters: the time and place when the first character string is input, and the identifier of the first application.
  • the first sample data may also include the first character string.
  • Two character strings, and any one or two of the following parameters: the time and place when the second character string is input, and the identifier of the second application, and the parameters included in the first data correspond to the parameters included in the first sample data.
  • the first data includes the first character string and the time and place when the first character string is inputted, and accordingly, the first sample data includes the second character string and the time and place when the second character string is input.
  • the determining, by the terminal, that the first type corresponding to the first character string specifically includes: the terminal obtaining the time and place when the user enters the first character string, where the obtained time and place may be called Is the portrait of the user when the first character string is input; the terminal determines a similarity measure between the second data and each second sample data of the N second sample data, and the second data may include the first character string and the user input the first The time and place when the character string is used.
  • the second sample data may include the second character string and the time and place when the user enters the second character string.
  • the time and place when the user enters the second character string may be referred to as the input of the second character string.
  • the terminal selects K second sample data that is most similar to the second data from the N second sample data according to the determined N similarity metrics, where K is greater than or equal to 1 and less than or equal to An integer of N; the terminal determines the second application corresponding to the first character string according to the application corresponding to the K second character strings; the K second character strings are the K second sample data including When K is equal to 1, the application corresponding to one second character string is used as the second application. When K is greater than 1, the second character string corresponding to the majority of the K second character strings is corresponding. The application is used as the second application; the terminal uses the type of the second application as the first type.
  • an application corresponding to the first character string is determined using the user portrait when the first character string is currently input and the user portrait when the second character string is input, and the type of the application is used as the type corresponding to the first character string, so that
  • the vocabulary used to search for candidate words more closely matches the user's input intent, which further improves the accuracy of the searched candidate words.
  • the second data may also include the first character string and any of the following parameters: the time and place when the first character string is input
  • the second sample data may also include the second character string and any of the following parameters : The time and place when the second character string is input, and the parameters included in the second data correspond to the parameters included in the second sample data.
  • the second data includes the first character string and the time when the first character string is inputted
  • the second sample data includes the second character string and the time when the second character string is input.
  • the terminal may also search for a candidate word, that is, the terminal sends the first type to the server.
  • the identifier and the first string described above the terminal receives at least one candidate word from the server, and may be replaced by: the terminal determines a thesaurus corresponding to the first type among a plurality of thesaurus stored by the terminal, and corresponds to the first type
  • the thesaurus performs a search to obtain at least one candidate word, and the candidate word is a Chinese word that matches the first character string.
  • the multiple thesaurus can be downloaded from the server by the terminal and stored in the terminal.
  • the multiple thesaurus can be retrieved by an input method application.
  • the terminal can also download and store the correspondence between the thesaurus and the type from the server so that After the type corresponding to the first character string is determined, a candidate word search can be performed from a thesaurus corresponding to the type, thereby improving the accuracy of the searched candidate word.
  • an embodiment of the present application provides a method for searching for a candidate word of a Chinese input method.
  • the method may include:
  • the server receives the first character string and the first type identifier from the terminal; the server determines a thesaurus corresponding to the first type from a thesaurus corresponding to the input method application stored by the server.
  • the server searches a thesaurus corresponding to the first type to obtain at least one candidate word, the candidate word is a Chinese character word that matches the first character string, and the server sends at least one candidate word to the terminal.
  • the lexicon corresponding to the input method application also includes a lexicon corresponding to the second type. The lexicon corresponding to the second type is different from the lexicon corresponding to the first type.
  • the server after receiving a character string and a type identifier from a terminal, the server can search for a candidate word corresponding to the character string from a thesaurus corresponding to the type, and send the candidate word to the terminal for the user. select.
  • the candidate word corresponding to the string is searched from the thesaurus corresponding to the type, and the type can reflect the type of possible use scenarios of the user input string, that is, the type can reflect the user's input intention Therefore, the searched candidate words can better meet the needs of the user, which improves the accuracy of the searched candidate words and improves the input efficiency.
  • the method may further include: the server obtains an instruction, and in response to the instruction, obtains at least one Chinese word, and a word frequency corresponding to each Chinese word, and the Chinese word corresponds to the first type. ; The server determines a character string corresponding to each of the at least one Chinese word; the server generates a thesaurus corresponding to the first type, and the thesaurus corresponding to the first type includes at least one Chinese word and at least one Chinese word Frequency and character string corresponding to each Chinese word in the word.
  • the server generates different types of thesaurus according to the instructions and stores them in the server, so that the subsequent server can search for candidate words from different thesaurus according to the different types of identifiers received, and then provide users with a reflection Candidates whose input is intended.
  • an embodiment of the present application provides a method for searching for a candidate word of a Chinese input method.
  • the method may include:
  • the server receives the first character string from the terminal, and determines the first type corresponding to the first character string.
  • the server determines the first type corresponding to the first type from the thesaurus corresponding to the input method application stored by the server.
  • the corresponding thesaurus is searched to obtain at least one candidate word, and the candidate word is a Chinese character word that matches the first character string; the server sends at least one candidate word to the terminal.
  • the lexicon corresponding to the input method application also includes a lexicon corresponding to the second type.
  • the lexicon corresponding to the second type is different from the lexicon corresponding to the first type.
  • the server may determine a type corresponding to the character string, search for a candidate word corresponding to the character string from a word dictionary corresponding to the type, and send To the terminal so that the terminal can display these candidate words for the user to choose.
  • the candidate word corresponding to the string is searched from the thesaurus corresponding to the type, and the type can reflect the type of possible use scenarios of the user input string, that is, the type can reflect the user's input intention Therefore, the searched candidate words can better meet the needs of the user, which improves the accuracy of the searched candidate words and improves the input efficiency.
  • the method may further include: obtaining, by the server, the time and place when the user enters the first character string in the first application, and the identifier of the first application, where the obtained time, place, and first An identification of an application may be referred to as a user portrait when a first character string is input.
  • the above-mentioned server determining the first type corresponding to the first character string may specifically include: the server determining a similarity measure of the first data and each of the first sample data of the N first sample data, and the first data may include a first A character string and the time and place when the user enters the first character string and the identifier of the first application.
  • the first sample data may include the second character string and the time and place when the user enters the second character string in the second application. And the identity of the second application, the time and place when the user enters the second character string, and the identity of the second application may be referred to as the user portrait when the second character string is entered.
  • the server selects K first sample data that is most similar to the first data from N first sample data according to the determined N similarity metrics, where K is an integer greater than or equal to 1 and less than or equal to N ;
  • the server determines the first type according to the types corresponding to the K second character strings.
  • the K second strings are the second strings included in the K first sample data. When K is equal to 1, the type corresponding to the second string is used as the first type.
  • the K is The type corresponding to the majority of the second string is the first type.
  • the user portrait when the first character string is currently input and the user portrait when the second character string is input are used to determine the type corresponding to the first character string, so that the thesaurus for searching for candidate words matches the user input intention more, The accuracy of the searched candidate words is further improved.
  • the first data may also include a first character string, and any one or two of the following parameters: the time and place when the first character string is input, and the identifier of the first application.
  • the first sample data may also include the first character string.
  • Two character strings, and any one or two of the following parameters: the time and place when the second character string is input, and the identifier of the second application, and the parameters included in the first data correspond to the parameters included in the first sample data.
  • the first data includes the first character string and the time and place when the first character string is inputted, and accordingly, the first sample data includes the second character string and the time and place when the second character string is input.
  • the method may further include: obtaining, by the server, the time and place when the user inputs the first character string, wherein the obtained time and place may be referred to as the user portrait when the first character string is input;
  • the determining by the server of the first type corresponding to the first character string may specifically include: determining, by the server, a similarity measure between the second data and each second sample data of the N second sample data, and the second data may include the first character String and the time and place when the user enters the first string, the second sample data may include the second string and the time and place when the user enters the second string, and the time and place when the user enters the second string can be called User portrait when entering the second character string.
  • the server selects K second sample data from the N second sample data according to the determined N similarity metrics.
  • the K second sample data is most similar to the second data, and K is An integer greater than or equal to 1 and less than or equal to N;
  • the server determines the second application corresponding to the first string according to the application corresponding to the K second strings;
  • the K second strings are K second sample data The included second character string.
  • K is equal to 1
  • the application corresponding to one second character string is used as the second application.
  • K is greater than 1
  • the second character string corresponding to the majority of the K second character strings is corresponding.
  • Application as the second application the server regards the type of the second application as the first type.
  • an application corresponding to the first character string is determined using the user portrait when the first character string is currently input and the user portrait when the second character string is input, and the type of the application is used as the type corresponding to the first character string, so that
  • the vocabulary used to search for candidate words more closely matches the user's input intent, which further improves the accuracy of the searched candidate words.
  • the second data may also include the first character string and any of the following parameters: the time and place when the first character string is input
  • the second sample data may also include the second character string and any of the following parameters : The time and place when the second character string is input, and the parameters included in the second data correspond to the parameters included in the second sample data.
  • the second data includes the first character string and the time when the first character string is inputted
  • the second sample data includes the second character string and the time when the second character string is input.
  • an embodiment of the present application provides a method for searching for a candidate word of a Chinese input method.
  • the method may include: a terminal displaying an interface of a first application, the interface of the first application including an input box, and receiving a user-selected input box.
  • the interface of the input method application is displayed; the terminal receives the first character string input by the user in the interface of the input method application; the terminal determines the second application corresponding to the first character string; the terminal sends the second to the server Application identification and first character string; the terminal receives at least one candidate word from the server, the candidate word is a Chinese word that matches the first character string and is searched from the first thesaurus corresponding to the second application; the terminal Display at least one candidate word in the interface of the input method application.
  • the lexicon corresponding to the input method application includes a first lexicon and a second lexicon. The first lexicon is different from the second lexicon, and the applications corresponding to the first lexicon and the second lexicon are also different.
  • the terminal may determine an application corresponding to the character string, and obtain and display candidate words corresponding to the character string according to the application. For users to choose. Since the candidate word corresponding to the character string is searched from the thesaurus corresponding to the application, and the application is the application corresponding to the character string most similar to the character string, which can reflect the user's input intention, so the searched out The candidate words can better meet the needs of users, improve the accuracy of the searched candidate words, and improve the input efficiency.
  • the user portrait when the current character string is input and the user portrait when the historical character string is input are used to determine the application corresponding to the currently input character string, so that the thesaurus for searching for candidate words matches the user input intention more, and further improves The accuracy of the searched candidate words.
  • the above-mentioned terminal determining the second application corresponding to the first character string may specifically include: the terminal obtaining the time and place when the user enters the first character string, where the obtained time and place may be called Is the portrait of the user when the first character string is input; the terminal determines a similarity measure between the first data and each of the N sample data, the first data includes the first character string and the time when the user enters the first character string And place, the sample data includes the second character string and the time and place when the user enters the second character string.
  • the time and place when the user enters the second character string can be referred to as the user portrait when the second character string is input; Out of the N similarity measures, K sample data is selected from the N sample data.
  • the K sample data is most similar to the first data, and K is greater than or equal to 1, and less than or equal to N.
  • the terminal determines the second application according to the application corresponding to the K second character strings; the K second character strings are the second character strings included in the K sample data, when K is equal to 1
  • the second character string corresponding to an application as a second application when K is greater than 1, the second string K majority applied as the second character string corresponding to a second application.
  • the user portrait when the first character string is currently input and the user portrait when the second character string is input are used to determine the application corresponding to the first character string, so that the thesaurus for searching for candidate words matches the user input intention more, The accuracy of the searched candidate words is further improved.
  • the first data may also include a first character string and any of the following parameters: the time and place when the first character string is input
  • the sample data may also include a second character string and any of the following parameters: input
  • the time and place at the second character string, and the parameters included in the first data correspond to the parameters included in the sample data.
  • the first data includes the first character string and the time when the first character string is inputted
  • the sample data includes the second character string and the time when the second character string is input.
  • an embodiment of the present application provides a method for searching for a Chinese input method candidate word.
  • the method may include: the server receives a first character string and an identifier of a second application from the terminal; and the server corresponds to the input method application stored from the server. Determine the first thesaurus corresponding to the second application in the thesaurus; the server searches the first thesaurus to obtain at least one candidate word, the candidate word is a Chinese word that matches the first character string; the server sends at least For a candidate word, the lexicon corresponding to the input method application also includes a second lexicon. The first lexicon is different from the second lexicon, and the applications corresponding to the first lexicon and the second lexicon are also different.
  • the server after receiving the character string and the application identifier sent by the terminal, the server can determine the thesaurus corresponding to the application, and search the thesaurus corresponding to the application for the corresponding string. And send it to the terminal for the user to choose. Since the candidate word corresponding to the character string is searched from the thesaurus corresponding to the application, and the application is the application corresponding to the character string most similar to the character string, which can reflect the user's input intention, so the search results The candidate words can better meet the needs of users, improve the accuracy of the searched candidate words, and improve the input efficiency.
  • an embodiment of the present application provides a method for searching for a candidate word of a Chinese input method.
  • the method may include: the server receives a first character string from a terminal; the server determines a first application corresponding to the first character string; The first lexicon corresponding to the first application is determined from the lexicon corresponding to the input method application stored by the server.
  • the server searches the first lexicon to obtain at least one candidate word, the candidate word is a Chinese character word that matches the first character string; the server sends at least one candidate word to the terminal.
  • the lexicon corresponding to the input method application also includes a second lexicon. The first lexicon is different from the second lexicon, and the applications corresponding to the first lexicon and the second lexicon are also different.
  • the server after receiving a character string sent by a terminal, the server can determine an application corresponding to the character string, and can search for a candidate word corresponding to the character string from a thesaurus corresponding to the application. Send to the terminal for users to choose. Since the candidate word corresponding to the character string is searched from the thesaurus corresponding to the application, and the application is the application corresponding to the character string most similar to the character string, which can reflect the user's input intention, so the search results The candidate words can better meet the needs of users, improve the accuracy of the searched candidate words, and improve the input efficiency.
  • the method may further include: the server obtains the time and place when the user inputs the first character string, and the obtained time and place may be referred to as a user portrait where the first character string is input.
  • the above-mentioned server determining the first application corresponding to the first character string may specifically include: the server determining a similarity measure of the first data and each of the N sample data, the first data may include the first character string and a user input The time and place at the first character string, the sample data includes the second character string and the time and place when the user enters the second character string, where the time and place when the user enters the second character string can be referred to as entering the second character User portrait when strung.
  • the server selects K sample data from the N sample data according to the determined N similarity measures.
  • the K sample data is most similar to the first data, and K is greater than or equal to 1 and less than or An integer equal to N;
  • the server determines the first application according to the application corresponding to the K second strings; the K second strings are the second strings included in the K sample data; when K is equal to 1, the first The application corresponding to the two character strings is used as the first application.
  • K is greater than 1
  • the application corresponding to the second character string that is the majority of the K second character strings is used as the first application.
  • the user portrait when the first character string is currently input and the user portrait when the second character string is input are used to determine the application corresponding to the first character string, so that the thesaurus for searching for candidate words matches the user input intention more, The accuracy of the searched candidate words is further improved.
  • the first data may also include a first character string and any of the following parameters: the time and place when the first character string is input
  • the sample data may also include a second character string and any of the following parameters: input
  • the time and place at the second character string, and the parameters included in the first data correspond to the parameters included in the sample data.
  • the first data includes the first character string and the time when the first character string is inputted
  • the sample data includes the second character string and the time when the second character string is input.
  • an embodiment of the present application provides a search apparatus included in a terminal, and the apparatus has a method for implementing the first aspect and any one of the possible implementation manners of the first aspect, the fourth aspect, and the fourth aspect Possible implementation of the terminal behavior function in any of the methods.
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the functions described above. For example, an input module or unit, a display module or unit, a processing module or unit, and the like.
  • an embodiment of the present application provides a search device included in a server, and the device has a method for implementing the second aspect and any possible implementation manner of the second aspect, the third aspect, and the third aspect
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the functions described above. For example, a receiving module or unit, a processing module or unit, a transmitting module or unit, and the like.
  • an embodiment of the present application provides a terminal.
  • the terminal may include one or more processors, a memory, a display screen, a touch sensor, a wireless communication module, and a mobile communication module; a memory, a display screen, a touch sensor, and a wireless communication module;
  • the communication module and the mobile communication module are coupled to one or more processors.
  • the memory may be used to store computer program code, where the computer program code includes computer instructions.
  • an embodiment of the present application provides a server.
  • the server may include: one or more processors, a memory, and a communication interface; the memory and the communication interface are coupled to the one or more processors, and the memory is configured to store a computer program Code, the computer program code includes computer instructions, and when one or more processors execute the computer instructions, the server executes a second aspect or a possible implementation manner of the second aspect, or a third aspect or a possible implementation manner of the third aspect An implementation manner, or the fifth aspect, or the sixth aspect or a possible implementation manner of the sixth aspect, the search method for a Chinese input method candidate word.
  • an embodiment of the present application provides a computer storage medium including computer instructions.
  • the terminal When the computer instructions are executed on a terminal, the terminal is caused to execute the first aspect or a possible implementation manner of the first aspect, or the fourth aspect. Or the method for searching for a Chinese input method candidate word according to any one of the possible implementation manners of the fourth aspect.
  • an embodiment of the present application provides a computer storage medium including computer instructions, and when the computer instructions are run on a server, the server is caused to execute the second aspect or a possible implementation manner of the second aspect, or the third aspect Or the possible implementation manner of the third aspect, or the fifth aspect, or the sixth aspect or the possible implementation manner of the sixth aspect, the method for searching for a Chinese input method candidate word.
  • an embodiment of the present application provides a computer program product, which is characterized in that when the computer program product runs on a computer, the computer is caused to execute the first aspect or a possible implementation manner of the first aspect, or the fourth aspect The method for searching for a Chinese input method candidate word according to any one of the possible implementation manners of the aspect or the fourth aspect.
  • an embodiment of the present application provides a computer program product, which is characterized in that when the computer program product runs on a computer, the computer is caused to execute the second aspect or a possible implementation manner of the second aspect, or the third aspect
  • the search device described in the seventh aspect, the terminal described in the ninth aspect, the computer storage medium described in the eleventh aspect, or the computer program product described in the thirteenth aspect are all used to execute the The method for searching for a Chinese input method candidate word provided in any one aspect or the fourth aspect, therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
  • the search device described in the eighth aspect, the server described in the tenth aspect, the computer storage medium described in the twelfth aspect, or the computer program product described in the fourteenth aspect is used to execute the second aspect.
  • the third aspect, the fifth aspect, or the sixth aspect of the Chinese input method candidate word search method therefore, its beneficial effects can refer to the beneficial effects of the corresponding method, no longer here To repeat.
  • FIG. 1 is a schematic structural diagram of a search system according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 3 is a software structural block diagram of a terminal according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for searching for a candidate word of a Chinese input method according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of an example interface according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another method for searching for a candidate word of a Chinese input method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another interface example provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another method for searching for a candidate word of a Chinese input method according to an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another method for searching for a candidate word of a Chinese input method according to an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another method for searching for a candidate word of a Chinese input method according to an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of still another search method for a Chinese input method candidate word according to an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of another method for searching for a candidate word of a Chinese input method according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another terminal according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a server according to an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of another server according to an embodiment of the present application.
  • String A sequence of letters or numbers that is entered using an input method application, such as Chinese pinyin.
  • an input method application such as Chinese pinyin.
  • the input method application matches the Chinese word corresponding to the string in the thesaurus of the input method application.
  • Chinese word It can be a single Chinese character or a word composed of two or more Chinese characters.
  • Type Characterizes possible use cases for strings.
  • Chinese characters entered by the user in the input boxes of some applications have similar characteristics, and these applications may be considered to correspond to a type.
  • the strings entered in these applications to match these Chinese characters are also Corresponds to the same type.
  • application A, application B, application C, and application D corresponds to a type, such as type 1, the character string entered in application A1, the character string entered in application B2, the character string entered in application C3, and the character string 4 entered in application D also correspond to type1 .
  • application E and application F correspond to another type, such as type 2, and are entered in application E
  • the string 5 and the string 6 entered in the application F also correspond to type 2.
  • the Chinese words entered by users in the input boxes of applications such as Amazon and Macy's are all item names.
  • Amazon, Macy's, and other applications correspond to a type, such as shopping, and in Amazon, Macy's and other applications.
  • the string entered in Matching Item Name also corresponds to the shopping category.
  • the Chinese words entered by users in the input boxes of applications such as YouTube, Youku, and Baidu Video are the names of video files or movies.
  • applications such as YouTube, Youku, and Baidu Video correspond to another type, such as video
  • the strings entered in YouTube, Youku, Baidu Video and other applications to match the names of video files or movies also correspond to video classes.
  • the correspondence between strings, applications, and type thesaurus (see Table 1).
  • the correspondence between applications and type thesaurus can be configured in the input method application of the terminal, or in the server of the input method application.
  • some Chinese words have similar characteristics according to their semantics, and it can be considered that the character string entered in the interface of the input method application to match these Chinese words corresponds to a type.
  • the correspondence between the character string and the type may be defined by a developer of an input method application or a terminal manufacturer and stored in a terminal or a server. As shown in Table 2.1, if word A, word B, and Chinese character C have similar characteristics 1, then as shown in Table 2.2, the words entered in the interface of the input method application are used to match word A, word B, and Chinese character, respectively.
  • the strings a, b, and c of C correspond to one type, such as type 1.
  • the strings d and The string e corresponds to another type, such as type 2.
  • type 2 the words “sweeping robot”, “shirt” and “pencil” are the names of the items. Then, the ones entered in the input method application interface are used to match “sweeping robot", “shirt” and “pencil”, etc.
  • the word strings “saodijiqiren”, “chenshan”, and “qianbi” correspond to a type, such as shopping.
  • the words “Iron Man” and “Toothed Shark” are the names of video files or movies.
  • the input in the input method application interface is used to match “Iron Man” and “Toothed Shark", respectively.
  • the strings such as “gangtiexia” and “juchisha” correspond to another type, such as a video class.
  • the corresponding type of the character string input by the user can be determined according to the correspondence between the predefined character string and the type. For example, the user enters the string f in the interface of the input method application. Among the strings a, b, c, d, and e, the string f is most similar to the string a.
  • the correspondence between the defined character string and the type indicates that the type corresponding to the character string a is type 1, so it can be determined that the type corresponding to the character string f is also type 1.
  • the correspondence between string f and type 1 can be added to the correspondence between string and type, as shown in Table 2.2.
  • Thesaurus It is a collection of Chinese words, which can be stored in the server according to the corresponding relationship shown in Table 3 for retrieval by the input method application.
  • the word frequency refers to the frequency with which Chinese words are searched.
  • one input method application can retrieve multiple lexicons, that is, multiple lexicons are stored in the server for retrieval by the input method application.
  • the Chinese words included in the same thesaurus have similar characteristics, and the Chinese words included in different thesaurus have different characteristics.
  • the multiple thesauruses may correspond to different applications, and there may be one or more applications corresponding to the same thesaurus.
  • the Chinese words entered by the user in the input boxes of the multiple applications have similar characteristics, that is, the types of multiple applications corresponding to the same thesaurus can be considered to be the same.
  • the input method application can retrieve m thesaurus, which are thesaurus 1, thesaurus 2, ..., and thesaurus m.
  • the Chinese words included in the thesaurus 1 have similar features 1
  • the Chinese words included in the thesaurus 2 have similar features 2, ...
  • the Chinese words included in the thesaurus m have similar features m.
  • applications corresponding to thesaurus 1 are application A, application B, application C, and application D, and application A, application B, application C, and application D all correspond to type 1; applications corresponding to thesaurus 2
  • applications corresponding to thesaurus 2 There are application E and application F, both application E and application F correspond to type 2; ...; applications corresponding to thesaurus m include application X, application Y, and application Z, and application X, application Y, and application Z correspond to type m.
  • the corresponding relationship in the following table is only a schematic representation of a corresponding relationship between an application, a type, and a thesaurus.
  • the corresponding relationship may be stored in any manner, which is not limited in the embodiment of the present invention.
  • type 1 and type 2 represent scenarios of applications and thesaurus, and the corresponding relationship in storage may not include type 1 and type 2.
  • Candidates Chinese words that match the string and are searched from the thesaurus.
  • Both the first sample data and the second sample data can be used to determine a possible use scenario of the character string.
  • the first sample data may include a character string entered by the user in the application, and at least one of the following: time and place when the character string is input, and an identifier of the application.
  • the first sample data may be used to determine the character.
  • the second sample data may include a character string input by the user, and at least one of the following: time and place when the character string is input, and the second sample data may be used to determine an application corresponding to the character string.
  • An embodiment of the present application provides a method for searching for a candidate word of a Chinese input method, and the method can be applied to the search system 100 shown in FIG. 1.
  • the search system 100 may include a terminal 101 and a server 102.
  • the terminal 101 includes an input method application.
  • the input method application can be a system application or a third-party application.
  • the terminal 101 also includes one or more applications having an input box.
  • the application with an input box may be a system application, such as a short message, a calendar, etc., or a third-party application, such as Facebook, Amazon, a map, a music player, and the like.
  • the user can use an input method application to input Chinese characters in an input box of an application having an input box.
  • the server 102 may include a memory, a processor, and a communication interface.
  • the memory may be used to store application program code, and is controlled and executed by the processor of the server 102 to implement the functions of the server 102 in the embodiment of the present application.
  • the communication interface may be any device such as a transceiver for communicating with other devices such as the terminal 101.
  • the memory of the server 102 further stores a plurality of thesauruses, a plurality of types, and correspondences between thesaurus and types, and the plurality of thesauruses can be retrieved by an input method application.
  • the memory of the server 102 stores m thesauruses, which are thesaurus 1, thesaurus 2,..., Thesaurus m, which can be retrieved by an input method application.
  • the memory also stores m types, which are type 1, type 2, ..., type m, and the correspondence between m thesaurus and m types, such as thesaurus 1 and type 1, and thesaurus 2 and type. , ..., the thesaurus m corresponds to the type m.
  • the communication interface of the server 102 may send at least one candidate word to the terminal 101 after receiving the character string and the first type identifier sent by the user from the terminal 101, and the at least one candidate word is the processor of the server 102 according to the type and word Correspondence between databases is a Chinese word that is searched from a thesaurus corresponding to the first type stored in the memory and matches a character string input by the user. Or, if the correspondence between thesaurus and type is stored in the form of a table in the memory of the server 102, the communication interface of the server 102 may receive a request from the terminal 101 for downloading a thesaurus for an input method application.
  • the terminal 101 send m lexicons, m types, and correspondence tables between lexicons and types stored in the memory to the terminal 101, so that after receiving the character string currently entered by the user, the terminal 101 can according to the correspondence between the lexicons and types Table to search for candidate words from thesaurus corresponding to the first type.
  • the first type is a type used to characterize a possible use scenario of a character string currently input by a user, which is one of the foregoing types.
  • the memory of the server 102 further stores a plurality of thesauruses that can be retrieved by an input method application, identifications of the plurality of applications, and a correspondence between thesaurus and the application identification.
  • the multiple lexicons correspond to the identifiers of different applications, and the identifiers of the applications corresponding to the same lexicon may be one or multiple.
  • the memory of the server 102 stores m thesauruses for retrieval by an input method application, which are thesaurus 1, thesaurus 2, ..., thesaurus m, and Z.
  • the identity of each application is the identity of application A, the identity of application B, ..., the identity of application Y, the identity of application Z, and the correspondence between m thesaurus and Z applications, such as thesaurus 1 and application
  • the communication interface of the server 102 may send at least one candidate word to the terminal 101 after receiving the character string input by the user and the identifier of an application sent by the terminal 101.
  • the at least one candidate word is the identifier of the application processor of the server 102 according to the application.
  • candidate words searched from thesaurus corresponding to the application stored in memory.
  • the communication interface of the server 102 may receive a request from the terminal 101 for downloading the thesaurus of the input method application Then, the terminal 101 sends m lexicons, Z application identities, and correspondence tables between lexicons and application identities to the terminal 101, so that after the terminal 101 receives a character string input by a user in an application, Candidates can be searched from the thesaurus corresponding to the application according to the correspondence table between the thesaurus and the identification of the application.
  • the input method application of the terminal 101 when a user uses an input method application to input a character string in an input box of an application with an input box on the terminal 101, the input method application of the terminal 101 can be displayed to the user from the character string.
  • the candidate words searched in the thesaurus corresponding to the possible use scenario are provided for the user to select, so as to realize the input of Chinese words in the input box of the application.
  • a possible use case for a string entered by a user is related to shopping.
  • the input method application of the terminal 101 can show the user the candidate words searched from the thesaurus corresponding to the use scenario for the user to select, thereby completing the input.
  • the terminal 101 may be a mobile phone, a tablet computer, a desktop type, a laptop, a handheld computer, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a netbook, or a cellular phone.
  • UMPC Ultra-mobile Personal Computer
  • PDA personal digital assistants
  • FIG. 2 is a schematic structural diagram of the terminal 101.
  • the terminal 101 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, Mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, display 294, and user Identification module (subscriber identification module, SIM) card interface 295, etc.
  • a processor 210 an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, Mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, sensor module 280, button 290, motor 291, indicator 292, camera
  • the sensor module 280 may include a pressure sensor 280A, a gyro sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and ambient light Sensor 280L, bone conduction sensor 280M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 101.
  • the terminal 101 may include more or fewer components than shown, or combine some components, or split some components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units.
  • the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor GPU
  • image signal processor image, signal processor, ISP
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices or integrated in one or more processors.
  • the controller may be a nerve center and a command center of the terminal 101.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
  • the processor 210 may further include a memory for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory may store instructions or data that the processor 210 has just used or used cyclically.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
  • I2C integrated circuit
  • I2S integrated circuit
  • PCM pulse code modulation
  • UART universal asynchronous transceiver receiver / transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in the embodiments of the present application is only a schematic description, and does not constitute a limitation on the structure of the terminal 101.
  • the terminal 101 may also adopt different interface connection modes or a combination of multiple interface connection modes in the foregoing embodiments.
  • the charging management module 240 is configured to receive a charging input from a charger. While charging the battery 242, the charging management module 240 can also supply power to the terminal through the power management module 241.
  • the power management module 241 is used to connect the battery 242, the charge management module 240 and the processor 210.
  • the power management module 241 receives the input from the battery 242 and / or the charge management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260.
  • the power management module 241 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 241 may also be disposed in the processor 210.
  • the power management module 241 and the charge management module 240 may be provided in the same device.
  • the wireless communication function of the terminal 101 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, and a baseband processor.
  • the antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals.
  • the antenna 1 and the antenna 2 may be used to send a character string input by a user and an identifier (or an application identifier) of a type corresponding to the character string, and receive at least one candidate word.
  • the mobile communication module 250 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on the terminal 101.
  • the mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 250 may receive the electromagnetic wave by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1.
  • at least a part of the functional modules of the mobile communication module 250 may be provided in the processor 210.
  • at least part of the functional modules of the mobile communication module 250 may be provided in the same device as at least part of the modules of the processor 210.
  • the modem processor may include a modulator and a demodulator.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 210 and provided in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide wireless LAN (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), global navigation satellite system applied to the terminal 101. (global navigation system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 260 may be one or more devices that integrate at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210.
  • the wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
  • the antenna 1 of the terminal 101 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the terminal 101 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Bertdou navigation navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal 101 implements a display function through a GPU, a display screen 294, and an application processor.
  • the GPU is a microprocessor for image processing and is connected to the display 294 and an application processor.
  • the processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos, and the like.
  • the display screen 294 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light-emitting diode).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLEDs flexible light-emitting diodes
  • the terminal 101 may include one or N display screens 294, where N is a positive integer greater than 1.
  • the display screen 294 may be used to display an interface of an application including an input box and an interface of an input method application, and may also be used to display candidate words on an interface of the input method application.
  • the terminal 101 can implement a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to achieve the expansion of the storage capacity of the terminal 201.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function.
  • the internal memory 221 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 210 executes various functional applications and data processing of the terminal 101 by executing instructions stored in the internal memory 221.
  • the internal memory 221 may include a program storage area and a data storage area.
  • the storage program area may store an operating system, at least one application required by a function (such as an input method application, a sound playback function, an image playback function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the terminal 201.
  • the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
  • the internal memory 221 may be used to store multiple thesauruses corresponding to the input method application, and the multiple thesauruses may be downloaded from the server to the internal memory 221 by the terminal 101.
  • the internal memory 221 may also be used to store a historical thesaurus, where the historical thesaurus includes a character string input by the user's history, a type identifier (or an application identifier) corresponding to the character string, and a candidate word selected by the user.
  • the terminal 201 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, and an application processor. Such as music playback, recording, etc.
  • the pressure sensor 280A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 280A may be disposed on the display screen 294.
  • the terminal 101 determines the intensity of the pressure according to the change in capacitance.
  • the terminal 101 detects the intensity of the touch operation according to the pressure sensor 280A.
  • the terminal 101 may also calculate a touched position based on a detection signal of the pressure sensor 280A.
  • touch operations acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
  • the gyro sensor 280B may be used to determine a movement posture of the terminal 101.
  • the gyro sensor 280B can also be used for navigation and somatosensory gaming scenes.
  • the air pressure sensor 280C is used to measure air pressure.
  • the magnetic sensor 280D includes a Hall sensor.
  • the acceleration sensor 280E can detect the magnitude of the acceleration of the terminal 101 in various directions (generally three axes).
  • Distance sensor 280F for measuring distance.
  • the terminal 101 can use the proximity light sensor 280G to detect that the user is holding the terminal 101 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 280G can also be used in holster mode, and the pocket mode automatically unlocks and locks the screen.
  • Ambient light sensor 280L is used to sense ambient light brightness. Ambient light sensor 280L can also be used to automatically adjust white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the terminal 101 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 280H is used to collect fingerprints. The terminal 101 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering calls, etc.
  • the temperature sensor 280J is used to detect the temperature.
  • the touch sensor 280K is also called “touch panel”.
  • the touch sensor 280K may be disposed on the display screen 294, and the touch screen is composed of the touch sensor 280K and the display screen 294, which is also called a "touch screen”.
  • the touch sensor 280K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • a visual output related to the touch operation may be provided through the display screen 294.
  • the touch sensor 280K may also be disposed on the surface of the terminal 101, which is different from the position where the display screen 294 is located.
  • the touch sensor 280K may be used to detect a user's touch operation on an input box included in the interface of the application, and pass the detected touch operation to the application processor to display the interface of the input method application .
  • the bone conduction sensor 280M can acquire vibration signals.
  • the bone conduction sensor 280M can also contact the human pulse and receive blood pressure beating signals.
  • the keys 290 include a start key, a volume key, and the like.
  • the key 290 may be a mechanical key. It can also be a touch button.
  • the terminal 101 can receive key inputs and generate key signal inputs related to user settings and function control of the terminal 101.
  • the motor 291 can generate a vibration alert.
  • the motor 291 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 295 is used to connect a SIM card.
  • the SIM card can be inserted and removed from the SIM card interface 295 to achieve contact and separation with the terminal 101.
  • the terminal 101 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
  • the terminal 101 interacts with the network through a SIM card to implement functions such as calling and data communication.
  • the software system of the terminal 101 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system with a layered architecture as an example, and exemplifies the software structure of the terminal 101.
  • FIG. 3 is a software structure block diagram of the terminal 101 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
  • the application layer can include a series of application packages.
  • the application package may include applications such as an input method application, SMS, Facebook, QQ, map, gallery, calendar, WLAN, Twitter, music player, Amazon, and the like.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications at the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and so on.
  • the content provider may store a historical thesaurus of the input method application, and the historical thesaurus may be accessed by the input method application.
  • the content provider may also store a plurality of thesaurus of the input method application downloaded by the terminal 101 from the server.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can consist of one or more views.
  • the display interface including the input box may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide a communication function of the terminal 101. For example, management of call status (including connection, hang up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
  • surface manager media manager
  • media library Media library
  • Three-dimensional graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • the 2D graphics engine is a graphics engine for 2D graphics.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the technical solutions involved in the following embodiments can be implemented in the terminal 101 (for example, a mobile phone) having the foregoing hardware architecture and software architecture.
  • the method for searching for candidate words of the Chinese input method provided in the embodiments of the present application will be described in detail below with reference to the drawings and application scenarios.
  • FIG. 4 is a schematic flowchart of a method for searching for a candidate word of a Chinese input method according to an embodiment of the present application. As shown in FIG. 4, the method may include: S401-S409.
  • S401 The display screen of the terminal displays an interface of the first application, and the interface of the first application includes an input box.
  • the touch sensor of the terminal receives an operation of the user to select the input box.
  • the display screen of the terminal displays an interface of an input method application.
  • the touch sensor of the terminal receives an operation of the user on the interface of the input method application, and the processor of the terminal determines that the user inputs the first character string "gangbi" according to the operation.
  • the first application may be an application having an input box in the terminal, which may be a system application, such as a short message, a calendar, or the like, or a third-party application, such as Facebook, Amazon, or a music player.
  • the first string can be a sequence of letters or numbers.
  • the user has entered the first string in the interface of the input method application.
  • the input method application can match the Chinese character corresponding to the first string in the thesaurus of the input method application. word.
  • the display screen of the terminal displays an Amazon interface, which includes an input box 501.
  • the user may perform a click operation on the input box 501.
  • the processor of the terminal may call an input method application in the terminal, as shown in FIG. 5 (b), and display an interface 502 of the input method application on a display screen.
  • the interface 502 is an input interface with a 26-key monogram key.
  • the user may input a first character string "gangbi" on the interface 502 of the input method.
  • the interface of the input method application is illustrated by using an input interface with 26-key alphabetic combination keys as an example.
  • the interface of the input method application may also be an input interface with 9-key numeric combination keys.
  • the user You can also enter strings in this interface, such as "426424".
  • the processor of the terminal determines a first type corresponding to the first character string.
  • the processor of the terminal may use a classification algorithm to classify the first character string input by the user in the interface of the input method application to determine a possible usage scenario of the first character string.
  • the processor of the terminal may use a classification algorithm to determine a first type corresponding to the first character string, and the first type is used to characterize a possible usage scenario of the first character string.
  • the classification algorithm may be a K-Nearest Neighbors (KNN) algorithm. The basic idea is: if one data is the most similar to the K sample data of the N sample data, Most sample data corresponds to a certain type, then the type corresponding to the data is also that type.
  • the above S405 may include the following S601-S604.
  • the processor of the terminal obtains the time when the user enters the first character string and the identifier of the first application, and the wireless communication module of the terminal obtains the place when the user enters the first character string.
  • the identification of the first application may be a package name or an application name.
  • the processor of the terminal may obtain the time when the user enters the first character string "gangbi” and the identifier of the first application.
  • the wireless communication module can provide a GNSS (such as GPS) solution, and the location of the user when the first character string "gangbi" is entered can be obtained through the GNSS solution.
  • the time, place, and the identifier of the first application may be referred to as a user portrait, which can reflect more information about the user.
  • the processor of the terminal can predict a possible use scenario of the first character string “gangbi” according to these user portraits, that is, determine the first type.
  • the obtained time includes “hour”, and the time format is a 24-hour clock, and the application identifier is an application name, as shown in Table 5.
  • the user input obtained by the processor of the terminal is shown in Table 5.
  • the time when the first character string "gangbi" is "21" and the application name "Amazon”, and the location obtained when the user obtained the wireless communication module of the terminal enters the first character string "gangbi" is "home”.
  • the processor of the terminal determines a similarity measure of the first data and each of the N sample data.
  • the first data may include a first character string, a time and a place when the user inputs the first character string, and an identifier of the first application.
  • the first data may be shown in Table 6.
  • the sample data included in the N sample data may be the above-mentioned first sample data.
  • the sample data includes the second character string and the time and place when the user enters the second character string in the second application and the second application.
  • logo the second character string and the time and place when the user enters the second character string in the second application and the second application.
  • some of the sample data may be predefined initialization data, which may be stored in the memory of the terminal, for example, it is configured in the memory of the terminal when the terminal leaves the factory, and for example, when downloading an input method application When arriving at the terminal, the initialization data is downloaded and stored in the memory of the terminal, and for example, it is downloaded by the server and stored in the memory of the terminal before executing the above S602.
  • sample data may be historical data recorded by the terminal when a user uses an input method application to input a character string in different applications over a period of time.
  • the time and place included therein may be some preset values, such as time 0 and place are null.
  • the N sample data includes only predefined initialization data. After the user has used it for a period of time, the terminal may delete the initialization data stored in the memory, or not use the initialization data stored in the memory as sample data, and use the historical data recorded during the use as sample data.
  • sample data 1 is predefined initialization data
  • sample data 2-sample data 5 are historical data recorded by the terminal.
  • the types corresponding to the character strings included in each of the sample data 1 to sample data 5 are known, as shown in Table 8.
  • the type corresponding to the character string “maobi” is predefined.
  • the types of the strings “shuicaibi”, “shinian”, “saodijiqiren”, and “haizeiwang” are determined by the terminal executing S601-S604.
  • the processor of the terminal may determine a similarity measure between the first data and each of the five sample data.
  • the processor of the terminal may separately calculate the Euclidean distance or Manhattan of the first data and each of the five sample data. Distance to obtain a similarity measure between the first data and each of the five sample data, that is, to obtain five similarity measures.
  • the processor of the terminal may first perform integer encoding on the character string, time, place, and application name included in the first data and the sample data. Then, the processor of the terminal performs normalization processing on the integer-encoded data. Finally, the processor of the terminal calculates the Euclidean distance or Manhattan distance between the first data after normalization and each of the five sample data to obtain the first data and each of the five sample data. Similarity measure.
  • Sample data 1 (13,1,15,2,9) 0 0 1 Sample data 2 (19,8,21,9,3,1,9,2,9) twenty one 1 2 Sample data 3 (24,9,1,15,17,9,14,7,7,5) 9 1 3 Sample data 4 (19,1,15,4,9,10,9,17,9,18,5,14) twenty one 1 4 Sample data 5 (8,1,9,26,5,9,23,1,14,7) 13 2 5
  • the results of normalizing the sample data 1, sample data 2, sample data 3, sample data 4, and sample data 5 after integer coding are shown in Table 12. Normalizing the data can avoid too large differences in the data range between different dimensions (such as time and place) when calculating similarity measures between data.
  • the time data range is 0-21.
  • the time range is 0-2, which causes the dimensions of the smaller data range to be ignored, ensuring the accuracy of the calculated similarity measure.
  • the processor of the terminal can calculate the Euclidean distance between the first data after normalization processing and each of the five sample data to obtain 5 Euclidean distances.
  • the Euclidean distance between the calculated first data and sample data 1 is 1.09
  • the Euclidean distance between the calculated first data and sample data 2 is 1.63
  • the calculated Euclidean distance between the first data and sample data 3 is 2.14.
  • the Euclidean distance between the calculated first data and the sample data 4 is 1.69
  • the Euclidean distance between the calculated first data and the sample data 5 is 1.94.
  • the processor of the terminal selects K sample data from the N sample data according to the determined N similarity metrics.
  • K is predefined and may be an integer greater than or equal to 1 and less than or equal to N.
  • the processor of the terminal may determine, based on the similarity measure between the determined first data and each of the N sample data, that is, the N similarity measures, from the N sample data, the K and the first data are most similar to each other. Similar sample data. For example, in combination with the example in S602 above, assuming K is 3, according to the Euclidean distance between the first data and each of the five sample data, it can be known that the three sample data most similar to the first data are: sample data 1 , Sample data 2 and sample data 4. That is, the three sample data selected by the processor of the terminal from the five sample data are: sample data 1, sample data 2, and sample data 4.
  • the processor of the terminal determines the first type according to the types corresponding to the K second character strings.
  • the K second character strings are the second character strings included in the K sample data selected in S603. Specifically, when K is equal to 1, the processor of the terminal uses the type corresponding to the one second character string as the first type. For example, the processor of the terminal selects a sample data, the sample data includes a character string A, and the type corresponding to the character string A is type 1, then the processor of the terminal determines that the type 1 is the first type.
  • the first type corresponding to the first string "gangbi" is also that type, that is, the terminal
  • the processor uses the type corresponding to the majority of the K second character strings as the first type. For example, K is equal to 3, and the processor of the terminal selects three sample data, and the second character strings included in the three sample data are character string A, character string B, and character string D, respectively. Wherein, the types corresponding to the character strings A and B are both type 1, and the type corresponding to the character string D is type 2. Then, the processor of the terminal regards type 1 as the first type.
  • the terminal processor changes these differences Any one of the types is used as the first type, or these types are used as the first type.
  • K is equal to 2
  • the processor of the terminal selects two sample data, and the second character string included in the two sample data is a character string A and a character string D, respectively.
  • the type corresponding to character string A is type 1
  • the type corresponding to character string D is type 2.
  • the processor of the terminal may use type 1 as the first type, or both type 1 and type 2 as the first type.
  • sample data 1 The string is "maobi", the type corresponding to the string “maobi” is shopping, the string included in sample data 2 is “shuicaibi", the type corresponding to "shuicaibi” is shopping, and the string included in sample data 4 is "saodijiqiren” ", The corresponding type of" saodijiqiren "is shopping.
  • most of the types corresponding to the three strings are shopping classes (three in the example here are all shopping classes). Therefore, the type corresponding to the first string "gangbi” is also determined to be a shopping class.
  • the first character string, the time and place when the user enters the first character string, and the identifier of the first application, and the first type is correspondingly stored in the terminal. It is used in the memory as sample data for subsequent determination of types corresponding to other character strings.
  • the first data includes the first character string, the time and place when the first character string is input, and the identifier of the first application.
  • the sample data includes the second character string, and the second character is input.
  • the time, place, and identifier of the second application are used as examples to explain how to determine the first type corresponding to the first character string, but the embodiment of the present application is not limited thereto.
  • the first data may include a first character string, and any one or two of the following parameters: the time and place when the first character string is input, and the identifier of the first application
  • the sample data may include a second character string, and any of the following One or two parameters: the time and place when the second character string is input, and the identifier of the second application
  • the parameters included in the first data correspond to the parameters included in the sample data.
  • the first data includes the first character string and the time and place when the first character string is inputted, and correspondingly, the sample data includes the second character string and the time and place when the second character string is input.
  • the processor of the terminal may use a classification algorithm to determine an application corresponding to the first character string, and use the type of the application as the first type.
  • the specific implementation is similar to the implementation of the above S601-S604. The difference is that (1), the time and place when the terminal obtains the user input string is used as the user portrait, that is, the application corresponding to the predicted string. For example, the terminal obtains the time and place when the first character string “gangbi” is input, and uses the time and place when the user enters the second character string to determine a second application corresponding to the first character string “gangbi”.
  • the second application is not necessarily the first application that provides an input box for entering the first character string.
  • the sample data may be the above-mentioned second sample data, such as the sample data includes the second character string, the time and place when the second character string is input
  • known Is the application corresponding to the second character string included in the sample data For example, the second string included in the sample data is "maobi", and its corresponding application is known, such as Amazon, instead of the type "shopping class".
  • the correspondence between part of the second character string and the application may be predefined, and the correspondence between the other part of the second character string and the application may be determined by the terminal according to the classification algorithm.
  • the processor of the terminal may use a classification algorithm to determine an application corresponding to the first character string "gangbi".
  • the processor of the terminal may Applications corresponding to two second character strings (the K second character strings are selected second character strings included in the sample data), and a second application corresponding to the first character string is determined.
  • the processor of the terminal determines the application corresponding to the one second character string as the second application.
  • K is greater than 1 if most of the K second strings correspond to an application, the processor of the terminal determines that the application is the second application, that is, the processor of the terminal changes K The application corresponding to the majority of the second string is the second application.
  • the processor of the terminal may determine these Any one of the different applications is the second application, or the processor of the terminal uses these applications as the second application.
  • the processor of the terminal may also directly determine that the first application is an application corresponding to the first character string. After determining the second application corresponding to the first character string, the processor of the terminal may determine the type of the second application as the first type.
  • the second application corresponding to the first character string After determining the second application corresponding to the first character string, the first character string, the time and place when the user enters the first character string, and the identifier of the second application may be correspondingly stored in the memory of the terminal, Use as sample data for subsequent determination of applications corresponding to other strings.
  • the correspondence between the application and the type may be obtained by the terminal from the server and stored in the memory of the terminal. A correspondence relationship between applications and types is stored in the server in advance.
  • the terminal may also send the determined identifier of the second application corresponding to the first character string "gangbi" to the server, and the server may determine the second application according to the correspondence between the application and the type stored in the server.
  • the type is the first type.
  • the operation of determining the first type may also be performed by the server, that is, S602-S604 described above are performed by the processor of the server.
  • the time and place when the user inputs the first character string in the first data and the identifier of the first application, and the time and place when the user enters the second character string in the sample data and the identifier of the second application may be obtained by the terminal.
  • the server processor may also determine the application corresponding to the first character string, and determine the type of the application as the first type.
  • the above example is a determination process of the first type (or the second application corresponding to the first character string) introduced by using the KNN algorithm as an example.
  • other classification algorithms may also be used to determine the first type corresponding to the first character string (or the second application corresponding to the first character string), and the determined type corresponding to the first character string It can be one or more.
  • a search may be performed in a historical word library stored in the memory of the terminal to check whether there is a Chinese word matching the first character string and the first type. If the terminal searches for a Chinese character word that matches the first character string and the first type in the historical thesaurus, that is, a candidate word is obtained, the candidate is displayed on the display screen in the interface of the input method application word. If the terminal does not search for a candidate word that matches the first character string and the first type in the historical thesaurus, the following S406-S409 are performed.
  • the terminal obtains a candidate word corresponding to the first character string.
  • the candidate words are searched from the thesaurus corresponding to the first type, and the Chinese words match the first character string.
  • a candidate word search may be performed from the thesaurus corresponding to the type 1. If the type corresponding to the character string 2 input by the user is type 2, then a candidate word search can be performed from the thesaurus corresponding to the type 2.
  • the thesaurus corresponding to type 1 and thesaurus corresponding to type 2 are thesaurus that can be retrieved by the input method application.
  • Thesaurus corresponding to type 1 is different from thesaurus corresponding to type 2. For example, if the type corresponding to the character string entered by the user is a shopping category, a candidate word search may be performed from a thesaurus corresponding to the shopping category.
  • a candidate word search may be performed from a thesaurus corresponding to the video class.
  • a candidate word may be searched from a generalized thesaurus, and the generalized thesaurus may include some hot words, new words, and the like.
  • the candidate words corresponding to the first character string obtained by the terminal are "pen” and "steel coin”.
  • the touch sensor of the terminal receives a user's selection operation on the candidate word “pen”.
  • the terminal may also associate the candidate word selected by the user with the first character string and the first type and store the historical word in the memory of the terminal. In this way, when the user subsequently inputs the same character string, the terminal may select The corresponding candidate words are quickly searched in the thesaurus and displayed to the user.
  • the search method of candidate words is described by taking the user inputting the complete pinyin "gangbi" corresponding to "pen” as an example.
  • the terminal starts to perform candidate word selection based on the currently input character string. Search, and every time the user adds a character, the candidate word is searched again based on the character string after the character is added. For example, when the terminal receives the character string "gan” input by the user, it searches for a candidate word corresponding to the character string "gan” and displays it in the interface of the input method application. If the user does not find the desired Chinese word in the displayed candidate words, he can continue to enter the character "g". The terminal may search for a candidate word corresponding to the character string “gang” again and display it until a user operation of selecting a candidate word is received.
  • the candidate word corresponding to the first character string may be searched by the server and sent to the terminal.
  • the above S406 may include the following S801-S804.
  • the mobile communication module of the terminal sends a first character string and a first type identifier to the server through the antenna 1.
  • the identification of the first type may be a type name (such as a shopping class), or may be an identification (ID) of the type.
  • the ID of the type can be predefined.
  • the server can verify the first character string according to the defined filtering rules, for example, it can verify whether the length of the first character string is less than the defined length threshold. . If the check fails, the server can return a default value, such as a space, to the terminal. If the check is passed, the server may search in the historical thesaurus stored in the memory of the server to check whether there are Chinese words matching the first character string and the first type.
  • the server searches for a candidate word that matches the first character string and the first type in the historical thesaurus, the searched candidate word may be returned to the terminal so that the terminal displays the received word in the interface of the input method application.
  • the server does not search for a candidate word that matches the first character string and the first type in the historical lexicon, the following S802-S804 is performed.
  • the processor of the server determines a thesaurus corresponding to the first type from a plurality of thesaurus stored in the memory of the server.
  • the memory of the server stores m thesauruses that can be retrieved by the input method application, which are thesaurus 1, thesaurus 2, ..., and thesaurus m, respectively.
  • Each lexicon has a unique ID, for example, the identification of the lexicon 1 is ID 1, the identification of the lexicon 2 is ID 2, ..., and the identification of the lexicon m is ID m.
  • the memory of the server stores a mapping table between the thesaurus identifier and the type identifier, as shown in Table 13.
  • the identifier of the vocabulary corresponding to the identifier of type 1 is ID 1
  • the identifier of the corresponding vocabulary corresponding to the identifier of type 2 is ID 2
  • the vocabulary corresponding to the identifier of type m is Identified as ID.
  • the processor of the server can determine the thesaurus corresponding to the first type according to the received first type identifier and combining Table 13.
  • the type 1 may be music
  • the type 2 may be shopping
  • the type m may be video.
  • the Chinese words included in the vocabulary 1 identified by ID1 are all related to music, such as song names
  • the Chinese words included in the vocabulary 2 identified by ID2 are related to shopping, such as item names
  • ID The Chinese words included in the identified thesaurus m are all related to videos, such as video files or movie names.
  • the first type corresponding to the first character string "gangbi" is a shopping category.
  • the processor of the server searches a thesaurus corresponding to the first type to obtain P candidate words.
  • the processor of the server may search the Chinese dictionary corresponding to the first type for 5 Chinese words with higher priority (such as word frequency) matching the first character string, and the 5 Chinese words are the same as the first character.
  • Candidate corresponding to the string For example, in conjunction with the example in S802 above, the first type corresponding to the first character string "gangbi" is a shopping category, then the server may search the thesaurus 2 identified by ID 2 for the first character string "gangbi" Candidate.
  • the server may further store the obtained P candidate words in association with the first character string and the first type identifier in the history word bank of the server's memory, so that when the user subsequently inputs the same character string, the server can The corresponding candidate words are quickly searched from the historical thesaurus and returned to the terminal.
  • S804 The processor of the server sends P candidate words to the terminal through the communication interface.
  • the server may use the Hypertext Transfer Protocol (Secure HTTPS) to encrypt the above P candidate words, and send the encrypted candidate words to the terminal to ensure user information security.
  • Secure HTTPS Hypertext Transfer Protocol
  • the server may send R candidate words to the terminal.
  • the candidate word corresponding to the first character string may be searched by a terminal.
  • the above S406 may include the following S901-S902.
  • the processor of the terminal determines a thesaurus corresponding to the first type from a plurality of thesaurus stored in the memory of the terminal.
  • the processor of the terminal may download the plurality of thesauruses and a correspondence table of thesaurus and types from the server in advance and store them in the memory.
  • the processor of the terminal searches a thesaurus corresponding to the first type to obtain P candidate words.
  • the server searches for a candidate word corresponding to the first character string as an example.
  • the server may simultaneously search for candidate words in a thesaurus corresponding to the first type and a thesaurus corresponding to the type of the first application.
  • the server may first search for a candidate word in a thesaurus corresponding to the type of the first application. If no candidate word is found in the thesaurus corresponding to the type of the first application, the server searches for the word in the first type. Search for candidate words in the library.
  • the processor of the server may generate multiple word libraries in advance and store them in the memory of the server, and store multiple types, corresponding relationships between types and thesaurus in the memory of the server. For example, after acquiring the instruction, the processor of the server may obtain a Chinese word corresponding to a certain type in response to the instruction, so as to generate a thesaurus corresponding to the type.
  • This instruction can be triggered manually by the administrator of the server, or it can be triggered automatically when a preset timing time arrives.
  • An instruction can be used to instruct to obtain a Chinese word corresponding to a type.
  • the instruction 1 is used to instruct the server to obtain the lexicon corresponding to type 1
  • the instruction 2 is used to instruct the server to obtain the lexicon corresponding to type 2, ...
  • the instruction m is used to instruct the server to obtain the lexicon corresponding to type m.
  • the server processor can obtain the Chinese word corresponding to type 1, thereby generating thesaurus 1 corresponding to type 1
  • the server processor can obtain the Chinese word corresponding to type 2
  • a vocabulary 2, corresponding to type 2 is generated, and in response to the instruction m, the processor of the server can obtain Chinese words corresponding to type m, thereby generating a vocabulary m corresponding to type m.
  • a command is taken as an example to explain the process of the server generating the corresponding thesaurus. As shown in FIG. 10, the following S1001-S1004 may be included.
  • the processor of the server obtains an instruction, and the instruction may be used to instruct the server to obtain a thesaurus corresponding to type 1 (such as shopping).
  • the processor of the server obtains 100 Chinese words and a frequency of words corresponding to each of the 100 Chinese words.
  • the 100 Chinese words correspond to type 1.
  • the above instruction is used to instruct the server to obtain the Chinese words corresponding to the shopping category, and then the server's processor may, in response to the instruction, obtain the shopping such as Amazon and Macy's according to the correspondence between the type stored in the server and the application.
  • the Hypertext Markup Language (HTML) web page source code of the web page content includes the content in the web page, such as various tags of Chinese words.
  • the labels include: a label used to indicate a type of a Chinese word included in a webpage, and a label used to indicate a word frequency of the Chinese word. Based on these tags, the server can grab Chinese characters corresponding to the shopping category, such as pens, cleaning robots, vacuum cleaners, shirts, and the frequency of each Chinese character word from the web page content.
  • the processor of the server parses and obtains a character string corresponding to each of the 100 Chinese words obtained.
  • the server can parse out the Chinese character string corresponding to each of the 100 Chinese words obtained in S1002, such as Chinese pinyin.
  • the character string “gangbi” corresponding to a pen the character string “saodijiqiren” corresponding to a cleaning robot, the character string “xichenqi” corresponding to a vacuum cleaner, the character string “chenshan” corresponding to a shirt, and the like.
  • the server generates thesaurus 1 corresponding to type 1.
  • the vocabulary 1 corresponding to type 1 includes 100 Chinese words, and the frequency and character string corresponding to each of the 100 Chinese words.
  • the generated thesaurus may be in accordance with the "Chinese character word frequency string".
  • This correspondence is stored in the memory of the server, and the type, and the correspondence between the thesaurus and the type is also stored in the memory of the server.
  • the thesaurus 1 stored in the memory of the server includes: pen gangbi 1233555; cleaning robot saodijiqiren 255500; vacuum cleaner xichenqi 52200; shirt chenshan 25800 and other data.
  • the correspondence between thesaurus 1 and type 1 is also stored.
  • the server may also filter out the sensitive words (such as Chinese words of violence, public opinion, etc.) after obtaining the above 100 Chinese words, such as the remaining 90 Chinese words after filtering out the sensitive words
  • the server's processor can parse the 90 Chinese words and generate the corresponding thesaurus.
  • a terminal may use a classification algorithm to determine a type corresponding to the character string, and obtain the type according to the type.
  • the candidate words corresponding to the character string are displayed for the user to select. Since the candidate word corresponding to the string is searched from the thesaurus corresponding to the type, and the type is a type that can reflect the possible use scenarios of the user input string, that is, the type can reflect the user input intention Therefore, the searched candidate words can better meet the needs of users, which improves the accuracy of the searched candidate words and improves the input efficiency.
  • the user portrait when the current character string is input and the user portrait when the historical character string is input are used to determine the type corresponding to the currently input character string, so that the thesaurus for searching for candidate words matches the user input intention more, and further improves The accuracy of the searched candidate words.
  • FIG. 11 is a flowchart of another method for searching for candidate words of a Chinese input method according to an embodiment of the present application. As shown in FIG. 11, the method may include: S1101-S1109.
  • S1101-S1104 are respectively the same as S401-S404 in the above embodiment, that is, the terminal receives the first character string input by the user using the input method application in the input box of the first application. The detailed description is not repeated here.
  • S1105 The processor of the terminal determines a second application corresponding to the first character string.
  • the processor of the terminal may use a classification algorithm to compare the first character string input by the user in the input method application interface with the stored N second character strings, and determine the first character string according to the time and place of the character string input. The most similar character string, and the application corresponding to the most similar character string is used as the second application corresponding to the first character string.
  • the second application determined by the processor of the terminal may be the same as the foregoing first application, or may be different from the foregoing first application.
  • the above S1105 may include the following S1201-S1204.
  • the processor of the terminal obtains the time when the user enters the first character string, and the wireless communication module of the terminal obtains the place when the user enters the first character string.
  • the processor of the terminal determines a similarity measure of the first data and each of the N sample data.
  • the first data may include the first character string and the time and place when the user enters the first character string.
  • the sample data included in the N sample data may be the second sample data described above.
  • the sample data includes the second character string and The time and place when the user entered the second string.
  • some of the sample data may be predefined initialization data, and the corresponding application of the second string included in these sample data is also predefined. Another part of the sample data may be applied by the user using the input method in a period of time. Historical data recorded by the terminal when the second character string is input in different applications.
  • the application corresponding to the second character string included in the sample data may be determined by the terminal executing S1201-S1204.
  • the processor of the terminal selects K sample data from the N sample data according to the determined N similarity metrics.
  • K sample data is most similar to the first data, K is predefined, K is an integer greater than or equal to 1, and less than or equal to N;
  • S1204 The processor of the terminal determines the second application according to the applications corresponding to the K second character strings.
  • the K second character strings are the second character strings included in the K sample data selected in S1203.
  • the processor of the terminal may use the application corresponding to the 1 second character string as the second application.
  • the processor of the terminal may use the application corresponding to the majority of the K second character strings as the second application.
  • the processor of the terminal may convert these Any one of the different applications is used as the second application, or these applications are used as the second application.
  • the foregoing S1201-S1204 may also be executed by a server.
  • the time and place when the user enters the first character string in the first data, and the time and place when the user enters the second character string in the sample data may be received by the server from the terminal side.
  • the application corresponding to the first character string may be determined to be one or multiple.
  • a search may be performed in a historical thesaurus stored in the memory of the terminal to check whether a Chinese word matching the first character string and the second application exists. If the terminal searches for a Chinese word matching the first character string and the second application in the historical word database, that is, a candidate word is obtained, the candidate word is displayed in the interface of the input method application displayed on the display screen . If the terminal does not search for a candidate word matching the first character string and the second application in the historical thesaurus, the following S1106-S1109 is performed.
  • the terminal obtains a candidate word corresponding to the first character string.
  • the candidate word is a Chinese word that is searched from a thesaurus corresponding to the second application and matches the first character string.
  • the candidate word corresponding to the first character string may be searched by the server and sent to the terminal.
  • the mobile communication module of the terminal may send the first character string and the identifier of the second application to the server through the antenna 1.
  • the server may perform a search in the historical thesaurus stored in the server's memory according to the first character string and the identification of the second application to see if there is any Chinese characters that match the first string and the second application. If the server searches for a candidate word matching the first character string and the second application in the historical thesaurus, the searched candidate word may be returned to the terminal, so that the terminal displays and receives in the interface of the input method application To the candidate. If the server does not search for a candidate word matching the first character string and the second application in the historical thesaurus, the processor of the server may determine the correspondence of the second application from a plurality of thesaurus stored in the memory of the server Thesaurus.
  • the memory of the server stores m thesauruses that can be retrieved by the input method application, which are thesaurus 1, thesaurus 2, ..., and thesaurus m, respectively.
  • Each thesaurus has a unique ID, for example, thesaurus 1 is identified by ID 1, thesaurus 2 is identified by ID 2, ..., and thesaurus m is identified by ID m.
  • the memory of the server stores a mapping table between the identity of the thesaurus and the identity of the application, as shown in Table 14.
  • the processor of the server can determine the vocabulary corresponding to the second application according to the received identifier of the second application in combination with Table 14.
  • the server searches a thesaurus corresponding to the second application to obtain candidate words corresponding to the first character string, and sends the candidate words to the terminal.
  • the server may further store the obtained candidate word corresponding to the first character string in association with the first character string and the identifier of the second application in a history vocabulary of the server memory. In this way, the same character is subsequently input by the user
  • the cross-link server can quickly search for corresponding candidate words from the historical thesaurus and return them to the terminal.
  • the candidate word corresponding to the first character string may be searched by a terminal. That is, the processor of the terminal determines a thesaurus corresponding to the second application from a plurality of thesaurus stored in the terminal memory. The terminal may download the plurality of thesauruses and a correspondence table between thesaurus and an application identifier from a server in advance and store them in a memory of the terminal. The processor of the terminal searches a thesaurus corresponding to the second application to obtain a candidate word corresponding to the first character string.
  • the server searches for a candidate word corresponding to the first character string as an example.
  • the server may search candidate words in the thesaurus corresponding to the first application and the thesaurus corresponding to the second application at the same time.
  • the server may first search for a candidate word in the thesaurus corresponding to the first application. If no candidate word is found in the thesaurus corresponding to the first application, the server may perform a candidate in the thesaurus corresponding to the second application Word search.
  • the processor of the server may generate multiple thesauruses in advance and store them in the memory of the server, and store the identifications of multiple applications, and the correspondence between thesaurus and the identifications of the applications in the memory of the server.
  • the specific generation process is similar to the process of S1001-S1004 in the above embodiment, with the difference that an instruction can be used to instruct obtaining Chinese characters corresponding to one or more applications.
  • the server generates a thesaurus corresponding to the application.
  • S1107-S1109 are the same as S407-S409 in the above embodiment, and detailed descriptions are not repeated here.
  • a terminal may use a classification algorithm to determine an application corresponding to the character string, and obtain the application according to the application.
  • the candidate words corresponding to the character string are displayed for the user to select. Since the candidate word corresponding to the character string is searched from the thesaurus corresponding to the application, and the application is the application corresponding to the character string most similar to the character string, which can reflect the user's input intention, so the search results
  • the candidate words can better meet the needs of users, improve the accuracy of the searched candidate words, and improve the input efficiency.
  • the user portrait when the current character string is input and the user portrait when the historical character string is input are used to determine the application corresponding to the currently input character string, so that the thesaurus for searching for candidate words matches the user input intention more, and further improves The accuracy of the searched candidate words.
  • the foregoing terminal and server include a hardware structure and / or a software module corresponding to performing each function.
  • this embodiment can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this embodiment.
  • the embodiments of the present application further provide a terminal and a server that implement the foregoing method embodiments.
  • the terminal and the server may be divided into functional modules, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules. It should be noted that the division of the modules in this embodiment is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
  • FIG. 13 shows a possible structural diagram of a terminal involved in the foregoing embodiment.
  • the terminal 1300 may include a display unit 1301, an input unit 1302, and a processing unit. 1303.
  • the display unit 1301 is configured to support the terminal to execute S401, S403, S407, S409, S1101, S1103, S1107, S1109, and / or other processes used in the techniques described herein.
  • the input unit 1302 is configured to receive a user's input on the display interface of the terminal, such as a touch input, a gesture input, a hover operation, etc.
  • the input unit 1302 may be used to support the terminal to receive the input in S402 and S404 in the above method embodiment.
  • the operation of the interface of the method application, S408, S1102, S1104 receives the operation of the interface of the input method application, S1108, and / or other processes for the technology described herein.
  • the processing unit 1303 is configured to support the terminal to perform the operation of determining the first character string in S404 in the foregoing method embodiment, and the operation of determining the first character string in S405, S406, S601, S602, S603, S604, S901, S902, and S1104. , S1105, S1106, S1201, S1202, S1203, S1204, and / or other processes for the techniques described herein.
  • the sending unit 1304 is configured to support the terminal to perform S801 in the foregoing method embodiment and / or other processes used in the technology described herein.
  • the receiving unit 1305 is configured to support the terminal to perform the operations of receiving candidate words in the foregoing method embodiments and / or other processes used in the technology described herein.
  • the terminal 1300 includes, but is not limited to, the above-mentioned unit modules.
  • the terminal 1300 may further include a storage unit for storing a historical thesaurus and a plurality of thesauruses that can be retrieved by an input method application.
  • the storage unit can also be used to store the correspondence between types and thesaurus, the correspondence between types and applications, and so on.
  • the specific functions that can be implemented by the above functional units also include but are not limited to the functions corresponding to the method steps described in the above examples. For detailed descriptions of other units of the terminal 1300, refer to the detailed descriptions of the corresponding method steps. This embodiment I will not repeat them here.
  • FIG. 14 shows a schematic diagram of a possible structure of the terminal 1400 involved in the foregoing embodiment.
  • the terminal 1400 may include a processing module 1401, a storage module 1402, and a display module 1403.
  • the processing module 1401 is configured to control and manage the actions of the terminal.
  • the display module 1403 is configured to perform content display according to an instruction of the processing module 1401.
  • the storage module 1402 is configured to store program codes and data of the terminal, such as a historical thesaurus of an input method application, a plurality of thesauruses that can be retrieved by the input method application, and a correspondence relationship between types and thesaurus.
  • the terminal 1400 may further include an input module and a communication module.
  • the communication module is configured to support communication between the terminal and other network entities, so as to implement functions such as terminal calls, data interaction, and Internet access.
  • the processing module 1401 may be a processor or a controller.
  • the communication module may be a transceiver, an RF circuit, or a communication interface.
  • the storage module 1402 may be a memory.
  • the display module may be a display screen.
  • the input module may be a touch screen, a voice input device, or a fingerprint sensor.
  • the terminal 1400 provided in this embodiment may be a terminal shown in FIG. 2.
  • the communication module may include not only an RF circuit, but also a Wi-Fi module, an NFC module, and a Bluetooth module. Communication modules such as RF circuits, NFC modules, Wi-Fi modules, and Bluetooth modules can be collectively referred to as communication interfaces.
  • the processor, the RF circuit, the display screen, and the memory may be coupled together through a bus.
  • FIG. 15 shows a possible structural diagram of a server involved in the foregoing embodiment.
  • the server 1500 may include a receiving unit 1501, a processing unit 1502, and a sending unit. 1503.
  • the receiving unit 1501 is configured to support the server to perform the operations of receiving the first character string and the first type in the foregoing method embodiment and / or other processes used in the technology described herein.
  • the processing unit 1502 is configured to support the server to perform S802, S803, S1001, S1002, S1003, S1004 / or other processes used in the techniques described herein.
  • the sending unit 1503 is configured to support the server to perform S804 in the foregoing method embodiment and / or other processes for the technology described herein.
  • the server 1500 includes, but is not limited to, the above-mentioned unit modules.
  • the server 1500 may further include a historical thesaurus for storing an input method application, a storage unit for a plurality of thesaurus that can be retrieved by the input method application, and the like.
  • the storage unit can also be used to store the correspondence between types and thesaurus, the correspondence between applications and types, and so on.
  • the functions that can be implemented by the above functional units also include, but are not limited to, the functions corresponding to the method steps described in the above examples. For detailed descriptions of other units of the server 1500, refer to the detailed descriptions of the corresponding method steps. This embodiment I will not repeat them here.
  • FIG. 16 shows a possible structural diagram of the server 1600 involved in the above embodiment.
  • the server 1600 may include a processing module 1601, a storage module 1602, and a communication module 1603.
  • the processing module 1601 is configured to control and manage the actions of the server.
  • the storage module 1602 is configured to store program code and data of the server, such as a historical thesaurus of an input method application, a plurality of thesauruses that can be retrieved by the input method application, and a correspondence relationship between a type and a thesaurus.
  • the communication module 1603 is used to support communication between the server and other network entities to implement functions such as data interaction.
  • the processing module 1601 may be a processor or a controller.
  • the communication module 1603 may be a transceiver, an RF circuit, or a communication interface.
  • the storage module 1602 may be a memory.
  • This embodiment also provides a computer-readable storage medium.
  • the computer-readable storage medium includes instructions. When the foregoing instructions are executed on a terminal, the terminal is caused to execute FIG. 4, FIG. 6, FIG. 8, FIG. 9, and FIG. 11 or FIG. 12 in the related method steps to implement the Chinese input method candidate word search method in the above embodiment.
  • This embodiment also provides a computer-readable storage medium.
  • the computer-readable storage medium includes instructions.
  • the server is caused to execute related operations in any of the drawings in FIG. 8 or FIG. 10. Method steps to implement the search method for Chinese input method candidate words in the above embodiment.
  • This embodiment also provides a computer program product containing instructions.
  • the terminal causes the terminal to execute any of the operations shown in FIG. 4, FIG. 6, FIG. 8, FIG. 9, FIG. 11, or FIG.
  • This embodiment also provides a computer program product containing instructions.
  • the server is caused to execute related method steps shown in any of the drawings in FIG. 8 or FIG. 10 to implement the foregoing. Search method of Chinese input method candidate words in the embodiment.
  • This embodiment also provides a search device, which has a function of realizing the behavior of the terminal in the above method.
  • This embodiment also provides a search device, which has a function of realizing the behavior of the server in the above method.
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the terminal, server, computer storage medium, computer program product, or system provided in this embodiment are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding methods provided above. The beneficial effects in the method are not repeated here.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division.
  • multiple units or components may be divided.
  • the combination can either be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • the functional units in the various embodiments of this embodiment may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium.
  • the instructions include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or part of the steps of the methods described in the embodiments.
  • the foregoing storage media include: flash media, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Abstract

L'invention concerne un procédé de recherche de mots candidats pour un procédé de saisie en chinois, un terminal et un serveur, se rapportant au domaine des terminaux. Le procédé améliore la précision des mots candidats trouvés, et améliore l'efficacité de saisie. Le procédé comprend les étapes suivantes : un terminal affiche une interface d'une première application comprenant une boîte de saisie, reçoit une opération par laquelle un utilisateur sélectionne la boîte de saisie, et affiche une interface d'une application de procédé de saisie en réponse à l'opération ; le terminal reçoit une première chaîne saisie par l'utilisateur dans l'interface de l'application de procédé de saisie, détermine un premier type correspondant à la première chaîne, envoie un identifiant du premier type et la première chaîne à un serveur, et reçoit au moins un mot candidat en provenance du serveur, le mot candidat étant un mot chinois qui est trouvé dans une bibliothèque de mots correspondant au premier type et est apparié à la première chaîne, une bibliothèque de mots qui correspond à l'application de procédé de saisie comprenant la bibliothèque de mots qui correspond au premier type et une bibliothèque de mots qui correspond à un second type, et la bibliothèque de mots qui correspond au premier type étant différente de la bibliothèque de mots qui correspond au second type ; et le terminal affiche au moins un mot candidat sur l'interface de l'application de procédé de saisie.
PCT/CN2018/103816 2018-09-03 2018-09-03 Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur WO2020047709A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/103816 WO2020047709A1 (fr) 2018-09-03 2018-09-03 Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur
CN201880090845.0A CN111868668B (zh) 2018-09-03 2018-09-03 一种中文输入法候选词的搜索方法、终端及服务器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103816 WO2020047709A1 (fr) 2018-09-03 2018-09-03 Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur

Publications (1)

Publication Number Publication Date
WO2020047709A1 true WO2020047709A1 (fr) 2020-03-12

Family

ID=69721541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103816 WO2020047709A1 (fr) 2018-09-03 2018-09-03 Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur

Country Status (2)

Country Link
CN (1) CN111868668B (fr)
WO (1) WO2020047709A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201056A (zh) * 2020-09-17 2022-03-18 北京搜狗科技发展有限公司 请求处理方法、装置和用于处理请求的装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637408A (zh) * 2020-12-16 2022-06-17 中国联合网络通信集团有限公司 在线更新输入法字序的方法、装置、设备及存储介质
CN112684911A (zh) * 2020-12-29 2021-04-20 上海臣星软件技术有限公司 信息显示方法、装置、设备及存储介质
CN112684915A (zh) * 2021-01-04 2021-04-20 上海臣星软件技术有限公司 候选词输出方法、装置、电子设备及计算机存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492036A2 (fr) * 2003-06-24 2004-12-29 Seiko Instruments Inc. Systeme d'interrogation de base de données
CN101645065A (zh) * 2008-08-05 2010-02-10 北京搜狗科技发展有限公司 确定需要加载的辅助词库的方法、装置及输入法系统
CN106933381A (zh) * 2017-03-16 2017-07-07 联想(北京)有限公司 一种信息处理方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492036A2 (fr) * 2003-06-24 2004-12-29 Seiko Instruments Inc. Systeme d'interrogation de base de données
CN101645065A (zh) * 2008-08-05 2010-02-10 北京搜狗科技发展有限公司 确定需要加载的辅助词库的方法、装置及输入法系统
CN106933381A (zh) * 2017-03-16 2017-07-07 联想(北京)有限公司 一种信息处理方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201056A (zh) * 2020-09-17 2022-03-18 北京搜狗科技发展有限公司 请求处理方法、装置和用于处理请求的装置

Also Published As

Publication number Publication date
CN111868668A (zh) 2020-10-30
CN111868668B (zh) 2024-06-18

Similar Documents

Publication Publication Date Title
KR102613774B1 (ko) 애플리케이션 관련 사용자 데이터를 추출하고 공유하기 위한 시스템 및 방법
JP5820023B2 (ja) モバイルコンピューティングデバイスを用いた複数のデータソースの検索
WO2020047709A1 (fr) Procédé de recherche de mots candidats pour procédé de saisie en chinois, terminal et serveur
KR102363703B1 (ko) 질의 처리 방법, 전자 장치 및 서버
KR102083209B1 (ko) 데이터 제공 방법 및 휴대 단말
US9241242B2 (en) Information recommendation method and apparatus
KR102178892B1 (ko) 정보 제공 방법 및 그 전자 장치
US20150128079A1 (en) Method for executing function in response to touch input and electronic device implementing the same
US20150213127A1 (en) Method for providing search result and electronic device using the same
KR20160021637A (ko) 컨텐츠 처리 방법 및 그 전자 장치
CN112130714B (zh) 可进行学习的关键词搜索方法和电子设备
WO2022100221A1 (fr) Procédé et appareil de traitement de récupération et support de stockage
JP7062059B2 (ja) 端末デバイスのためのアプリケーション処理方法、および端末デバイス
CN110168566A (zh) 一种识别截图文字的方法及终端
US10216404B2 (en) Method of securing image data and electronic device adapted to the same
US10540415B2 (en) Apparatus and method for managing history information in an electronic device
US20210405767A1 (en) Input Method Candidate Content Recommendation Method and Electronic Device
CN111316618A (zh) 一种网络页面保存方法及终端
CN111133430A (zh) 一种内容分享方法及装置
CN112740148A (zh) 一种向输入框中输入信息的方法及电子设备
CN105450849B (zh) 用于在电子设备中显示内容的偏好的装置和方法
KR20160004725A (ko) 연관 정보 제공 방법 및 이를 제공하는 전자 장치
US9426277B2 (en) Method and apparatus for operating message function in connection with note function
WO2022135199A1 (fr) Procédé de traitement d'informations, dispositif électronique et système
CN107066420A (zh) 搜索数据记录的电子设备和方法

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: 18932791

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: 18932791

Country of ref document: EP

Kind code of ref document: A1