CN111046210B - Information recommendation method, device and electronic equipment - Google Patents

Information recommendation method, device and electronic equipment Download PDF

Info

Publication number
CN111046210B
CN111046210B CN201811184678.4A CN201811184678A CN111046210B CN 111046210 B CN111046210 B CN 111046210B CN 201811184678 A CN201811184678 A CN 201811184678A CN 111046210 B CN111046210 B CN 111046210B
Authority
CN
China
Prior art keywords
keyword
expression
screen
keywords
emoticon
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.)
Active
Application number
CN201811184678.4A
Other languages
Chinese (zh)
Other versions
CN111046210A (en
Inventor
黄海兵
庞帅
张扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201811184678.4A priority Critical patent/CN111046210B/en
Publication of CN111046210A publication Critical patent/CN111046210A/en
Application granted granted Critical
Publication of CN111046210B publication Critical patent/CN111046210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例提供了一种信息推荐方法、装置和电子设备,其中,所述方法包括:获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示所述表情图片;进而能够为已输入内容中各个关键词分别推荐对应表情图片,提高了输入效率。

The embodiments of the present invention provide an information recommendation method, device and electronic device, wherein the method comprises: obtaining input content, extracting at least one keyword corresponding to the input content; searching for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image; displaying the emoticon images; and then being able to recommend corresponding emoticon images for each keyword in the input content, thereby improving input efficiency.

Description

一种信息推荐方法、装置和电子设备Information recommendation method, device and electronic device

技术领域Technical Field

本发明涉及输入法技术领域,特别是涉及一种信息推荐方法、装置和电子设备。The present invention relates to the technical field of input methods, and in particular to an information recommendation method, device and electronic equipment.

背景技术Background Art

随着计算机技术的发展,诸如手机、平板电脑等电子设备越来越普及,给人们的生活、学习、工作带来了极大的便利。这些电子设备通常安装有输入法应用程序(简称输入法),使得用户可使用该输入法进行信息输入。With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information.

其中,输入法不仅提供文本的输入,还可以提供表情图片的输入,即用户输入表情关键词后,输入法可输出对应的表情图片以供用户选择。其中,只有当用户输入的信息是单个表情关键词时,输入法才可以匹配出对应的表情图片,而若用户输入的信息中包括除单个表情关键词外的其他文本信息时,如输入的信息中包含多个表情关键词,则输入法无法匹配出对应的表情图片。例如,“好的”和“嗯嗯”均是表情关键词,用户输入“嗯嗯”后,可以推荐对应的表情图片,而用户输入“嗯嗯好的”则无法推荐表情图片;导致用户需要删除部分内容,以获取需要的表情图片,或者自己再另外查找,影响输入效率。Among them, the input method not only provides text input, but also provides emoticon input, that is, after the user enters an emoticon keyword, the input method can output the corresponding emoticon for the user to choose. Among them, only when the information entered by the user is a single emoticon keyword, the input method can match the corresponding emoticon picture, and if the information entered by the user includes other text information in addition to a single emoticon keyword, such as the input information contains multiple emoticon keywords, the input method cannot match the corresponding emoticon picture. For example, "OK" and "Hmm" are both emoticon keywords. After the user enters "Hmm", the corresponding emoticon picture can be recommended, but if the user enters "Hmm OK", no emoticon picture can be recommended; as a result, the user needs to delete part of the content to obtain the required emoticon picture, or search for it separately, affecting the input efficiency.

发明内容Summary of the invention

本发明实施例提供一种信息推荐方法,以提高输入效率。The embodiment of the present invention provides an information recommendation method to improve input efficiency.

相应的,本发明实施例还提供了一种信息推荐装置和一种电子设备,用以保证上述方法的实现及应用。Correspondingly, the embodiment of the present invention further provides an information recommendation device and an electronic device to ensure the implementation and application of the above method.

为了解决上述问题,本发明实施例公开了一种信息推荐方法,具体包括:获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示所述表情图片。In order to solve the above problems, an embodiment of the present invention discloses an information recommendation method, which specifically includes: obtaining input content, extracting at least one keyword corresponding to the input content; searching for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image; and displaying the emoticon images.

可选地,所述提取所述已输入内容对应的至少一个关键词,包括:对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。Optionally, extracting at least one keyword corresponding to the input content includes: performing word segmentation processing on the input content to obtain word segmentation fragments; and determining at least one keyword corresponding to the input content based on the word segmentation fragments.

可选地,所述关键词多于一个,所述查找所述关键词对应的表情图片,包括:针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Optionally, there are more than one keywords, and searching for emoticon images corresponding to the keywords includes: for each keyword, searching for mapping information based on the keyword to determine at least one emoticon image corresponding to the keyword.

可选地,所述映射信息包括表情关键词与表情图片之间的映射关系,所述基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片,包括:将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Optionally, the mapping information includes a mapping relationship between expression keywords and expression pictures, and searching the mapping information based on the keyword to determine at least one expression picture corresponding to the keyword includes: matching the keyword with the expression keyword to determine the expression keyword that matches the keyword; and searching for at least one expression picture corresponding to the matching expression keyword based on the mapping relationship.

可选地,所述方法还包括筛选表情图片的步骤:获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。Optionally, the method further comprises the step of filtering the emoticon pictures: obtaining associated information, the associated information comprising context information and/or user behavior data; and filtering the emoticon pictures according to the associated information.

可选地,所述展示所述表情图片,包括:在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。Optionally, displaying the emoticon picture includes: displaying the emoticon picture in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

可选地,所述关键词多于一个,所述的方法还包括:获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Optionally, there are more than one keywords, and the method further includes: obtaining an on-screen instruction based on the display area, and putting an emoticon picture corresponding to the on-screen instruction on the screen; determining that the emoticon picture on the screen corresponds to a keyword, deleting the emoticon picture corresponding to the keyword from the display area and updating the display area.

可选地,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。Optionally, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series to which the emoticon picture on the upper screen belongs.

可选地,所述的方法还包括:获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Optionally, the method further comprises: obtaining a screen display instruction based on the updated display area, and displaying the expression picture corresponding to the screen display instruction on the screen.

本发明实施例还公开了一种信息推荐装置,具体包括:提取模块,用于获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找模块,用于查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示模块,用于展示所述表情图片。The embodiment of the present invention also discloses an information recommendation device, which specifically includes: an extraction module, used to obtain input content and extract at least one keyword corresponding to the input content; a search module, used to search for emoticon images corresponding to the keyword, wherein each keyword corresponds to at least one emoticon image; and a display module, used to display the emoticon image.

可选地,所述提取模块,具体用于对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。Optionally, the extraction module is specifically configured to perform word segmentation processing on the input content to obtain word segmentation fragments; and determine at least one keyword corresponding to the input content based on the word segmentation fragments.

可选地,所述关键词多于一个,所述查找模块,用于针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Optionally, there are more than one keyword, and the search module is used to determine, for each keyword, at least one emoticon image corresponding to the keyword based on the keyword search mapping information.

可选地,所述映射信息包括表情关键词与表情图片之间的映射关系,所述查找模块包括:匹配子模块,用于将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;图片查找子模块,用于依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Optionally, the mapping information includes a mapping relationship between expression keywords and expression pictures, and the search module includes: a matching submodule, used to match the keyword with the expression keyword and determine the expression keyword that matches the keyword; and a picture search submodule, used to search for at least one expression picture corresponding to the matching expression keyword based on the mapping relationship.

可选地,所述装置还包括:筛选模块,用于获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。Optionally, the device further includes: a screening module, configured to obtain associated information, wherein the associated information includes context information and/or user behavior data; and screen the emoticon images according to the associated information.

可选地,所述展示模块,具体用于在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。Optionally, the display module is specifically used to display the emoticon image in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

可选地,所述关键词多于一个,所述的装置还包括:第一上屏模块,用于获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;区域更新模块,用于确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Optionally, if there are more than one keywords, the device further includes: a first screen-up module, used to obtain a screen-up instruction based on the display area, and put the emoticon picture corresponding to the screen-up instruction on the screen; and an area update module, used to determine the keyword corresponding to the emoticon picture on the screen, delete the emoticon picture corresponding to the keyword from the display area and update the display area.

可选地,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。Optionally, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series to which the emoticon picture on the upper screen belongs.

可选地,所述的装置还包括:第二上屏模块,用于获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Optionally, the device further comprises: a second on-screen module, configured to obtain an on-screen instruction based on the updated display area, and to put the expression picture corresponding to the on-screen instruction on the screen.

本发明实施例还公开了一种可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如本发明实施例任一所述的信息推荐方法。An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the information recommendation method as described in any one of the embodiments of the present invention.

本发明实施例还公开了一种电子设备,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示所述表情图片。An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: obtaining input content, extracting at least one keyword corresponding to the input content; searching for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image; and displaying the emoticon image.

可选地,所述提取所述已输入内容对应的至少一个关键词,包括:对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。Optionally, extracting at least one keyword corresponding to the input content includes: performing word segmentation processing on the input content to obtain word segmentation fragments; and determining at least one keyword corresponding to the input content based on the word segmentation fragments.

可选地,所述关键词多于一个,所述查找所述关键词对应的表情图片,包括:针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Optionally, there are more than one keywords, and searching for emoticon images corresponding to the keywords includes: for each keyword, searching for mapping information based on the keyword to determine at least one emoticon image corresponding to the keyword.

可选地,所述映射信息包括表情关键词与表情图片之间的映射关系,所述基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片,包括:将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Optionally, the mapping information includes a mapping relationship between expression keywords and expression pictures, and searching the mapping information based on the keyword to determine at least one expression picture corresponding to the keyword includes: matching the keyword with the expression keyword to determine the expression keyword that matches the keyword; and searching for at least one expression picture corresponding to the matching expression keyword based on the mapping relationship.

可选地,还包含用于进行以下筛选表情图片操作的指令:获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。Optionally, it also includes instructions for performing the following operations of filtering emoticon images: obtaining associated information, the associated information including context information and/or user behavior data; and filtering the emoticon images according to the associated information.

可选地,所述展示所述表情图片,包括:在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。Optionally, displaying the emoticon picture includes: displaying the emoticon picture in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

可选地,所述关键词多于一个,还包含用于进行以下操作的指令:获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Optionally, there are more than one keywords and instructions for performing the following operations are also included: obtaining an on-screen instruction based on the display area, and displaying an emoticon image corresponding to the on-screen instruction on the screen; determining that the emoticon image on the screen corresponds to a keyword, deleting the emoticon image corresponding to the keyword from the display area and updating the display area.

可选地,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。Optionally, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series to which the emoticon picture on the upper screen belongs.

可选地,还包含用于进行以下操作的指令:获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Optionally, it also includes instructions for performing the following operations: obtaining a screen-up instruction based on the updated display area, and putting the expression picture corresponding to the screen-up instruction on the screen.

本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:

本发明实施例中,在获取已输入内容后,可以提取所述已输入内容对应的至少一个关键词,然后查找所述关键词对应的表情图片并展示;进而能够为已输入内容中各个关键词分别推荐对应表情图片,提高了输入效率。In an embodiment of the present invention, after obtaining the input content, at least one keyword corresponding to the input content can be extracted, and then the emoticon image corresponding to the keyword can be searched and displayed; thereby, the corresponding emoticon image can be recommended for each keyword in the input content, thereby improving input efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明的一种信息推荐方法实施例的步骤流程图;FIG1 is a flowchart of an information recommendation method embodiment of the present invention;

图2是本发明实施例的一种表情图片展示界面的示意图;FIG2 is a schematic diagram of an expression picture display interface according to an embodiment of the present invention;

图3是本发明实施例的另一种表情图片展示界面的示意图;FIG3 is a schematic diagram of another expression picture display interface according to an embodiment of the present invention;

图4a是本发明的一种信息推荐方法可选实施例的步骤流程图;FIG4a is a flowchart of an optional embodiment of an information recommendation method of the present invention;

图4b是本发明实施例的一种展示区域表情图片展示界面的示意图;FIG4b is a schematic diagram of an expression picture display interface of a display area according to an embodiment of the present invention;

图4c是本发明实施例的一种展示区域表情图片查看界面的示意图;FIG4c is a schematic diagram of a display area expression picture viewing interface according to an embodiment of the present invention;

图4d是本发明实施例的另一种展示区域表情图片展示界面的示意图;FIG4d is a schematic diagram of another display area expression picture display interface according to an embodiment of the present invention;

图4e是本发明实施例的另一种展示区域表情图片查看界面的示意图;FIG4e is a schematic diagram of another display area expression picture viewing interface according to an embodiment of the present invention;

图4f是本发明实施例的又一种展示区域表情图片查看界面的示意图;FIG4f is a schematic diagram of another display area expression picture viewing interface according to an embodiment of the present invention;

图5是本发明的一种表情图片上屏方法实施例的步骤流程图;5 is a flowchart of an embodiment of a method for putting an expression picture on a screen according to the present invention;

图6a是本发明实施例的一种表情图片界面的示意图;FIG6 a is a schematic diagram of an expression picture interface according to an embodiment of the present invention;

图6b是本发明实施例的一种表情图片上屏界面的示意图;FIG6 b is a schematic diagram of an on-screen interface of an expression picture according to an embodiment of the present invention;

图6c是本发明实施例的另一种表情图片上屏界面的示意图;FIG6c is a schematic diagram of another emoticon picture on-screen interface according to an embodiment of the present invention;

图7是本发明的一种信息推荐装置实施例的结构框图;FIG7 is a structural block diagram of an information recommendation device embodiment of the present invention;

图8是本发明的一种信息推荐装置可选实施例的结构框图;FIG8 is a structural block diagram of an optional embodiment of an information recommendation device of the present invention;

图9根据一示例性实施例示出的一种用于信息推荐的电子设备的结构框图;FIG9 is a structural block diagram of an electronic device for information recommendation according to an exemplary embodiment;

图10是本发明根据另一示例性实施例示出的一种用于信息推荐的电子设备的结构示意图。Fig. 10 is a schematic structural diagram of an electronic device for information recommendation according to another exemplary embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

本发明实施例的核心构思之一是,从已输入内容中提取出关键词,分别为每个关键词匹配对应的表情图片并展示,进而能够为已输入内容中的各个关键词,分别推荐对应的表情图片,提高输入效率。One of the core concepts of the embodiment of the present invention is to extract keywords from the input content, match and display corresponding emoticon images for each keyword, and then recommend corresponding emoticon images for each keyword in the input content, thereby improving input efficiency.

参照图1,示出了本发明的一种信息推荐方法实施例的步骤流程图,具体可以包括如下步骤:1 , a flowchart of an information recommendation method embodiment of the present invention is shown, which may specifically include the following steps:

步骤102、获取已输入内容,提取所述已输入内容对应的至少一个关键词。Step 102: Obtain input content and extract at least one keyword corresponding to the input content.

本发明实施例可以获取已输入内容,从已输入内容中提取关键词后,再为所述关键词匹配对应的表情图片并推荐,进而实现为已输入内容中的各关键词推荐对应的表情图片。其中,所述已输入内容可以是指已输入至应用对应编辑框中的信息,例如上屏指令对应选取的候选项,又如用户采用编辑操作如粘贴操作输入的信息,本发明对此不作限制;其中,不同的应用中所述编辑框的名称可能不同,例如,聊天应用中的编辑框是信息输入框,浏览器中的信息编辑框是搜索框等等。所述已输入内容也可以是指根据输入序列确定的候选信息,如依据输入序列确定的候选项。其中,可以对已输入内容进行分析处理如分词处理,从所述已输入内容中提取对应的至少一个关键词;例如对已输入内容为“嗯嗯好的”进行分析处理后,可以提取出两个关键词“嗯嗯”和“好的”,又例如对已输入内容为“早上好,今天早上准备吃什么?”进行分析处理后,可以提取出5个关键词“早上好”、“今天”、“早上”、“准备”和“吃什么”。The embodiment of the present invention can obtain the input content, extract keywords from the input content, and then match the corresponding emoticon images for the keywords and recommend them, so as to recommend the corresponding emoticon images for each keyword in the input content. Wherein, the input content can refer to the information input into the corresponding edit box of the application, such as the candidate selected by the upper screen instruction, and the information input by the user using the editing operation such as the paste operation, and the present invention does not limit this; wherein, the name of the edit box in different applications may be different, for example, the edit box in the chat application is an information input box, and the information edit box in the browser is a search box, etc. The input content can also refer to the candidate information determined according to the input sequence, such as the candidate determined according to the input sequence. Wherein, the input content can be analyzed and processed such as word segmentation processing, and at least one corresponding keyword can be extracted from the input content; for example, after analyzing and processing the input content of "hmm, ok", two keywords "hmm" and "ok" can be extracted, and for example, after analyzing and processing the input content of "good morning, what are you going to eat this morning?", five keywords "good morning", "today", "morning", "prepare" and "what to eat" can be extracted.

步骤104、查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片。Step 104: search for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image.

步骤106、展示所述表情图片。Step 106: display the expression picture.

本发明实施例中,从已输入内容中提取出关键词后,可以针对每个关键词,基于该关键词查找对应匹配的表情图片;其中,可以从表情图片库中查找各关键词对应的表情图片,所述表情图片库可以存储在本地,也可以存储在服务器中;也可以从网络上查找各关键词对应的表情图片,本发明实施例对此不作限制。本发明实施例中,可能多张表情图片对应的关键词均相同,也可能一个表情图片对应的关键词与其他表情图片对应的关键词不同;因此针对每个关键词查找到的表情图片可以是一个,也可以是多个。本发明实施例中,可能有些关键词存在对应的表情图片,有些关键词不存在对应的表情图片,因此可以将查找到的表情图片进行展示;其中,表情图片的展示区域可以根据需求设置如输入法的候选区、联想区等等,当然也可以是应用的设定展示区域,本发明实施例对此不作限制。In an embodiment of the present invention, after extracting keywords from the input content, corresponding matching emoticon images can be searched for each keyword based on the keyword; wherein, the emoticon images corresponding to each keyword can be searched from an emoticon image library, and the emoticon image library can be stored locally or in a server; or the emoticon images corresponding to each keyword can be searched from the network, and the embodiment of the present invention does not limit this. In an embodiment of the present invention, the keywords corresponding to multiple emoticon images may be the same, or the keywords corresponding to one emoticon image may be different from the keywords corresponding to other emoticon images; therefore, the emoticon images found for each keyword may be one or more. In an embodiment of the present invention, there may be corresponding emoticon images for some keywords, and there may be no corresponding emoticon images for some keywords, so the found emoticon images can be displayed; wherein, the display area of the emoticon images can be set according to needs, such as the candidate area, association area, etc. of the input method, and of course it can also be the set display area of the application, and the embodiment of the present invention does not limit this.

本发明的一个示例中,获取到的已输入内容是“嗯嗯好的”,可以从该已输入内容的两个关键词“嗯嗯”和“好的”,然后分别查找关键词“嗯嗯”对应的表情图片,和,关键词“好的”对应的表情;其中,可以查找到这两个关键词的表情图片,进而可以对这两个关键词的表情图片进行展示,如图2所示。In an example of the present invention, the input content obtained is "Um, ok", and the two keywords "uh-huh" and "ok" of the input content can be used to search for the emoticon image corresponding to the keyword "uh-huh" and the emoticon image corresponding to the keyword "ok" respectively; among them, the emoticon images of these two keywords can be found, and then the emoticon images of these two keywords can be displayed, as shown in Figure 2.

本发明的另一个示例中,获取到的已输入内容是“第一张图片好看”,可以从该已输入内容中提取的三个关键词“第一张”、“图片”和“好看”,然后分别查找关键词“第一张”对应的表情图片,查找关键词“图片”对应的表情图片,以及查找关键词“好看”对应的表情图片;其中,可以查找到关键词“好看”对应的表情图片,其他两个关键词未能查找到对应的表情图片,进而可以展示关键词“好看”的表情图片,如图3所示。In another example of the present invention, the input content obtained is "The first picture is good-looking", and three keywords "first", "picture" and "good-looking" can be extracted from the input content, and then the expression picture corresponding to the keyword "first" is searched for, the expression picture corresponding to the keyword "picture" is searched for, and the expression picture corresponding to the keyword "good-looking" is searched for; among them, the expression picture corresponding to the keyword "good-looking" can be found, and the corresponding expression pictures cannot be found for the other two keywords, and then the expression picture of the keyword "good-looking" can be displayed, as shown in Figure 3.

本发明实施例中,在获取已输入内容后,可以提取所述已输入内容对应的至少一个关键词,然后查找所述关键词对应的表情图片并展示;进而能够为已输入内容中各个关键词分别推荐对应表情图片,提高了输入效率。In an embodiment of the present invention, after obtaining the input content, at least one keyword corresponding to the input content can be extracted, and then the emoticon image corresponding to the keyword can be searched and displayed; thereby, the corresponding emoticon image can be recommended for each keyword in the input content, thereby improving input efficiency.

本发明的另一个实施例中,可预先建立映射信息,所述映射信息可以用于表征表情图片与对应关键词之间的映射关系,进而在查找关键词对应的表情图片时,可以依据关键词查找映射信息,确定该关键词对应的表情图片。In another embodiment of the present invention, mapping information can be pre-established, and the mapping information can be used to characterize the mapping relationship between emoticon images and corresponding keywords. When searching for emoticon images corresponding to keywords, the mapping information can be searched based on the keywords to determine the emoticon images corresponding to the keywords.

参照图4a,示出了本发明的一种信息推荐方法可选实施例的步骤流程图,具体可以包括如下步骤:4a, a flowchart of an optional embodiment of an information recommendation method of the present invention is shown, which may specifically include the following steps:

步骤402、获取已输入内容。Step 402: Obtain input content.

本发明实施例中,可以获取应用的编辑框中的信息,将该信息确定为已输入内容,其中,所述编辑框中的信息可以用户可以通过编辑操作在应用的编辑框中输入的,如采用粘贴操作输入预先复制的信息;也可以采用输入法在应用的编辑框中输入的,例如,用户输入输入序列后,输入法可以对输入序列进行转换得到对应的候选项并在候选区展示,进而用户可以执行上屏操作选取满足需求的候选项;待用户执行上屏操作后,输入法可以生成上屏操作对应的上屏指令,然后将所述上屏指令对应的候选项上屏至应用的编辑框中。当然当用户采用输入法进行输入的过程中,也可以获取输入法基于用户输入的输入序列转换得到的候选信息,将获取的候选信息确定为已输入内容。进而再从所述已输入内容中提取对应的至少一个关键词,为各关键词推荐对应的表情图片。In an embodiment of the present invention, information in an edit box of an application can be obtained, and the information can be determined as input content, wherein the information in the edit box can be input by a user in the edit box of the application through an editing operation, such as using a paste operation to input pre-copied information; or it can be input in the edit box of the application using an input method, for example, after the user enters an input sequence, the input method can convert the input sequence to obtain corresponding candidate items and display them in the candidate area, and then the user can perform an on-screen operation to select a candidate item that meets the requirements; after the user performs the on-screen operation, the input method can generate an on-screen instruction corresponding to the on-screen operation, and then the candidate item corresponding to the on-screen instruction is on-screen to the edit box of the application. Of course, when the user uses the input method to input, the candidate information obtained by the input method based on the input sequence input by the user can also be obtained, and the obtained candidate information can be determined as input content. Then, at least one corresponding keyword is extracted from the input content, and corresponding emoticon pictures are recommended for each keyword.

步骤404、对所述已输入内容进行分词处理,得到分词片段。Step 404: perform word segmentation processing on the input content to obtain word segmentation fragments.

步骤406、基于分词片段确定所述已输入内容对应的至少一个关键词。Step 406: Determine at least one keyword corresponding to the input content based on the word segmentation fragments.

本发明实施例在提取已输入内容对应的关键词的过程中,可以对所述已输入内容进行分词处理,得到对应的分词片段;然后基于分词片段确定所述已输入内容对应的至少一个关键词。例如对已输入内容“这部电影好恐怖”进行分词处理,得到分词片段:“这部”、“电影”、“好”和“恐怖”,可以得到关键词“这部”、“电影”和“好恐怖”三个关键词;又例如对已输入内容“明天秋游”进行分词处理,得到分词片段“明天”和“秋游”,对应的关键词可以和分词片段相同,即关键词也可以是“明天”和“秋游”。In the process of extracting keywords corresponding to the input content, the embodiment of the present invention may perform word segmentation processing on the input content to obtain corresponding word segmentation fragments; then determine at least one keyword corresponding to the input content based on the word segmentation fragments. For example, the input content "this movie is so scary" is subjected to word segmentation processing to obtain word segmentation fragments: "this", "movie", "good" and "scary", and three keywords "this", "movie" and "scary" can be obtained; for another example, the input content "autumn outing tomorrow" is subjected to word segmentation processing to obtain word segmentation fragments "tomorrow" and "autumn outing", and the corresponding keywords can be the same as the word segmentation fragments, that is, the keywords can also be "tomorrow" and "autumn outing".

步骤408、基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Step 408: Search mapping information based on the keyword to determine at least one emoticon image corresponding to the keyword.

本发明实施例中,在从已输入内容中提取出多个关键词后,可以针对每个关键词,依据该关键词查找预先确定的映射信息,再依据查找到的映射信息确定该关键词对应的表情图片。In the embodiment of the present invention, after extracting multiple keywords from the input content, predetermined mapping information may be searched for each keyword according to the keyword, and then the emoticon image corresponding to the keyword may be determined according to the found mapping information.

本发明一个可选实施例中,可预先确定各表情图片对应的关键词,其中,为了区分表情图片对应的关键词与已输入内容对应的关键词,可以将表情图片对应的关键词称为表情关键词。然后建立各表情图片与对应表情关键词之间的映射关系,如表情关键词与表情图片的图片信息之间的映射关系,再依据所述映射关系确定映射信息,例如将所述映射关系作为映射信息;进而所述映射信息可以包括表情图片与对应表情关键词之间的映射关系,因此确定关键词对应的至少一个表情图片可由如下子步骤81-82实现:In an optional embodiment of the present invention, the keywords corresponding to each emoticon image can be predetermined, wherein, in order to distinguish the keywords corresponding to the emoticon image from the keywords corresponding to the input content, the keywords corresponding to the emoticon image can be referred to as emoticon keywords. Then, a mapping relationship between each emoticon image and the corresponding emoticon keyword is established, such as a mapping relationship between the emoticon keyword and the image information of the emoticon image, and then mapping information is determined based on the mapping relationship, for example, the mapping relationship is used as mapping information; and then the mapping information may include the mapping relationship between the emoticon image and the corresponding emoticon keyword, so determining at least one emoticon image corresponding to the keyword can be implemented by the following sub-steps 81-82:

子步骤81、将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词。Sub-step 81 : matching the keyword with an expression keyword to determine an expression keyword that matches the keyword.

子步骤82、依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Sub-step 82: searching for at least one expression picture corresponding to the matched expression keyword according to the mapping relationship.

本发明实施例中,可以将所述关键词与所述映射关系中所有的表情关键词进行匹配,查找与所述关键词匹配的表情关键词;然后确定所述匹配的表情关键词对应的映射关系,再依据该映射关系确定所述匹配的表情关键词对应的图片信息;进而依据所述图片信息查找对应的表情图片。In an embodiment of the present invention, the keyword can be matched with all the expression keywords in the mapping relationship to find the expression keyword that matches the keyword; then the mapping relationship corresponding to the matched expression keyword is determined, and then the picture information corresponding to the matched expression keyword is determined based on the mapping relationship; and then the corresponding expression picture is found based on the picture information.

步骤410、获取关联信息,所述关联信息包括上下文信息和/或用户行为数据。Step 410: Obtain associated information, where the associated information includes context information and/or user behavior data.

步骤412、依据所述关联信息对所述表情图片进行筛选。Step 412: filter the expression pictures according to the associated information.

本发明实施例中,在不同场景下用户选用的表情图片类型可能是不同的,例如,用户是青年人,则在聊天应用中与长辈聊天时,很可能选择比较符合中年人的表情图片,而与同辈聊天,很可能选择比较符合青年人的表情图片。且不同用户喜欢使用的表情的风格不一样,例如有些用户喜欢用户的表情图片是影视人物的表情图片,有些用户喜欢动漫人物的表情图片,有些用户喜欢当下流行的表情图片,有些用户喜欢动物的表情图片等等。因此本发明实施例中可以获取上下文信息、用户行为数据等关联信息,再依据所述关联信息对所述表情图片进行筛选,以使推荐的表情图片更符合用户的需求。In the embodiment of the present invention, the type of emoticon images selected by users in different scenarios may be different. For example, if the user is a young person, when chatting with elders in a chat application, he is likely to choose emoticon images that are more suitable for middle-aged people, while when chatting with peers, he is likely to choose emoticon images that are more suitable for young people. And different users like to use different styles of emoticons. For example, some users like their emoticon images to be emoticon images of movie characters, some users like emoticon images of cartoon characters, some users like currently popular emoticon images, some users like animal emoticon images, and so on. Therefore, in the embodiment of the present invention, context information, user behavior data and other related information can be obtained, and then the emoticon images can be screened based on the related information to make the recommended emoticon images more in line with the needs of users.

步骤414、在输入法的展示区域展示所述表情图片。Step 414: display the emoticon image in the display area of the input method.

本发明实施例中,在对表情图片进行筛选后,可以在输入法的展示区域展示筛选后的表情图片,其中,展示区域包括以下至少一种:候选区、联想区、键盘区;当然也可以在应用的设定区域展示所述表情图片。其中,当所述关键词包括多个时,可以展示各关键词对应的表情图片,其中,展示各关键词对应表情图片的方式也可以按照需求设置。In an embodiment of the present invention, after the emoticon images are screened, the screened emoticon images can be displayed in the display area of the input method, wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area; of course, the emoticon images can also be displayed in the setting area of the application. When the keyword includes multiple keywords, the emoticon images corresponding to each keyword can be displayed, wherein the method of displaying the emoticon images corresponding to each keyword can also be set according to the requirements.

本发明的一个示例中,对于一个关键词对应多个表情图片的情况,可以将每个关键词对应的多个表情图片在展示区域的多列进行显示,此时用户可以通过左右滑动查看每个关键词对应的多个表情图片。本发明的一个示例中,已输入内容“嗯嗯好哒没问题”,提取了三个关键词“嗯嗯”、“好哒”和“没问题”,其中,关键词“嗯嗯”对应一个表情图片,关键词“好哒”对应四个表情图片,以及关键词“没问题”对应两个表情图片;如图4b所示,图4b中的展示区域未示出关键词“好哒”对应的一个表情图片和关键词“没问题”对应的表情图片。当用户向左滑动之后,可以查看到图4b中未展示的关键词“好哒”对应的表情图片,可参照图4c。In an example of the present invention, for a situation where a keyword corresponds to multiple emoticon images, the multiple emoticon images corresponding to each keyword can be displayed in multiple columns in the display area, and the user can view the multiple emoticon images corresponding to each keyword by sliding left and right. In an example of the present invention, the content "Uh-huh, ok, no problem" has been input, and three keywords "uh-huh", "ok", and "no problem" have been extracted, among which the keyword "uh-huh" corresponds to one emoticon image, the keyword "ok" corresponds to four emoticon images, and the keyword "no problem" corresponds to two emoticon images; as shown in Figure 4b, the display area in Figure 4b does not show an emoticon image corresponding to the keyword "ok" and an emoticon image corresponding to the keyword "no problem". After the user slides to the left, the emoticon image corresponding to the keyword "ok" that is not displayed in Figure 4b can be viewed, and reference can be made to Figure 4c.

本发明的另一个示例中,对于一个关键词对应多个表情图的情况,也可以将每个关键词对应的多个表情图片在展示区域的一列进行滚动显示;在上一个示例的基础上,参照图4d(图中未展示滚动显示效果)。其中,用户可以通过触发查看指令进行查看,例如在该列通过上行滑动进行查看,例如,用户在图4d中在关键词“好哒”对应的列进行滑动,可以查看关键词“好哒”对应的另一个表情关键词,可参照图4e。In another example of the present invention, when a keyword corresponds to multiple emoticons, multiple emoticons corresponding to each keyword can also be scrolled and displayed in a column in the display area; based on the previous example, refer to Figure 4d (the scrolling display effect is not shown in the figure). Among them, the user can view by triggering the viewing instruction, such as by sliding up in the column to view, for example, in Figure 4d, the user slides in the column corresponding to the keyword "好哒" to view another emoticon keyword corresponding to the keyword "好哒", and refer to Figure 4e.

在本发明的又一个示例中,当用户停留在某个关键词的某个表情图片时,展示区域中呈现的其他关键词对应的表情图片,可以是该表情图片所属系列的相关系列图片。其中,可以将两个具有关联关系(如主题、对象相同或相关,作者相同等)的系列称为相关系列。例如,小黄鸭系列-1、小黄鸭系列-2和小黄鸭系列-3中任意两个系列可以称为相关系列;又例如福小喵日常系列、福小喵春节系列和福小喵红包系列中任意两个系列也可以称为相关系列;例如,用户停留在关键词“好的”对应的表情图片如图4e所示,则展示区域中关键词“没问题”对应的表情图片可如图4f所示。本发明实施例中,所述相关系列可以包括相同系列。In another example of the present invention, when a user stays on an emoticon image of a certain keyword, the emoticon images corresponding to other keywords presented in the display area may be related series images of the series to which the emoticon image belongs. Among them, two series with an association relationship (such as the same or related themes and objects, the same author, etc.) can be called related series. For example, any two series of Little Yellow Duck Series-1, Little Yellow Duck Series-2 and Little Yellow Duck Series-3 can be called related series; for example, any two series of Fu Xiao Miao Daily Series, Fu Xiao Miao Spring Festival Series and Fu Xiao Miao Red Envelope Series can also be called related series; for example, the user stays on the emoticon image corresponding to the keyword "OK" as shown in Figure 4e, and the emoticon image corresponding to the keyword "No problem" in the display area can be as shown in Figure 4f. In an embodiment of the present invention, the related series may include the same series.

本发明实施例中,在获取已输入内容后,可以提取所述已输入内容对应的至少一个关键词,然后查找所述关键词对应的表情图片并展示;进而能够为已输入内容中各个关键词分别推荐对应表情图片,提高了输入效率。In an embodiment of the present invention, after obtaining the input content, at least one keyword corresponding to the input content can be extracted, and then the emoticon image corresponding to the keyword can be searched and displayed; thereby, the corresponding emoticon image can be recommended for each keyword in the input content, thereby improving input efficiency.

其次,本发明实施例中,在确定关键词对应的表情图片之后,还可以筛选表情图片,其中可以获取关联信息,依据所述关联信息对所述表情图片进行筛选,所述关联信息包括上下文信息和/或用户行为数据;进而能够满足用户个性化需求,提高用户体验。Secondly, in an embodiment of the present invention, after determining the emoticon image corresponding to the keyword, the emoticon image can also be filtered, wherein related information can be obtained, and the emoticon image can be filtered based on the related information, wherein the related information includes context information and/or user behavior data; thereby satisfying the user's personalized needs and improving the user experience.

本发明另一个实施例中,当所述关键词多于一个时,展示区域对应可以展示多个关键词对应的表情图片;进而用户可以通过在展示区域的执行上屏操作,选取一个或多个关键词对应的表情图片进行上屏或发送。In another embodiment of the present invention, when there are more than one keywords, the display area can display emoticon images corresponding to multiple keywords; then the user can select one or more emoticon images corresponding to the keywords to display on the screen or send them by performing the display operation in the display area.

参照图5,示出了本发明的一种表情图片上屏方法实施例的步骤流程图,具体可以包括如下步骤:5, a flowchart of an embodiment of a method for putting an expression picture on the screen of the present invention is shown, which may specifically include the following steps:

步骤502、获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Step 502: Obtain a screen display instruction based on the display area, and display the expression picture corresponding to the screen display instruction on the screen.

本发明实施例中,用户可以在展示区域中执行上屏操作,从展示区域选取满足需求的表情图片;进而待用户在展示区域执行上屏操作后,输入法可以依据所述上屏操作,确定基于展示区域的上屏指令,然后将所述上屏指令对应的表情图片上屏。其中,若确定了多个关键词的表情图片,则展示区域可以展示多个关键词的表情图片,进而用户每执行一次上屏操作,可以选取一个关键词的表情图片;其中,输入法可以在每接收到一次上屏操作对应上屏指令后,即将所述上屏指令对应的表情图片上屏,即用户每次可以选取一个关键词的表情图片进行上屏。当然输入法也可以在接收到多次上屏操作对应上屏指令后,同时将多个上屏指令对应的表情图片上屏,即用户每次可以选取多个关键词的表情图片进行上屏。In an embodiment of the present invention, a user can perform a screen-up operation in the display area, and select an emoticon image that meets the needs from the display area; and then after the user performs the screen-up operation in the display area, the input method can determine the screen-up instruction based on the display area according to the screen-up operation, and then put the emoticon image corresponding to the screen-up instruction on the screen. Wherein, if multiple emoticon images of keywords are determined, the display area can display multiple emoticon images of keywords, and then the user can select an emoticon image of a keyword each time the screen-up operation is performed; wherein, the input method can put the emoticon image corresponding to the screen-up instruction on the screen each time the screen-up operation corresponding to the screen-up operation is received, that is, the user can select an emoticon image of a keyword to be put on the screen each time. Of course, the input method can also put the emoticon images corresponding to multiple screen-up instructions on the screen at the same time after receiving multiple screen-up operations corresponding to the screen-up instructions, that is, the user can select multiple emoticon images of keywords to be put on the screen each time.

步骤504、确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Step 504: Determine that the emoticon image on the upper screen corresponds to a keyword, delete the emoticon image corresponding to the keyword from the display area, and update the display area.

本发明实施例中,当所述关键词多于一个时,依据上屏指令将至少一个关键词的表情图片上屏后,可以在展示区域中删除这些关键词对应的表情图片,更新所述展示区域。因此可以确定所述上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片;其中,当所述关键词对应的表情图片为一个时,其对应的表情图片即为上屏的表情图片,则从所述展示区域中删除上屏的表情图片;当所述关键词对应的表情图片多于一个时,则从所述展示区域中删除所述关键词对应的多个表情图片。In the embodiment of the present invention, when there are more than one keyword, after putting at least one emoticon picture of the keyword on the screen according to the on-screen instruction, the emoticon pictures corresponding to these keywords can be deleted from the display area to update the display area. Therefore, it can be determined that the emoticon picture on the screen corresponds to the keyword, and the emoticon picture corresponding to the keyword is deleted from the display area; wherein, when there is one emoticon picture corresponding to the keyword, the emoticon picture corresponding to the keyword is the emoticon picture on the screen, and the emoticon picture on the screen is deleted from the display area; when there are more than one emoticon picture corresponding to the keyword, the multiple emoticon pictures corresponding to the keyword are deleted from the display area.

本发明一个可选实施例中,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。此处与上述当用户停留在某个关键词的某个表情图片时,展示区域中呈现的其他关键词对应的表情图片,可以是该表情图片所属系列的相关系列图片类似,在此不再赘述。In an optional embodiment of the present invention, the emoticons corresponding to other keywords in the updated display area include related series of pictures of the series to which the emoticon picture on the upper screen belongs. This is similar to the above-mentioned emoticon pictures corresponding to other keywords presented in the display area when the user stays on an emoticon picture of a certain keyword, which can be related series of pictures of the series to which the emoticon picture belongs, and will not be repeated here.

步骤506、获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Step 506: Obtain a screen display instruction based on the updated display area, and display the expression picture corresponding to the screen display instruction on the screen.

当更新后的展示区域中还存在用户需求的表情图片时,用户可以在更新后的展示区域再次执行上屏操作;进而输入法可以依据所述上屏操作,确定基于更新后展示区域的上屏指令,然后将所述上屏指令对应的表情图片上屏,再按照步骤504所述的方法再次更新展示区域。When there are still emoticon images required by the user in the updated display area, the user can perform the on-screen operation again in the updated display area; then the input method can determine the on-screen instruction based on the updated display area according to the on-screen operation, and then put the emoticon image corresponding to the on-screen instruction on the screen, and then update the display area again according to the method described in step 504.

本发明的一个示例中,已输入内容“嗯嗯好的可以”,提取了三个关键词“嗯嗯”、“好的”和“可以”,其中,关键词“嗯嗯”对应两个表情图片,其他两个关键词均对应一个表情图片;进而展示区域展示了三个关键词的表情图片,分别为表情1、表情2、表情3和表情4,其中,表情1和表情2为关键词“嗯嗯”对应的表情图片,表情3是关键词“好的”对应的表情图片,表情4是关键词“可以”对应的表情图片;如图6a所示。其中,输入法可以每接收到一次上屏指令后,即将上屏指令对应的表情图片上屏,进而用户每次可以上屏一张表情图片;例如,用户可以选取“嗯嗯”对应的表情图片,其中,用户针对图6a中表情1执行了上屏操作后,输入法获取对应上屏指令,确定所述上屏指令对应的表情图片为表情1,将表情1上屏至编辑框中。然后确定表情1对应的关键词为“嗯嗯”,可以在展示区域删除“嗯嗯”对应的表情图片:表情1和表情2,更新所述展示区域,如图6b所示。用户还可以选取关键词“好的”对应的表情图片,其中,用户针对图6b中表情3执行了上屏操作,输入法获取对应上屏指令,确定所述上屏指令对应的表情图片为表情3,将表情3上屏至编辑框中。然后确定表情3对应的关键词为“好的”,可以在展示区域删除“好的”对应的表情图片:表情3,更新所述展示区域,如图6c所示。后续用户还可以选择关键词“可以”对应的表情图片,此处不再赘述。In an example of the present invention, the content "hmm, ok, OK" has been input, and three keywords "hmm", "ok", and "ok" have been extracted, wherein the keyword "hmm" corresponds to two emoticon images, and the other two keywords each correspond to one emoticon image; then the display area displays the emoticon images of the three keywords, namely, emoticon 1, emoticon 2, emoticon 3, and emoticon 4, wherein emoticon 1 and emoticon 2 are emoticon images corresponding to the keyword "hmm", emoticon 3 is the emoticon image corresponding to the keyword "ok", and emoticon 4 is the emoticon image corresponding to the keyword "ok", as shown in Figure 6a. Among them, the input method can put the emoticon image corresponding to the screen-up instruction on the screen every time it receives a screen-up instruction, and then the user can put one emoticon image on the screen each time; for example, the user can select the emoticon image corresponding to "hmm", wherein after the user performs the screen-up operation for emoticon 1 in Figure 6a, the input method obtains the corresponding screen-up instruction, determines that the emoticon image corresponding to the screen-up instruction is emoticon 1, and puts emoticon 1 on the screen to the edit box. Then it is determined that the keyword corresponding to emoticon 1 is "hmm", and the emoticon images corresponding to "hmm" can be deleted in the display area: emoticon 1 and emoticon 2, and the display area is updated, as shown in Figure 6b. The user can also select the emoticon image corresponding to the keyword "OK", wherein the user performs the on-screen operation for emoticon 3 in FIG6b, and the input method obtains the corresponding on-screen instruction, determines that the emoticon image corresponding to the on-screen instruction is emoticon 3, and puts emoticon 3 on the screen to the edit box. Then, it is determined that the keyword corresponding to emoticon 3 is "OK", and the emoticon image corresponding to "OK" can be deleted in the display area: emoticon 3, and the display area is updated, as shown in FIG6c. The user can also select the emoticon image corresponding to the keyword "OK", which will not be repeated here.

本发明的另一个示例中,输入法也可以在接收到多次上屏操作对应上屏指令后,同时将多个上屏指令对应的表情图片上屏;如图6a所示,用户在选择关键词“嗯嗯”对应的表情图片时,针对表情1执行了上屏操作,然后在选择关键词“好的”对应的表情图片时,针对表情3执行了上屏操作;输入法确定两次上屏操作对应上屏指令的表情图片分别为表情1和表情3,然后将表情1和表情3同时上屏,并将展示区域中关键词“嗯嗯”对应的表情图片(表情1和表情2)删除,以及将关键词“好的”对应的表情图片(表情3)删除,更新所述展示区域;如图6c所示。后续用户还可以选择关键词“可以”对应的表情图片,此处不再赘述。In another example of the present invention, the input method can also simultaneously put the emoticons corresponding to the multiple on-screen instructions on the screen after receiving the on-screen instructions corresponding to the multiple on-screen operations; as shown in FIG6a, when the user selects the emoticon corresponding to the keyword "hmm", the on-screen operation is performed for emoticon 1, and then when the user selects the emoticon corresponding to the keyword "ok", the on-screen operation is performed for emoticon 3; the input method determines that the emoticons corresponding to the on-screen instructions of the two on-screen operations are emoticon 1 and emoticon 3, respectively, and then puts emoticon 1 and emoticon 3 on the screen at the same time, and deletes the emoticon corresponding to the keyword "hmm" in the display area (emoticon 1 and emoticon 2), and deletes the emoticon corresponding to the keyword "ok" (emoticon 3), and updates the display area; as shown in FIG6c. The user can also select the emoticon corresponding to the keyword "OK", which will not be repeated here.

本发明的一个可选实施例中,获取基于展示区域的上屏指令后,还可以发送所述上屏指令对应的表情图片,然后确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域;再获取基于更新后展示区域的上屏指令,发送所述上屏指令对应的表情图片。In an optional embodiment of the present invention, after obtaining the on-screen instruction based on the display area, an emoticon picture corresponding to the on-screen instruction can also be sent, and then the keyword corresponding to the emoticon picture on the on-screen is determined, and the emoticon picture corresponding to the keyword is deleted from the display area and the display area is updated; then the on-screen instruction based on the updated display area is obtained, and the emoticon picture corresponding to the on-screen instruction is sent.

本发明一个可选实施例中,若输入法从开始展示表情图片后设定时间内,没有获取到上屏指令,则可以删除所有表情图片;若输入法在获取到上屏指令后设定时间内,没有再次获取到上屏指令,也可以删除所有表情图片。In an optional embodiment of the present invention, if the input method does not obtain the on-screen instruction within a set time after starting to display the emoticon pictures, all emoticon pictures can be deleted; if the input method does not obtain the on-screen instruction again within a set time after obtaining the on-screen instruction, all emoticon pictures can also be deleted.

本发明实施例中,在展示所述表情图片后,若所述关键词多于一个,则可以获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域;然后再获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;进而使得用户可以通过多次上屏操作,选取多个关键词的表情图片,提高了选取各关键词对应表情图片的效率。In an embodiment of the present invention, after displaying the emoticon picture, if there is more than one keyword, a screen-up instruction based on the display area can be obtained, and the emoticon picture corresponding to the screen-up instruction can be displayed on the screen; the keyword corresponding to the emoticon picture on the screen is determined, the emoticon picture corresponding to the keyword is deleted from the display area and the display area is updated; then the screen-up instruction based on the updated display area is obtained, and the emoticon picture corresponding to the screen-up instruction is displayed on the screen; thereby, the user can select emoticon pictures of multiple keywords through multiple screen-up operations, thereby improving the efficiency of selecting emoticon pictures corresponding to each keyword.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图7,示出了本发明的一种数据处理装置实施例的结构框图,具体可以包括如下模块:提取模块702、查找模块704和展示模块706,其中,7, a structural block diagram of an embodiment of a data processing device of the present invention is shown, which may specifically include the following modules: an extraction module 702, a search module 704 and a display module 706, wherein:

提取模块702,用于获取已输入内容,提取所述已输入内容对应的至少一个关键词;An extraction module 702 is used to obtain input content and extract at least one keyword corresponding to the input content;

查找模块704,用于查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;A search module 704 is used to search for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image;

展示模块706,用于展示所述表情图片。The display module 706 is used to display the expression picture.

参照图8,示出了本发明的一种数据处理装置可选实施例的结构框图。所述装置还包括如下模块:8, a block diagram of an optional embodiment of a data processing device of the present invention is shown. The device also includes the following modules:

筛选模块708,用于获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。The screening module 708 is used to obtain related information, where the related information includes context information and/or user behavior data; and screen the emoticon images according to the related information.

第一上屏模块710,用于获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;The first screen display module 710 is used to obtain a screen display instruction based on the display area, and display the emoticon image corresponding to the screen display instruction on the screen;

区域更新模块712,用于确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。The area updating module 712 is used to determine the emoticon picture on the upper screen corresponding to the keyword, delete the emoticon picture corresponding to the keyword from the display area and update the display area.

第二上屏模块714,用于获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。The second on-screen module 714 is used to obtain an on-screen instruction based on the updated display area, and put the emoticon image corresponding to the on-screen instruction on the screen.

本发明一个可选的实施例中,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。In an optional embodiment of the present invention, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series of the series to which the emoticon picture on the upper screen belongs.

本发明一个可选的实施例中,所述提取模块702,具体用于对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。In an optional embodiment of the present invention, the extraction module 702 is specifically configured to perform word segmentation processing on the input content to obtain word segmentation fragments; and determine at least one keyword corresponding to the input content based on the word segmentation fragments.

本发明一个可选的实施例中,所述查找模块704,用于针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。In an optional embodiment of the present invention, the search module 704 is used to determine, for each keyword, at least one emoticon image corresponding to the keyword based on the keyword search mapping information.

本发明一个可选的实施例中,所述映射信息包括表情关键词与表情图片之间的映射关系,所述查找模块704包括:In an optional embodiment of the present invention, the mapping information includes a mapping relationship between expression keywords and expression pictures, and the search module 704 includes:

匹配子模块7042,用于将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;A matching submodule 7042, used to match the keyword with an expression keyword, and determine an expression keyword that matches the keyword;

图片查找子模块7044,用于依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。The picture search submodule 7044 is used to search for at least one expression picture corresponding to the matched expression keyword according to the mapping relationship.

本发明一个可选的实施例中,所述展示模块706,具体用于在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。In an optional embodiment of the present invention, the display module 706 is specifically used to display the emoticon image in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

本发明实施例中,在获取已输入内容后,可以提取所述已输入内容对应的至少一个关键词,然后查找所述关键词对应的表情图片并展示;进而能够为已输入内容中各个关键词分别推荐对应表情图片,提高了输入效率。In an embodiment of the present invention, after obtaining the input content, at least one keyword corresponding to the input content can be extracted, and then the emoticon image corresponding to the keyword can be searched and displayed; thereby, the corresponding emoticon image can be recommended for each keyword in the input content, thereby improving input efficiency.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

图9是根据一示例性实施例示出的一种用于信息推荐的电子设备900的结构框图。例如,电子设备900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 9 is a block diagram of an electronic device 900 for information recommendation according to an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

参照图9,电子设备900可以包括以下一个或多个组件:处理组件902,存储器904,电力组件906,多媒体组件908,音频组件910,输入/输出(I/O)的接口912,传感器组件914,以及通信组件916。9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input/output (I/O) interface 912 , a sensor component 914 , and a communication component 916 .

处理组件902通常控制电子设备900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件902可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理部件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

存储器904被配置为存储各种类型的数据以支持在设备900的操作。这些数据的示例包括用于在电子设备900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

电力组件906为电子设备900的各种组件提供电力。电力组件906可以包括电源管理系统,一个或多个电源,及其他与为电子设备900生成、管理和分配电力相关联的组件。The power component 906 provides power to the various components of the electronic device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.

多媒体组件908包括在所述电子设备900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当电子设备900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and/or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当电子设备900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

传感器组件914包括一个或多个传感器,用于为电子设备900提供各个方面的状态评估。例如,传感器组件914可以检测到设备900的打开/关闭状态,组件的相对定位,例如所述组件为电子设备900的显示器和小键盘,传感器组件914还可以检测电子设备900或电子设备900一个组件的位置改变,用户与电子设备900接触的存在或不存在,电子设备900方位或加速/减速和电子设备900的温度变化。传感器组件914可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open/closed state of the device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration/deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件916被配置为便于电子设备900和其他设备之间有线或无线方式的通信。电子设备900可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件914经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件914还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 914 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 914 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,电子设备900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由电子设备900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of an electronic device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行一种信息推荐方法,所述方法包括:获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示所述表情图片。A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an information recommendation method, the method comprising: obtaining input content, extracting at least one keyword corresponding to the input content; searching for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image; and displaying the emoticon images.

可选地,所述提取所述已输入内容对应的至少一个关键词,包括:对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。Optionally, extracting at least one keyword corresponding to the input content includes: performing word segmentation processing on the input content to obtain word segmentation fragments; and determining at least one keyword corresponding to the input content based on the word segmentation fragments.

可选地,所述关键词多于一个,所述查找所述关键词对应的表情图片,包括:针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Optionally, there are more than one keywords, and searching for emoticon images corresponding to the keywords includes: for each keyword, searching for mapping information based on the keyword to determine at least one emoticon image corresponding to the keyword.

可选地,所述映射信息包括表情关键词与表情图片之间的映射关系,所述基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片,包括:将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Optionally, the mapping information includes a mapping relationship between expression keywords and expression pictures, and searching the mapping information based on the keyword to determine at least one expression picture corresponding to the keyword includes: matching the keyword with the expression keyword to determine the expression keyword that matches the keyword; and searching for at least one expression picture corresponding to the matching expression keyword based on the mapping relationship.

可选地,所述方法还包括筛选表情图片的步骤:获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。Optionally, the method further comprises the step of filtering the emoticon pictures: obtaining associated information, the associated information comprising context information and/or user behavior data; and filtering the emoticon pictures according to the associated information.

可选地,所述展示所述表情图片,包括:在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。Optionally, displaying the emoticon picture includes: displaying the emoticon picture in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

可选地,所述关键词多于一个,所述的方法还包括:获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Optionally, there are more than one keywords, and the method further includes: obtaining an on-screen instruction based on the display area, and putting an emoticon picture corresponding to the on-screen instruction on the screen; determining that the emoticon picture on the screen corresponds to a keyword, deleting the emoticon picture corresponding to the keyword from the display area and updating the display area.

可选地,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。Optionally, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series to which the emoticon picture on the upper screen belongs.

可选地,所述的方法还包括:获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Optionally, the method further comprises: obtaining a screen display instruction based on the updated display area, and displaying the expression picture corresponding to the screen display instruction on the screen.

图10是本发明根据另一示例性实施例示出的一种用于信息推荐的电子设备1000的结构示意图。该电子设备1000可以是服务器,该服务器可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1022(例如,一个或一个以上处理器)和存储器1032,一个或一个以上存储应用程序1042或数据1044的存储介质1030(例如一个或一个以上海量存储设备)。其中,存储器1032和存储介质1030可以是短暂存储或持久存储。存储在存储介质1030的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1022可以设置为与存储介质1030通信,在服务器上执行存储介质1030中的一系列指令操作。FIG10 is a schematic diagram of the structure of an electronic device 1000 for information recommendation according to another exemplary embodiment of the present invention. The electronic device 1000 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1022 (e.g., one or more processors) and a memory 1032, and one or more storage media 1030 (e.g., one or more mass storage devices) storing application programs 1042 or data 1044. Among them, the memory 1032 and the storage medium 1030 may be short-term storage or permanent storage. The program stored in the storage medium 1030 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processor 1022 may be configured to communicate with the storage medium 1030 and execute a series of instruction operations in the storage medium 1030 on the server.

服务器还可以包括一个或一个以上电源1026,一个或一个以上有线或无线网络接口1050,一个或一个以上输入输出接口1058,一个或一个以上键盘1056,和/或,一个或一个以上操作系统1041,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1058, one or more keyboards 1056, and/or, one or more operating systems 1041, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

一种电子设备,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:获取已输入内容,提取所述已输入内容对应的至少一个关键词;查找所述关键词对应的表情图片,其中,每个关键词对应至少一个表情图片;展示所述表情图片。An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: obtaining input content, extracting at least one keyword corresponding to the input content; searching for emoticon images corresponding to the keywords, wherein each keyword corresponds to at least one emoticon image; and displaying the emoticon images.

可选地,所述提取所述已输入内容对应的至少一个关键词,包括:对所述已输入内容进行分词处理,得到分词片段;基于分词片段确定所述已输入内容对应的至少一个关键词。Optionally, extracting at least one keyword corresponding to the input content includes: performing word segmentation processing on the input content to obtain word segmentation fragments; and determining at least one keyword corresponding to the input content based on the word segmentation fragments.

可选地,所述关键词多于一个,所述查找所述关键词对应的表情图片,包括:针对每个关键词,基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片。Optionally, there are more than one keywords, and searching for emoticon images corresponding to the keywords includes: for each keyword, searching for mapping information based on the keyword to determine at least one emoticon image corresponding to the keyword.

可选地,所述映射信息包括表情关键词与表情图片之间的映射关系,所述基于所述关键词查找映射信息,确定所述关键词对应的至少一个表情图片,包括:将所述关键词与表情关键词匹配,确定与所述关键词匹配的表情关键词;依据所述映射关系,查找所述匹配的表情关键词对应的至少一张表情图片。Optionally, the mapping information includes a mapping relationship between expression keywords and expression pictures, and searching the mapping information based on the keyword to determine at least one expression picture corresponding to the keyword includes: matching the keyword with the expression keyword to determine the expression keyword that matches the keyword; and searching for at least one expression picture corresponding to the matching expression keyword based on the mapping relationship.

可选地,还包含用于进行以下筛选表情图片操作的指令:获取关联信息,所述关联信息包括上下文信息和/或用户行为数据;依据所述关联信息对所述表情图片进行筛选。Optionally, it also includes instructions for performing the following operations of filtering emoticon images: obtaining associated information, the associated information including context information and/or user behavior data; and filtering the emoticon images according to the associated information.

可选地,所述展示所述表情图片,包括:在输入法的展示区域展示所述表情图片;其中,所述展示区域包括以下至少一种:候选区、联想区、键盘区。Optionally, displaying the emoticon picture includes: displaying the emoticon picture in a display area of the input method; wherein the display area includes at least one of the following: a candidate area, an association area, and a keyboard area.

可选地,所述关键词多于一个,还包含用于进行以下操作的指令:获取基于所述展示区域的上屏指令,将所述上屏指令对应的表情图片上屏;确定上屏的表情图片对应关键词,从所述展示区域中删除所述关键词对应的表情图片并更新所述展示区域。Optionally, there are more than one keywords and instructions for performing the following operations are also included: obtaining an on-screen instruction based on the display area, and displaying an emoticon image corresponding to the on-screen instruction on the screen; determining that the emoticon image on the screen corresponds to a keyword, deleting the emoticon image corresponding to the keyword from the display area and updating the display area.

可选地,更新后展示区域中其他关键词对应的表情图片,包括所述上屏的表情图片所属系列的相关系列图片。Optionally, the emoticon pictures corresponding to other keywords in the updated display area include pictures of a related series to which the emoticon picture on the upper screen belongs.

可选地,还包含用于进行以下操作的指令:获取基于更新后展示区域的上屏指令,将所述上屏指令对应的表情图片上屏。Optionally, it also includes instructions for performing the following operations: obtaining an on-screen instruction based on the updated display area, and putting the emoticon image corresponding to the on-screen instruction on the screen.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

以上对本发明所提供的一种信息推荐方法、一种信息推荐装置和一种电子设备,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to an information recommendation method, an information recommendation device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims (22)

1. An information recommendation method, comprising:
acquiring input content, and extracting at least one keyword corresponding to the input content;
searching expression pictures corresponding to the keywords, wherein each keyword corresponds to at least one expression picture;
displaying the expression picture;
the method further comprises the step of screening the expression pictures:
acquiring associated information, wherein the associated information comprises context information and/or user behavior data;
Screening the expression pictures according to the associated information;
The displaying the expression picture comprises the following steps: displaying the expression picture in a display area of an input method; when the keyword corresponds to a plurality of expression pictures, the expression pictures corresponding to the keyword are displayed in a column of the display area in a rolling mode;
When more than one keyword is displayed, acquiring a screen-on instruction based on the display area, and screen-on the expression picture corresponding to the screen-on instruction; if the input method does not acquire the on-screen instruction within a set time after the expression picture is displayed, deleting the expression picture;
Determining a keyword corresponding to the expression picture on the screen, deleting the expression picture corresponding to the keyword from the display area and updating the display area; and if the screen-on instruction is not acquired again within the set time after the screen-on instruction is acquired by the input method, deleting the expression picture.
2. The method of claim 1, wherein the extracting at least one keyword corresponding to the inputted content comprises:
Performing word segmentation processing on the input content to obtain word segmentation fragments;
and determining at least one keyword corresponding to the input content based on the word segmentation segment.
3. The method according to claim 1, wherein the number of the keywords is more than one, and the searching for the emoticons corresponding to the keywords includes:
And searching mapping information for each keyword based on the keywords, and determining at least one expression picture corresponding to the keywords.
4. The method of claim 3, wherein the mapping information includes a mapping relationship between the emotion keywords and the emotion picture,
The step of searching mapping information based on the keywords and determining at least one expression picture corresponding to the keywords comprises the following steps:
matching the keywords with expression keywords, and determining expression keywords matched with the keywords;
and searching at least one expression picture corresponding to the matched expression keyword according to the mapping relation.
5. The method of claim 1, wherein the display area comprises at least one of: candidate area, association area, keyboard area.
6. The method of claim 1, wherein the updated emoji pictures corresponding to other keywords in the display area include related series pictures of the series to which the onscreen emoji picture belongs.
7. The method according to claim 1 or 6, further comprising:
And acquiring an on-screen instruction based on the updated display area, and on-screen the expression picture corresponding to the on-screen instruction.
8. An information recommendation device, characterized by comprising:
The extraction module is used for acquiring the input content and extracting at least one keyword corresponding to the input content;
the searching module is used for searching the expression pictures corresponding to the keywords, wherein each keyword corresponds to at least one expression picture;
the display module is used for displaying the expression pictures;
The apparatus further comprises:
The screening module is used for acquiring the associated information, wherein the associated information comprises context information and/or user behavior data; screening the expression pictures according to the associated information;
The display module is specifically used for displaying the expression picture in a display area of the input method; when the keyword corresponds to a plurality of expression pictures, the expression pictures corresponding to the keyword are displayed in a column of the display area in a rolling mode;
more than one keyword, the device further comprises:
The first screen-on module is used for acquiring a screen-on instruction based on the display area and screening the expression picture corresponding to the screen-on instruction; if the input method does not acquire the on-screen instruction within a set time after the expression picture is displayed, deleting the expression picture;
The region updating module is used for determining keywords corresponding to the expression pictures on the screen, deleting the expression pictures corresponding to the keywords from the display region and updating the display region; and if the screen-on instruction is not acquired again within the set time after the screen-on instruction is acquired by the input method, deleting the expression picture.
9. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
The extraction module is specifically used for performing word segmentation on the input content to obtain word segmentation fragments; and determining at least one keyword corresponding to the input content based on the word segmentation segment.
10. The apparatus of claim 8, wherein more than one keyword,
The searching module is used for searching mapping information for each keyword based on the keywords and determining at least one expression picture corresponding to the keywords.
11. The apparatus of claim 10, wherein the mapping information comprises a mapping relationship between an expression keyword and an expression picture, and wherein the search module comprises:
The matching sub-module is used for matching the keywords with the expression keywords and determining the expression keywords matched with the keywords;
And the picture searching sub-module is used for searching at least one expression picture corresponding to the matched expression keyword according to the mapping relation.
12. The device of claim 8, wherein the display area comprises at least one of: candidate area, association area, keyboard area.
13. The device of claim 8, wherein the updated emoji pictures corresponding to other keywords in the display area include related series pictures of the series to which the onscreen emoji picture belongs.
14. The apparatus according to claim 8 or 13, wherein the apparatus further comprises:
And the second screen-on module is used for acquiring a screen-on instruction based on the updated display area and screen-on the expression picture corresponding to the screen-on instruction.
15. A readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information recommendation method according to any of the method claims 1-7.
16. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring input content, and extracting at least one keyword corresponding to the input content;
searching expression pictures corresponding to the keywords, wherein each keyword corresponds to at least one expression picture;
displaying the expression picture;
The instructions further include the step of screening the emoticons:
acquiring associated information, wherein the associated information comprises context information and/or user behavior data;
Screening the expression pictures according to the associated information;
The displaying the expression picture comprises the following steps: displaying the expression picture in a display area of an input method; when the keyword corresponds to a plurality of expression pictures, the expression pictures corresponding to the keyword are displayed in a column of the display area in a rolling mode;
When more than one keyword is displayed, acquiring a screen-on instruction based on the display area, and screen-on the expression picture corresponding to the screen-on instruction; if the input method does not acquire the on-screen instruction within a set time after the expression picture is displayed, deleting the expression picture;
Determining a keyword corresponding to the expression picture on the screen, deleting the expression picture corresponding to the keyword from the display area and updating the display area; and if the screen-on instruction is not acquired again within the set time after the screen-on instruction is acquired by the input method, deleting the expression picture.
17. The electronic device of claim 16, wherein the extracting at least one keyword corresponding to the entered content comprises:
Performing word segmentation processing on the input content to obtain word segmentation fragments;
and determining at least one keyword corresponding to the input content based on the word segmentation segment.
18. The electronic device of claim 16, wherein the keyword is more than one, and the searching for the emoticon corresponding to the keyword comprises:
And searching mapping information for each keyword based on the keywords, and determining at least one expression picture corresponding to the keywords.
19. The electronic device of claim 18, wherein the mapping information comprises a mapping relationship between an expressive keyword and an expressive picture,
The step of searching mapping information based on the keywords and determining at least one expression picture corresponding to the keywords comprises the following steps:
matching the keywords with expression keywords, and determining expression keywords matched with the keywords;
and searching at least one expression picture corresponding to the matched expression keyword according to the mapping relation.
20. The electronic device of claim 16, wherein the presentation area comprises at least one of: candidate area, association area, keyboard area.
21. The electronic device of claim 16, wherein the updated emoji pictures corresponding to other keywords in the display area include related series pictures of the series to which the onscreen emoji picture belongs.
22. The electronic device of claim 16 or 21, further comprising instructions for:
And acquiring an on-screen instruction based on the updated display area, and on-screen the expression picture corresponding to the on-screen instruction.
CN201811184678.4A 2018-10-11 2018-10-11 Information recommendation method, device and electronic equipment Active CN111046210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811184678.4A CN111046210B (en) 2018-10-11 2018-10-11 Information recommendation method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811184678.4A CN111046210B (en) 2018-10-11 2018-10-11 Information recommendation method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111046210A CN111046210A (en) 2020-04-21
CN111046210B true CN111046210B (en) 2024-08-09

Family

ID=70229245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811184678.4A Active CN111046210B (en) 2018-10-11 2018-10-11 Information recommendation method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111046210B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199032A (en) * 2020-09-30 2021-01-08 北京搜狗科技发展有限公司 Expression recommendation method and device and electronic equipment
CN114721526A (en) * 2020-12-22 2022-07-08 北京搜狗科技发展有限公司 Input method and device and electronic equipment
CN112308172B (en) * 2020-12-24 2022-04-01 北京达佳互联信息技术有限公司 Identification method and device and electronic equipment
CN113297359B (en) * 2021-04-23 2023-11-28 阿里巴巴新加坡控股有限公司 Method and device for information interaction
CN115190366B (en) * 2022-07-07 2024-03-29 北京字跳网络技术有限公司 Information display method, device, electronic equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570106A (en) * 2016-11-01 2017-04-19 北京百度网讯科技有限公司 Method and device for converting voice information into expression in input process
CN106648130A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Emoticon input method and system
CN107070779A (en) * 2015-05-29 2017-08-18 北京搜狗科技发展有限公司 A kind of information processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009049833A1 (en) * 2009-10-16 2011-04-21 Deutsche Telekom Ag Deletion of words or word components on a screen
CN104077035B (en) * 2013-03-25 2018-06-05 北京搜狗科技发展有限公司 The delet method and device of screen content are treated in a kind of input method
CN104834677A (en) * 2015-04-13 2015-08-12 苏州天趣信息科技有限公司 Facial expression image displaying method and apparatus based on attribute category, and terminal
US10846475B2 (en) * 2015-12-23 2020-11-24 Beijing Xinmei Hutong Technology Co., Ltd. Emoji input method and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070779A (en) * 2015-05-29 2017-08-18 北京搜狗科技发展有限公司 A kind of information processing method and device
CN106648130A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Emoticon input method and system
CN106570106A (en) * 2016-11-01 2017-04-19 北京百度网讯科技有限公司 Method and device for converting voice information into expression in input process

Also Published As

Publication number Publication date
CN111046210A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111046210B (en) Information recommendation method, device and electronic equipment
TWI720062B (en) Voice input method, device and terminal equipment
WO2022237129A1 (en) Video recording method and apparatus, device, medium and program
WO2017031875A1 (en) Method and apparatus for changing emotion icon in chat interface, and terminal device
WO2017084183A1 (en) Information displaying method and device
CN110147467A (en) A kind of generation method, device, mobile terminal and the storage medium of text description
CN111198620B (en) A method, device and apparatus for presenting input candidates
CN110704647B (en) Content processing method and device
CN104636164B (en) Start page generation method and device
WO2017080084A1 (en) Font addition method and apparatus
CN104268151B (en) contact person grouping method and device
CN106777016B (en) Method and device for information recommendation based on instant messaging
WO2015180382A1 (en) Method and device for managing instant message
CN106547850A (en) Expression annotation method and device
CN111831132B (en) Information recommendation method, device and electronic device
CN105187597B (en) A kind of management method of voice record, device and its mobile terminal
WO2019165902A1 (en) Method and device for generating and displaying data object information
WO2016197549A1 (en) Searching method and apparatus
CN107870721A (en) Method and device for displaying search results and device for displaying search results
CN111679746B (en) Input method, device and electronic device
CN106776990B (en) Information processing method and device and electronic equipment
CN107846347B (en) Communication content processing method and device and electronic equipment
CN112445348B (en) Expression processing method, device and medium
CN103970831A (en) Icon recommending method and device
WO2019196527A1 (en) Data processing method, apparatus and electronic device

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
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment