CN112631437A - Information recommendation method and device and electronic equipment - Google Patents

Information recommendation method and device and electronic equipment Download PDF

Info

Publication number
CN112631437A
CN112631437A CN202011565318.6A CN202011565318A CN112631437A CN 112631437 A CN112631437 A CN 112631437A CN 202011565318 A CN202011565318 A CN 202011565318A CN 112631437 A CN112631437 A CN 112631437A
Authority
CN
China
Prior art keywords
input
user
word
interface
keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011565318.6A
Other languages
Chinese (zh)
Inventor
胡双威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011565318.6A priority Critical patent/CN112631437A/en
Publication of CN112631437A publication Critical patent/CN112631437A/en
Priority to PCT/CN2021/140476 priority patent/WO2022135474A1/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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)

Abstract

The application discloses an information recommendation method and device and electronic equipment, belongs to the technical field of communication, and can solve the problems of complicated steps and long time consumption in a text input process. The method comprises the following steps: receiving a first input of a user on a first interface; responding to the first input, matching candidate words from a word stock based on the character string corresponding to the first input and the first interface, and displaying the candidate words; and storing keywords and the mapping relation between the keywords and the first interface in the word bank. The method and the device are applied to a text input scene.

Description

Information recommendation method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an information recommendation method and device and electronic equipment.
Background
With the development of electronic technology, more and more scenes are available for a user to input characters on electronic equipment, and currently, when the user inputs a character string, the electronic equipment can recommend a candidate word corresponding to the character string, and the user selects a target candidate word from the candidate word.
In the related art, when recommending a candidate word to a user, an electronic device may read a candidate word corresponding to an input character string from a word stock to recommend the candidate word. However, since a large amount of words are usually stored in the word bank, each time the electronic device recommends a candidate word for the user, the electronic device needs to traverse the large amount of words stored in the entire word bank to determine a candidate word corresponding to the input character string, which results in low efficiency in recommending the candidate word for the user. Moreover, for the same character string input by the user, multiple matching items may exist in the word stock, and the electronic device may recommend the multiple matching items as candidate words at this time. Therefore, the accuracy of recommending the candidate words for the user is low, and the input efficiency of the user is affected.
Disclosure of Invention
The embodiment of the application aims to provide an information recommendation method, which can solve the problems of complicated steps and long time consumption in a text input process.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an information recommendation method, where the method includes: receiving a first input of a user on a first interface; responding to the first input, matching candidate words from a word stock based on the character string corresponding to the first input and the first interface, and displaying the candidate words; and storing keywords and the mapping relation between the keywords and the first interface in the word bank.
In a second aspect, an embodiment of the present application provides an information recommendation apparatus, including: the above-mentioned device includes: receiving module, processing module and display module, wherein: the receiving module is used for receiving a first input of a user on a first interface; the processing module is configured to, in response to the first input received by the receiving module, match a candidate word from a word stock based on a character string corresponding to the first input and the first interface; the display module is used for displaying the candidate words matched by the processing module from the word stock; and storing keywords and the mapping relation between the keywords and the first interface in the word bank.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product stored on a non-volatile storage medium, the program product being executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the electronic device stores the keyword and the mapping relation between the keyword and the first interface in the word bank, so that when a user inputs a character string on the first interface, a candidate word matched with the character string and the first interface can be determined from the word bank based on the character string and the first interface. Therefore, the electronic equipment can recommend the candidate words matched with the current input interface for the user, so that the candidate words which better meet the input requirements of the user on the current input interface can be recommended for the user, and the flexibility and the accuracy of recommending the candidate words for the user are improved.
Drawings
Fig. 1 is a flowchart of an information recommendation method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an information recommendation device according to an embodiment of the present application;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The information recommendation method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The information recommendation method provided by the embodiment of the application can be applied to a text input scene.
The embodiment of the application provides an information recommendation method, an information recommendation device and electronic equipment, and as a user usually uses various symbols to represent pause of text content and a tone to be expressed in the input text content (such as a complete sentence or word) with complete semantics. Therefore, the information recommendation device can perform text splitting on the text input by the user based on the target character and the first symbol in the text input by the user under the condition that the content displayed on the screen by the user comprises the first symbol, so that the target text containing the complete word which the user wants to input can be extracted from the text input by the user, and the complete word contained in the target text is stored in the word bank. So that the keyword can be recommended to the user as a candidate word in the case where the user inputs the keyword again.
Fig. 1 shows a flowchart of a display method provided in an embodiment of the present application.
As shown in fig. 1, the information recommendation method provided in the embodiment of the present application may include the following steps 101 and 102:
step 101: a first input by a user on a first interface is received.
In an embodiment of the present application, the first interface may include any one of: conversation window interface, text input interface.
Optionally, in this embodiment of the application, the first interface includes an information input area and an information display area. Illustratively, the information input area is used for inputting a character string, for example, the information input area may be an input method interface. Illustratively, the information display area is used for displaying text information displayed on a screen of a user.
For example, the first input may be an input of a character string input by a user in the information input area.
Step 102: and responding to the first input, matching candidate words from the word stock based on the character string corresponding to the first input and the first interface, and displaying the candidate words.
The word bank stores keywords and mapping relations between the keywords and the first interface. It is to be understood that the word stock may store a plurality of mapping relationships, one mapping relationship being a mapping relationship between at least one keyword and one interface, and/or one mapping relationship may be a mapping relationship between at least one keyword and one interface type.
In this embodiment of the present application, the information recommendation apparatus may display the candidate word in the candidate word display area.
For example, the candidate word display area may be an area on an input method interface, or the candidate word display area may be a floating window.
In this embodiment of the application, when the user inputs a character string on the first interface, the information recommendation device may search a keyword having a mapping relationship with the first interface (i.e., a keyword associated with the first interface) from the word library, and use the keyword as the candidate keyword. Then, the information recommendation device may search, based on the character string input by the user, a keyword that matches the character string input by the user from the keywords that have a mapping relationship with the first interface (i.e., the candidate keywords) as a candidate word.
For example, taking the first interface as the session interface 1 as an example, if the word stock stores the keyword a, the keyword B, the keyword C, and the keyword D that have a mapping relationship with the first interface, in the case that the user inputs the character string 1 in the session interface 1, the keyword that matches the character string 1 may be determined from the 4 keywords that have a mapping relationship with the session interface 1, and the keyword is recommended to the user as a candidate word.
Optionally, in this embodiment of the present application, the process of determining, by the information recommendation device, a keyword that matches a character string input by a user from keywords associated with the first interface includes at least the following three ways:
the first method is as follows: the first-out word is memorized. That is, the thesaurus includes a character string identical to the first character string typed by the user on the first interface (i.e., the character string currently typed by the user through the physical keyboard or the virtual keyboard), the information recommendation apparatus may display the text corresponding to the character string (i.e., the character string corresponding to the keyword stored in association with the thesaurus) at a position in front of the candidate word display area.
For example, if the character string entered on the first interface by the user is "hanyufei" and "hanyufei" are stored in association with each other in the thesaurus, the information recommendation device acquires the text of "korean fei" in the thesaurus and displays "korean fei" at a position in front of the candidate word display area, that is, recommends "korean fei" as the first candidate word to the user.
The second method comprises the following steps: the prefix is combined with the memory word. That is, in a case where the user types a character string on the first interface, the information recommendation apparatus detects that a character string including the first character string currently typed by the user exists in the thesaurus, and the information recommendation apparatus may display the text corresponding to the character string at a position in front of the candidate word display area.
For example, if the character string entered on the first interface by the user is "hanyu" and "hanyufei" are stored in association with each other in the thesaurus, the information recommendation device acquires the text "korean fei" in the thesaurus and displays "korean fei" at a position in front of the candidate word display area, that is, recommends "korean fei" as the first candidate word to the user.
The third method comprises the following steps: word prefix association is combined with memorizing words. Namely, a user enters a character string on a first interface, selects a candidate word corresponding to the character string on a screen, screens the candidate word on the input interface, and then displays characters including a first character of the user from the screen to a text input interface, wherein the characters include the first character of the user from the screen to the text input interface, and then the information recommendation device acquires the characters in the word stock and displays the characters except the first character in the characters at a position near the front of a candidate word display area.
For example, when the user types "han" and selects "korean" on the screen, and the information recommending apparatus detects that "korean phenanthrene" including a character of "korean" exists in the thesaurus, the information recommending apparatus may acquire a text of "korean phenanthrene" in the thesaurus and display "korean phenanthrene" at a position in front of the candidate word display area.
In the information recommendation method provided by the application, the electronic device stores the keyword and the mapping relation between the keyword and the first interface in the word stock, so that when a user inputs a character string on the first interface, the candidate word matched with the character string and the first interface can be determined from the word stock based on the character string and the first interface. Therefore, the electronic equipment can recommend the candidate words matched with the current input interface for the user, so that the candidate words which better meet the input requirements of the user on the current input interface can be recommended for the user, and the flexibility and the accuracy of recommending the candidate words for the user are improved.
Optionally, in this embodiment of the application, the information recommendation device may extract a keyword from the target text displayed on the first interface, and store the keyword and the mapping relationship between the keyword and the first interface in a word bank.
For example, before the step 101, the information recommendation method provided in the embodiment of the present application further includes the following steps a1 to A3:
step A1: and under the condition that the content input by the first interface is detected to comprise the first symbol, acquiring the target text.
Step A2: and extracting the keywords in the target text.
Step A3: and correspondingly storing the keywords and the mapping relation into a word bank.
Optionally, in this embodiment of the application, the content input by the first interface is a text displayed on a screen of a user.
Optionally, in an embodiment of the present application, the target text includes: inputting a target character to a character between first symbols by a user; the target characters are: the first character input by the user, or a second symbol displayed in the first interface before the first symbol.
In one example, where the target character is the first character entered by the user, the target text is text between the first character entered by the user and the first symbol currently entered. For example, the text content input by the user is "tomorrow is a birthday of blue-language. ", the target text is" clear "word to. "text in between.
In another example, in the case that the target character is a second symbol on the screen before the first symbol input by the user this time, the target text is a text between the second symbol and the first symbol. For example, the text content input by the user is "tomorrow is good, and we want to go to blue instead of moving. ", the target text is" to "". "text in between.
It should be noted that, when the information recommendation device detects the first character and the second character input by the user from the input text at the same time, the information recommendation device determines the second symbol as the target character.
Optionally, in this embodiment of the application, in the process of inputting characters by the user, the information recommendation device may perform real-time or periodic detection (for example, detection is performed every 5 s) on the content input by the user (i.e., the content displayed on the screen this time), and determine whether the content includes the first symbol.
Optionally, in this embodiment of the present application, in a case that it is detected that the content that the user is currently on the screen includes the first symbol, the information recommendation device may determine the first text from the texts that the user has input, and then detect a target character in the first text, where the target character is a character in the first text that meets a predetermined condition. Wherein the first text comprises: all text that the user has entered, text that the user entered within a predetermined time before entering the first symbol, text that the user entered a predetermined number of characters before entering the first symbol (e.g., 30 characters entered before the user entered the first symbol).
Optionally, in this embodiment of the application, the information recommendation device may detect in real time whether the text input by the user includes the first character. Therefore, when the user inputs (displays) a symbol currently, the information recommendation device acquires the target text once to ensure that all the contents input by the user can be detected.
Optionally, in an embodiment of the present application, the first symbol and the second symbol both belong to a target symbol, where the target symbol includes any one of: punctuation marks, delimiters. Wherein the separator includes: line feed character, space character.
Generally, a user uses various symbols to represent pauses in text content and moods to be expressed in input text with complete semantics (e.g., complete sentences or words). Thus, in a text, the text content between two punctuations is usually a sentence or a text containing a complete word (e.g., a person's name or a place's name). Wherein different symbols express different meanings.
Example 1: for punctuation, partial punctuation (e.g., "," "") is typically used to express pauses in the text content, and partial punctuation (e.g., "|".
Example 2: for delimiters, delimiters are typically used to separate and split text content. For example, when it is detected that the user currently inputs a space character, which indicates that the user has input a complete sentence or a word, the information recommendation device may acquire the target text in the text that the user has input based on the space character and a symbol before the space character, and ensure the integrity of the acquired target text.
For example, suppose the text that the user has entered is "tomorrow is very good," we 10 o' clock at the front of the pujun dong road and go to the gui public house together to eat morning tea. "because of the presence of", "and" in the text ". ", are stated in" and "". "there is a complete sentence in between, so the information recommender will" and ". "the text between them is used as the target text, so as to obtain a sentence.
Optionally, in this embodiment of the application, in a case of obtaining a target text in a text that has been input by a user, the information recommendation device may perform word segmentation or semantic recognition on the target text, extract a keyword in the target text, and obtain at least one keyword in the target text.
Illustratively, the keywords may be phrases or phrases containing specific semantics in the target text, and the keywords include at least one of the following: name of person, place name, organization name, proper noun.
It should be noted that the information recommendation device may extract one or more keywords from the target text, which is not limited in the embodiment of the present application.
In this way, the information recommendation device can extract keywords with complete semantics from the target text input by the user on the first interface. Since the keyword is extracted from the first interface, it is more in line with the input intention of the user on the first interface.
Optionally, in this embodiment of the application, in a case where a keyword is extracted from a target text of the first interface, the information recommendation device may establish a mapping relationship between the first interface and the keyword.
For example, the information recommendation device may automatically establish the mapping relationship between the first interface and the keyword, or may be triggered by a user to establish the mapping relationship between the first interface and the keyword.
For example, taking the first interface as a session interface as an example, if the keywords include a keyword a, a keyword B, a keyword C, and a keyword B, the information recommendation device may store the 4 keywords in a lexicon, generate a mapping relationship between each keyword in the 4 keywords and the session interface, obtain 4 mapping relationships, and store the 4 mapping relationships in the lexicon respectively.
In this way, the information recommendation device may store a mapping relationship between the keyword extracted from the target text of the first interface and the first interface in the word bank, and when the user inputs the character string on the first interface, the information recommendation device may recommend a candidate word that meets the input habit of the user on the first interface for the user according to the mapping relationship between the first interface and the keyword.
Further optionally, in this embodiment of the application, the storing the keyword in the step a3 into a thesaurus includes the following step B1:
step B1: and storing the keywords and the character strings corresponding to the keywords in a word bank in an associated manner.
For example, after extracting a keyword from a target text, the information recommendation device may obtain a character string (e.g., pinyin) corresponding to the keyword, and then store the correspondence between the character string and the character string corresponding to the keyword in the word stock. Therefore, the information recommendation device can find the keyword corresponding to the character string in the word stock based on the corresponding relation, so that the keyword is used as a candidate word and displayed to a user, and the recommendation efficiency of the candidate word is improved.
For example, the character string corresponding to the keyword may include at least one of: the pinyin of the keyword, the pinyin with a greater similarity to the pinyin of the keyword (e.g., if the pinyin of the keyword is "Lanyufei", the pinyin close to the pinyin of the keyword may be "hanyufei" or lanyuwei), and the foreign language translation of the keyword (e.g., if the keyword is "blue-language-rich", the english translation of the keyword, e.g., "Lanyufei", may be obtained and stored).
Further optionally, in this application, the step a2 includes the following steps C1 to C3:
step C1: and performing word segmentation on the target text to obtain N candidate word segmentations.
Step C2: and receiving second input of the target candidate segmentation word in the N candidate segmentation words from the user.
Step C3: in response to the second input, the target candidate participle is taken as a keyword.
Illustratively, the first input includes: any feasible input, such as touch input, gesture input, and voice input.
For example, the information recommendation device may perform word segmentation on the target text by using a word segmentation method such as a character matching method, an understanding method, or a statistical method to obtain N candidate words, and determine the target candidate words as the keywords based on an input operation of the user on the target candidate words in the N candidate words.
Further, the information recommendation device may display the N candidate segmented words in the keyword display area, and the user may select (e.g., check) the desired candidate segmented word in the keyword selection area, and then the information recommendation device may determine the candidate segmented word selected by the user as the keyword.
For example, assuming that the target text is "korean phenanthrene eats a hot pot in restaurant a", the information recommendation device may perform syntactic understanding analysis on the target text to obtain candidate participles of "korean phenanthrene", "restaurant" and "hot pot", and display the candidate participles in the keyword display area, so that the user may click or select the candidate participle of "korean phenanthrene" therein, and determine the candidate participle as a keyword. In this way, the information recommendation device can determine the keywords based on the selection operation of the user on the candidate participles, so that the keywords required by the user can be obtained.
For example, the word storage device may perform word segmentation on the target text by using a word segmentation method such as character matching, understanding, or statistical method to obtain word units in the target text, then establish a machine learning model based on a machine learning algorithm, and extract keywords in the target text by using word features and sentence features of the word units in the target text. Further, the text storage device may obtain word characteristics of the word unit and sentence characteristics of the word unit in the corresponding target text, where the word characteristics of the word unit refer to part-of-speech characteristics, named entity characteristics, and the like of the word unit.
It should be noted that the part-of-speech feature of the word unit refers to the part-of-speech of the word unit, such as noun or verb. It will be appreciated that, in general, word units of certain part-of-speech characteristics are more likely to be keywords, e.g., word units of noun characteristics. The named entity feature of the word unit refers to whether the word unit is a named entity, and in general, the word unit which is a named entity is more likely to become a keyword.
Further, the term characteristics of the word units in the corresponding target text refer to characteristics of the word units in the target text, for example, a pre-combination part-of-speech characteristic, a part-of-speech characteristic of a post-combination word, a term position characteristic, a dependency relationship characteristic, and the like of the word units in the target text.
For example, assuming that the target text is "korean phenanthrene eats a hot pot at restaurant a", the information recommendation device may perform syntactic understanding analysis on the target text to obtain word units of "korean phenanthrene", "at", "restaurant" and "eating" and "hot pot", and obtain word features (e.g., "korean phenanthrene" is a name of a person, "restaurant a" is a place name, "eating" is a verb) and sentence features (e.g., "hot pot" is a lexical object, "korean phenanthrene" is a subject, "korean phenanthrene" and "eating" are a subject relation) of the word units according to part-of-speech analysis and named entity recognition, and then extract keywords, i.e., "korean phenanthrene" and "restaurant a", in the target text using the word features and sentence features of the word units based on the established machine learning model. Therefore, the text storage device can automatically and intelligently extract the keywords in the target text, and the efficiency of extracting the keywords is improved.
Further optionally, in this embodiment of the application, after the step a2, the display method provided in this embodiment of the application further includes the following steps D1 and D2:
step D1: and displaying the keywords.
Step D2: a third input of the keyword by the user is received.
With reference to the step D2, the step A3 of storing the keywords in the lexicon includes the following steps D3:
step D3: and responding to the second input, and storing the keywords into a word bank.
For example, after extracting at least one keyword from the target text, the information recommendation device may display the at least one keyword in a predetermined display manner. Wherein the predetermined display mode comprises at least one of the following: displaying at least one keyword above the target text, highlighting or highlighting the at least one keyword in the target text, and displaying the at least one keyword in a keyword display interface.
For example, after displaying the at least one keyword, the information recommendation device may enable the user to perform a click operation (i.e., a third input) on any keyword of the at least one keyword, and store the any keyword of the at least one keyword into the thesaurus. Therefore, the user can pertinently store the keywords according to the requirement, the flexibility of storing the keywords is improved, the keywords stored in the word stock can be further effectively used, and meanwhile, the storage space of the word stock is saved.
In the information recommendation method provided by the embodiment of the application, since the user usually uses various symbols to represent pauses of text contents and moods to be expressed in the input text contents (e.g., complete sentences or words) with complete semantics. Therefore, the information recommendation device can perform text splitting on the text input by the user based on the target character and the first symbol in the text input by the user under the condition that the content displayed on the screen by the user comprises the first symbol, so that the target text containing the complete word which the user wants to input can be extracted from the text input by the user, and the complete word contained in the target text is stored in the word bank. So that the keyword can be recommended to the user as a candidate word in the case where the user inputs the keyword again.
It should be noted that, in the information recommendation method provided in the embodiment of the present application, the execution subject may be an information recommendation device, or a control module in the information recommendation device for executing the information recommendation method. The information recommendation device provided by the embodiment of the present application is described by taking an example of an information recommendation method executed by an information recommendation device.
An embodiment of the present application provides an information recommendation device, as shown in fig. 2, the information recommendation device includes: a receiving module 401, a processing module 402 and a display module 403, wherein: the receiving module 401 is configured to receive a first input of a user on a first interface; the processing module 402 is configured to, in response to the first input received by the receiving module 401, match a candidate word from a word stock based on a character string corresponding to the first input and the first interface; the display module 403 is configured to display the candidate words matched by the processing module 402 from the word bank; and storing keywords and the mapping relation between the keywords and the first interface in the word bank.
In the information recommendation device provided by the embodiment of the application, the electronic device stores the keyword and the mapping relationship between the keyword and the first interface in the word bank, so that when a user inputs a character string on the first interface, the candidate word matched with the character string and the first interface can be determined from the word bank based on the character string and the first interface. Therefore, the electronic equipment can recommend the candidate words matched with the current input interface for the user, so that the candidate words which better meet the input requirements of the user on the current input interface can be recommended for the user, and the flexibility and the accuracy of recommending the candidate words for the user are improved.
Optionally, in an embodiment of the present application, the apparatus further includes: an acquisition module 404 and a storage module 405, wherein: the obtaining module 404 is configured to obtain a target text when it is detected that the content input by the first interface includes a first symbol; the target text includes: the character from the target character to the first symbol input by the user; the target characters are: a first character input by a user, or a second symbol displayed in the first interface before the first symbol; the processing module 402 is further configured to extract a keyword in the target text acquired by the acquiring module 404; the storage module 405 is configured to correspondingly store the keyword extracted by the processing module 402 and the mapping relationship into the word stock.
Optionally, in this embodiment of the present application, the first symbol and the second symbol both belong to a target symbol; wherein the target symbol includes any one of: punctuation marks, delimiters. Wherein the separator includes: line feed character, space character.
Optionally, in this embodiment of the application, the storage module 405 is specifically configured to store the keyword and the character string corresponding to the keyword in a word bank in an associated manner.
Optionally, in this embodiment of the application, the processing module 402 is specifically configured to perform word segmentation on the target text to obtain N candidate word segments; the receiving module 401 is further configured to receive a second input of a target candidate segmentation word in the N candidate segmentation words obtained by the processing module 402 from the user; the processing module 402 is specifically configured to take the target candidate segmentation as a keyword in response to the second input received by the receiving module 401.
Optionally, in this embodiment of the application, the display module 403 is further configured to display the keyword; the receiving module 401 is further configured to receive a third input of the keyword displayed by the displaying module 403 by the user; the storage module 405 is specifically configured to store the keyword into a word stock in response to the third input received by the receiving module 401.
The information recommendation device in the embodiment of the present application may be a device, or may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The information recommendation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The information recommendation device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the information recommendation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 107 is configured to receive a first input of a user on a first interface; the processor 110, configured to, in response to the first input received by the user input unit 107, match a candidate word from a lexicon based on a character string corresponding to the first input and the first interface; the display unit 106 is configured to display the candidate words matched by the processor 110 from the word stock; and storing keywords and the mapping relation between the keywords and the first interface in the word bank.
In the electronic device provided by the embodiment of the application, the electronic device stores the keyword and the mapping relationship between the keyword and the first interface in the word bank, so that when a user inputs a character string on the first interface, the candidate word matched with the character string and the first interface can be determined from the word bank based on the character string and the first interface. Therefore, the electronic equipment can recommend the candidate words matched with the current input interface for the user, so that the candidate words which better meet the input requirements of the user on the current input interface can be recommended for the user, and the flexibility and the accuracy of recommending the candidate words for the user are improved.
Optionally, in this embodiment of the application, the processor 110 is configured to, when it is detected that the content input by the first interface includes a first symbol, obtain a target text; the target text includes: the character from the target character to the first symbol input by the user; the target characters are: a first character input by a user, or a second symbol displayed in the first interface before the first symbol; the processor 110 is further configured to extract a keyword in the target text; the memory 109 is configured to store the keywords extracted by the processor 110 and the mapping relationship into the word stock in a corresponding manner.
Optionally, in this embodiment of the present application, the first symbol and the second symbol both belong to a target symbol; wherein the target symbol includes any one of: punctuation marks, delimiters. Wherein the separator includes: line feed character, space character.
Optionally, in this embodiment of the application, the memory 109 is specifically configured to store the keyword and the character string corresponding to the keyword in a word bank in an associated manner.
Optionally, in this embodiment of the application, the processor 110 is specifically configured to perform word segmentation on the target text to obtain N candidate word segments; the user input unit 107 is further configured to receive a second input of a target candidate segmentation word in the N candidate segmentation words obtained by the processor 110 from the user; the processor 110 is specifically configured to take the target candidate segmentation as a keyword in response to the second input received by the user input unit 107.
Optionally, in this embodiment of the application, the display unit 106 is further configured to display the keyword; the user input unit 107 is further configured to receive a third input of the keyword displayed by the display unit 106 from the user; the memory 109 is specifically configured to store the keyword in a lexicon in response to the third input received by the user input unit 107.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the storage method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above information recommendation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the chip is not described here again.
Embodiments of the present application provide a computer program product, stored on a non-volatile storage medium, for execution by at least one processor to implement a method as described in the first aspect.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. An information recommendation method, characterized in that the method comprises:
receiving a first input of a user on a first interface;
responding to the first input, matching candidate words from a word bank based on the character string corresponding to the first input and the first interface, and displaying the candidate words;
and storing keywords and the mapping relation between the keywords and the first interface in the word stock.
2. The method of claim 1, wherein prior to receiving the first input by the user on the first interface, the method further comprises:
under the condition that the content input by the first interface is detected to comprise a first symbol, acquiring a target text; the target text includes: the character between the target character and the first symbol which is input by the user; the target characters are: a first character input by a user, or a second symbol displayed in the first interface before the first symbol;
extracting key words in the target text;
and correspondingly storing the keywords and the mapping relation into the word stock.
3. The method of claim 2, wherein the first symbol and the second symbol both belong to a target symbol;
the target symbol comprises any one of: punctuation marks, delimiters; wherein the separator includes: line feed character, space character.
4. The method of claim 2, wherein storing the keyword in the thesaurus comprises:
and storing the keywords and the character strings corresponding to the keywords in a word bank in an associated manner.
5. The method of claim 2, wherein the extracting the keywords from the target text comprises:
performing word segmentation on the target text to obtain N candidate word segments;
receiving a second input of a target candidate segmentation word in the N candidate segmentation words from the user;
in response to the second input, the target candidate segmentation is taken as a keyword.
6. The method of claim 2 or 4, wherein after extracting the keywords in the target text, the method further comprises:
displaying the keyword;
receiving a third input of the keyword by the user;
the storing the keywords into a word bank comprises:
storing the keyword into a thesaurus in response to the third input.
7. An information recommendation apparatus, characterized in that the apparatus comprises: receiving module, processing module and display module, wherein:
the receiving module is used for receiving a first input of a user on a first interface;
the processing module is used for responding to the first input received by the receiving module, and matching candidate words from a word stock based on the character string corresponding to the first input and the first interface;
the display module is used for displaying the candidate words matched by the processing module from the word stock;
and storing keywords and the mapping relation between the keywords and the first interface in the word stock.
8. The apparatus of claim 7, further comprising: the device comprises an acquisition module and a storage module, wherein:
the obtaining module is used for obtaining a target text under the condition that the content input by the first interface is detected to comprise a first symbol; the target text includes: the character between the target character and the first symbol which is input by the user; the target characters are: a first character input by a user, or a second symbol displayed in the first interface before the first symbol;
the processing module is further configured to extract the keywords in the target text acquired by the acquisition module;
the storage module is used for correspondingly storing the keywords extracted by the processing module and the mapping relation into the word stock.
9. The apparatus of claim 8, wherein the first symbol and the second symbol both belong to a target symbol;
the target symbol comprises any one of: punctuation marks, delimiters; wherein the separator includes: line feed character, space character.
10. The apparatus of claim 8,
the storage module is specifically configured to store the keyword and the character string corresponding to the keyword in a word bank in an associated manner.
11. The apparatus of claim 8,
the processing module is specifically configured to perform word segmentation on the target text to obtain N candidate word segments;
the receiving module is further configured to receive a second input of the user for a target candidate participle in the N candidate participles obtained by the processing module;
the processing module is specifically configured to take the target candidate participle as a keyword in response to the second input received by the receiving module.
12. The apparatus of claim 8 or 10,
the display module is also used for displaying the keywords;
the receiving module is also used for receiving a third input of the keyword displayed by the display module by the user;
the storage module is specifically configured to store the keyword into a word bank in response to the third input received by the receiving module.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the information recommendation method of any of claims 1-6.
14. A computer-readable storage medium, on which a program or instructions are stored, which, when executed by a processor, carry out the steps of the information recommendation method according to any one of claims 1-6.
CN202011565318.6A 2020-12-25 2020-12-25 Information recommendation method and device and electronic equipment Pending CN112631437A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011565318.6A CN112631437A (en) 2020-12-25 2020-12-25 Information recommendation method and device and electronic equipment
PCT/CN2021/140476 WO2022135474A1 (en) 2020-12-25 2021-12-22 Information recommendation method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565318.6A CN112631437A (en) 2020-12-25 2020-12-25 Information recommendation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112631437A true CN112631437A (en) 2021-04-09

Family

ID=75325021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565318.6A Pending CN112631437A (en) 2020-12-25 2020-12-25 Information recommendation method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112631437A (en)
WO (1) WO2022135474A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407092A (en) * 2021-06-17 2021-09-17 北京达佳互联信息技术有限公司 Text box information processing method and device, electronic equipment and storage medium
CN113641252A (en) * 2021-07-06 2021-11-12 维沃移动通信有限公司 Text input method and device and electronic equipment
WO2022135474A1 (en) * 2020-12-25 2022-06-30 维沃移动通信有限公司 Information recommendation method and apparatus, and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115599890B (en) * 2022-11-29 2023-03-21 深圳市人马互动科技有限公司 Product recommendation method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808808A (en) * 2015-03-23 2015-07-29 联想(北京)有限公司 Information processing method and electronic device
CN105045412A (en) * 2015-08-28 2015-11-11 百度在线网络技术(北京)有限公司 Method and system for generating candidate item of input method
CN106896937A (en) * 2017-02-28 2017-06-27 百度在线网络技术(北京)有限公司 Method and apparatus for being input into information
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
EP3506091A1 (en) * 2017-12-28 2019-07-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for configuring input method and terminal device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198691A1 (en) * 2008-02-05 2009-08-06 Nokia Corporation Device and method for providing fast phrase input
CN103488796B (en) * 2013-10-12 2018-12-07 惠州Tcl移动通信有限公司 Based on context the method and mobile terminal inputted
CN106066706B (en) * 2016-05-26 2019-01-11 珠海市魅族科技有限公司 A kind of data processing method and intelligent terminal
CN106445189B (en) * 2016-12-16 2020-03-17 北京小米移动软件有限公司 Candidate word display method and device
CN106933381A (en) * 2017-03-16 2017-07-07 联想(北京)有限公司 A kind of information processing method and device
CN107102744B (en) * 2017-05-26 2020-02-21 维沃移动通信有限公司 Input vocabulary recommendation method and electronic equipment
CN112416142A (en) * 2020-11-20 2021-02-26 维沃移动通信有限公司 Method and device for inputting characters and electronic equipment
CN112631437A (en) * 2020-12-25 2021-04-09 维沃移动通信有限公司 Information recommendation method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808808A (en) * 2015-03-23 2015-07-29 联想(北京)有限公司 Information processing method and electronic device
CN105045412A (en) * 2015-08-28 2015-11-11 百度在线网络技术(北京)有限公司 Method and system for generating candidate item of input method
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
CN106896937A (en) * 2017-02-28 2017-06-27 百度在线网络技术(北京)有限公司 Method and apparatus for being input into information
EP3506091A1 (en) * 2017-12-28 2019-07-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for configuring input method and terminal device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135474A1 (en) * 2020-12-25 2022-06-30 维沃移动通信有限公司 Information recommendation method and apparatus, and electronic device
CN113407092A (en) * 2021-06-17 2021-09-17 北京达佳互联信息技术有限公司 Text box information processing method and device, electronic equipment and storage medium
CN113641252A (en) * 2021-07-06 2021-11-12 维沃移动通信有限公司 Text input method and device and electronic equipment
CN113641252B (en) * 2021-07-06 2024-03-29 维沃移动通信有限公司 Text input method and device and electronic equipment

Also Published As

Publication number Publication date
WO2022135474A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
US10198506B2 (en) System and method of sentiment data generation
CN110543574A (en) knowledge graph construction method, device, equipment and medium
CN112631437A (en) Information recommendation method and device and electronic equipment
US9342233B1 (en) Dynamic dictionary based on context
CN107608532B (en) Association input method and device and electronic equipment
US10311113B2 (en) System and method of sentiment data use
WO2022083750A1 (en) Text display method and apparatus and electronic device
CN111324771B (en) Video tag determination method and device, electronic equipment and storage medium
CN112416142A (en) Method and device for inputting characters and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN111880668A (en) Input display method and device and electronic equipment
CN111538830A (en) French retrieval method, French retrieval device, computer equipment and storage medium
CN114067797A (en) Voice control method, device, equipment and computer storage medium
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN107797676B (en) Single character input method and device
CN112882623A (en) Text processing method and device, electronic equipment and storage medium
WO2023103943A1 (en) Image processing method and apparatus, and electronic device
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN113157966B (en) Display method and device and electronic equipment
CN111597325B (en) Text query method and device
CN111966267A (en) Application comment method and device and electronic equipment
KR102327790B1 (en) Information processing methods, devices and storage media
CN113360742A (en) Recommendation information determination method and device and electronic equipment
CN114610163A (en) Recommendation method, apparatus and medium

Legal Events

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