Movatterモバイル変換


[0]ホーム

URL:


CN107102744A - A kind of recommendation method and electronic equipment for inputting vocabulary - Google Patents

A kind of recommendation method and electronic equipment for inputting vocabulary
Download PDF

Info

Publication number
CN107102744A
CN107102744ACN201710384236.3ACN201710384236ACN107102744ACN 107102744 ACN107102744 ACN 107102744ACN 201710384236 ACN201710384236 ACN 201710384236ACN 107102744 ACN107102744 ACN 107102744A
Authority
CN
China
Prior art keywords
vocabulary
input
personal information
information
contact person
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.)
Granted
Application number
CN201710384236.3A
Other languages
Chinese (zh)
Other versions
CN107102744B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201710384236.3ApriorityCriticalpatent/CN107102744B/en
Publication of CN107102744ApublicationCriticalpatent/CN107102744A/en
Application grantedgrantedCritical
Publication of CN107102744BpublicationCriticalpatent/CN107102744B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供一种输入词汇的推荐方法和电子设备,该方法可包括:在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。本发明实施例可以根据不同的聊天对象的词汇库,向用户推荐与所述输入内容相匹配的可选输入词汇,从而提高所述电子设备推荐输入词汇的准确率。

Embodiments of the present invention provide a vocabulary input recommendation method and an electronic device, the method may include: when the electronic device displays a chat session interface, acquiring the personal information of the chat object in the chat session interface; In the corresponding relationship between the personal information of the contact person and the vocabulary base, search for the target vocabulary base corresponding to the personal information of the chat object; according to the input content in the chat session interface, search the target vocabulary base for Enter an optional input vocabulary whose content matches and recommend said optional input vocabulary. The embodiments of the present invention can recommend optional input vocabulary matching the input content to the user according to vocabulary databases of different chat objects, thereby improving the accuracy of the electronic device in recommending input vocabulary.

Description

Translated fromChinese
一种输入词汇的推荐方法和电子设备A recommended method and electronic device for inputting vocabulary

技术领域technical field

本发明涉及通信技术领域,特别涉及一种输入词汇的推荐方法和电子设备。The invention relates to the field of communication technology, in particular to a method for recommending input vocabulary and an electronic device.

背景技术Background technique

随着移动通讯技术的发展,人们使用电子设备进行网络聊天的方式越来越常见,而对于网络聊天中的信息聊天方式,电子设备通常是采用各种输入法来辅助用户输入聊天内容。目前,现有输入法大都是根据用户的输入习惯、历史记录以及词汇的使用频率等来为用户推荐智能联想输入词汇,从而达到提高输入效率的目的,然而,这种统一的推荐方式易导致推荐的联想输入词汇不够准确。可见,现有电子设备采用的输入词汇的推荐方法存在推荐准确性较差的问题。With the development of mobile communication technology, it is more and more common for people to use electronic devices for online chatting. For information chatting in online chatting, electronic devices usually use various input methods to assist users to input chatting content. At present, most of the existing input methods recommend intelligent associative input words for users based on their input habits, historical records, and frequency of use of words, so as to achieve the purpose of improving input efficiency. However, this unified recommendation method easily leads to recommendation The associative input vocabulary of is not accurate enough. It can be seen that the recommendation method for input vocabulary adopted by the existing electronic device has the problem of poor recommendation accuracy.

发明内容Contents of the invention

本发明实施例提供一种输入词汇的推荐方法和电子设备,以解决现有电子设备采用的输入词汇的推荐方法存在推荐准确性较差的问题。Embodiments of the present invention provide a method for recommending input vocabulary and an electronic device, so as to solve the problem of poor recommendation accuracy in existing electronic device recommendation methods for input vocabulary.

第一方面,本发明实施例提供一种输入词汇的推荐显示方法,应用于电子设备,所述方法包括:In the first aspect, an embodiment of the present invention provides a method for displaying recommendations for input vocabulary, which is applied to electronic devices, and the method includes:

在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;When the electronic device displays the chat session interface, acquiring the personal information of the chat object in the chat session interface;

在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;Searching for a target vocabulary corresponding to the chat object's personal information in the predefined correspondence between the contact's personal information and the vocabulary;

根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。According to the input content in the chat session interface, an optional input vocabulary matching the input content is searched in the target vocabulary database, and the optional input vocabulary is recommended.

第二方面,本发明实施例还提供一种电子设备,包括:In the second aspect, the embodiment of the present invention also provides an electronic device, including:

获取模块,用于在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;An acquisition module, configured to acquire the personal information of the chat object in the chat session interface when the electronic device displays the chat session interface;

查找模块,用于在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;A search module, configured to search for a target vocabulary base corresponding to the chat object's personal information in the predefined correspondence between the contact's personal information and the vocabulary base;

推荐模块,用于根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。The recommending module is configured to search the target vocabulary library for optional input vocabulary matching the input content according to the input content in the chat session interface, and recommend the optional input vocabulary.

第三方面,本发明实施例还提供一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明实施例中的输入词汇的推荐方法中的步骤。In the third aspect, the embodiment of the present invention also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the present invention when executing the computer program Steps in the method for recommending input vocabulary in the embodiment.

本发明实施例中,在电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。这样,所述电子设备可以根据不同的聊天对象的词汇库,向用户推荐与所述输入内容相匹配的可选输入词汇,从而提高所述电子设备推荐输入词汇的准确率。In the embodiment of the present invention, when the electronic device displays the chat session interface, the personal information of the chat object in the chat session interface is obtained; in the predefined correspondence between the personal information of the contact person and the vocabulary, search for the The target vocabulary library corresponding to the personal information of the object; according to the input content in the chat session interface, search for optional input vocabulary matching the input content in the target vocabulary library, and recommend the optional input vocabulary . In this way, the electronic device can recommend optional input vocabulary matching the input content to the user according to the vocabulary database of different chatting objects, thereby improving the accuracy of the electronic device in recommending input vocabulary.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1是本发明实施例提供的一种输入词汇的推荐方法的流程示意图;FIG. 1 is a schematic flowchart of a method for recommending an input vocabulary provided by an embodiment of the present invention;

图2是本发明实施例提供的一种短信聊天会话界面示意图;Fig. 2 is a schematic diagram of a short message chat session interface provided by an embodiment of the present invention;

图3是本发明实施例提供的一种联系人个人信息与词汇库的对应关系的示意图;Fig. 3 is a schematic diagram of a corresponding relationship between a contact person's personal information and a vocabulary library provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种输入词汇的推荐方法的流程示意图;FIG. 4 is a schematic flowchart of another method for recommending input vocabulary provided by an embodiment of the present invention;

图5是本发明实施例提供的一种建立词汇库的流程示意图;FIG. 5 is a schematic flow chart of establishing a vocabulary library provided by an embodiment of the present invention;

图6是本发明实施例提供的一种联系人数据库的示意图;Fig. 6 is a schematic diagram of a contact database provided by an embodiment of the present invention;

图7是本发明实施例提供的一种电子设备的结构示意图;Fig. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图8是本发明实施例提供的另一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图9是本发明实施例提供的另一种电子设备的结构示意图;FIG. 9 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图10是本发明实施例提供的另一种电子设备的结构示意图;FIG. 10 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图11是本发明实施例提供的另一种电子设备的结构示意图;Fig. 11 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图12是本发明实施例提供的另一种电子设备的结构示意图。Fig. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

请参阅图1,图1是本发明实施例提供的一种输入词汇的推荐方法的流程示意图,应用于电子设备,如图1所示,所述方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for recommending input vocabulary provided by an embodiment of the present invention, which is applied to an electronic device. As shown in FIG. 1, the method includes the following steps:

步骤101、在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息。Step 101. When the electronic device displays a chat session interface, acquire personal information of a chat object in the chat session interface.

上述聊天会话界面可以理解为所述电子设备通过各种即时通讯软件向所述聊天对象发送消息的会话界面,例如:所述电子设备通过短信与向所述聊天对象发送信息,或所述电子设备通过微信向所述聊天对象发送消息等。上述获取所述聊天会话界面中的聊天对象的个人信息可以是获取所述聊天对象的昵称、号码和头像等信息。例如:如图2所示,所述电子设备显示短信聊天会话界面时,通过捕获所述短信聊天会话界面显示的信息,可以直接获取到聊天对象的姓名、手机号码或头像信息,更进一步地,还可以通过所述短信聊天会话界面显示的姓名,从所述电子设备的通讯录中查找到与该姓名匹配的手机号码,从而可以获取到所述聊天对象的个人信息。The above chat session interface can be understood as a session interface for the electronic device to send messages to the chat object through various instant messaging software, for example: the electronic device sends information to the chat object through a short message, or the electronic device Send messages, etc. to the chat object via WeChat. The acquisition of the personal information of the chat object in the chat session interface may be acquisition of the chat object's nickname, number, avatar and other information. For example: as shown in Figure 2, when the electronic device displays the short message chat session interface, by capturing the information displayed on the short message chat session interface, the name, mobile phone number or avatar information of the chat object can be directly obtained, and further, It is also possible to find the mobile phone number matching the name from the address book of the electronic device through the name displayed on the short message chat session interface, so that the personal information of the chat object can be obtained.

在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息,这样可以所述电子设备通过所述聊天对象的个人信息,查找到与所述聊天对象的个人信息对应的目标词汇库。When the electronic device displays the chat session interface, obtain the personal information of the chat object in the chat session interface, so that the electronic device can find the personal information of the chat object through the personal information of the chat object corresponding target vocabulary.

步骤102、在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库。Step 102 , in the predefined correspondence between the personal information of the contact and the vocabulary, search for a target vocabulary corresponding to the personal information of the chat partner.

上述联系人个人信息与词汇库的对应关系可以是预先定义的,即所述电子设备预定定义了联系人个人信息与词汇库的对应关系,如图3所示,每一个联系人个人信息分别对应一个词汇库,且每个联系人分别具备不同的号码信息。所述电子设备可以是预先获取各种即时通讯软件中通讯录的联系人的个人信息,并分别建立每个联系人的词汇库,以使所述电子设备与某个特定的联系人会话时,可以根据该联系人查找到对应的词汇库,并通过该词汇库查找需要推荐的可选输入词汇。The corresponding relationship between the personal information of the contact person and the vocabulary database may be predefined, that is, the electronic device predefines the corresponding relationship between the personal information of the contact person and the vocabulary database. As shown in FIG. 3 , each personal information of the contact person corresponds to One vocabulary base, and each contact has different number information. The electronic device may pre-obtain the personal information of contacts in the address book in various instant messaging software, and establish a vocabulary library for each contact, so that when the electronic device talks to a specific contact, The corresponding vocabulary base can be found according to the contact person, and the optional input vocabulary to be recommended can be found through the vocabulary base.

所述目标词汇库可以是根据所述电子设备与所述聊天对象的输入行为和输入记录确定的,即通过统计所述电子设备与所述聊天对象的所有会话记录中输入频率较高的词汇,以及分析所述电子设备与所述聊天对象会话时的输入习惯,建立与所述聊天对象对应的所述目标词汇库,以使所述电子设备与所述聊天对象会话时,可以通过查找和所述目标词汇库中的内容来匹配推荐可选输入词汇。The target vocabulary can be determined according to the input behavior and input records between the electronic device and the chat object, that is, by counting the words with higher input frequency in all conversation records between the electronic device and the chat object, And analyzing the input habits when the electronic device is in conversation with the chat object, and establishing the target vocabulary library corresponding to the chat object, so that when the electronic device is in conversation with the chat object, it can search and use The content in the described target vocabulary is matched to the recommended optional input vocabulary.

步骤103、根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。Step 103 , according to the input content in the chat session interface, search the target vocabulary database for optional input vocabulary matching the input content, and recommend the optional input vocabulary.

上述输入内容可以是所述电子设备通过调用拼音输入法在所述聊天会话界面中输入的某个词汇的拼音,也可以是调用五笔输入法在所述聊天会话界面中输入的某个词汇的笔画,例如:所述电子设备调用拼音输入法输入“信息”的拼音“xinxi”,或调用五笔输入法输入“信”的笔画“丿丨丶”。所述可选输入词汇是所述目标词汇库中记录的与所述输入内容匹配的内容,例如:所述输入内容为“xinxi”时,通过查找所述目标词汇库,得到输入内容为“xinxi”时的输入记录有三个词汇“信息”、“欣喜”和“心细”,则所述可选输入词汇为“信息”、“欣喜”和“心细”。The above-mentioned input content may be the pinyin of a certain vocabulary input by the electronic device in the chat session interface by calling the pinyin input method, or it may be the strokes of a certain vocabulary input in the chat session interface by calling the Wubi input method , For example: the electronic device calls the pinyin input method to input the pinyin "xinxi" of "information", or calls the Wubi input method to input the stroke "丿丨丨" of "xin". The optional input vocabulary is the content recorded in the target vocabulary that matches the input content, for example: when the input content is "xinxi", by searching the target vocabulary, the input content is "xinxi" "When the input record has three words "information", "happy" and "careful", then the optional input vocabulary is "information", "happy" and "careful".

所述推荐所述可选输入词汇可以是将在所述目标词汇库中查找到的与所述输入内容匹配的联想词汇推荐到所述聊天会话界面中的输入法词汇显示界面,这样,所述电子设备可以根据用户与所述聊天对象的输入行为和记录来推荐匹配度更高的输入词汇,从而提高所述电子设备推荐输入词汇的准确率。更进一步地,所述目标词汇库可以对所述可选输入词汇按所述电子设备与所述聊天对象的所有会话记录中输入的频率进行优先级排序,即将输入频率最高的一组词汇设置为最高优先级,例如:所述可选输入词汇为“信息”、“欣喜”和“心细”时,所述目标词汇中统计的这三组可选输入词汇的输入频率依次为10次、8次、5次,则将“信息”的优先级设为最高,“心细”的优先级设为最低。这样可使所述电子设备优先推荐输入频率最高的一组词汇,从而使推荐的所述可选输入词汇与所述输入内容相匹配的可能性更大,因而能更好地保证推荐的所述可选输入词汇的准确性。The recommending the optional input vocabulary may be recommending the associative vocabulary found in the target vocabulary bank and matching the input content to the input method vocabulary display interface in the chat session interface, so that the The electronic device can recommend input vocabulary with a higher matching degree according to the input behavior and records of the user and the chat object, thereby improving the accuracy of the electronic device in recommending input vocabulary. Further, the target vocabulary can prioritize the optional input vocabulary according to the frequency of input in all conversation records between the electronic device and the chat object, that is, set a group of vocabulary with the highest input frequency as The highest priority, for example: when the optional input vocabulary is "information", "happy" and "careful", the input frequencies of these three groups of optional input vocabulary in the target vocabulary are 10 times and 8 times in turn , 5 times, the priority of "information" is set to the highest, and the priority of "careful" is set to the lowest. In this way, the electronic device can preferentially recommend a group of words with the highest input frequency, so that the possibility of matching the recommended optional input words with the input content is greater, and thus the recommended The accuracy of the optional input vocabulary.

本实施例中,上述电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、台式电脑(Desktop Computer)、个人数字助理(PersonalDigital Assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等终端设备。In this embodiment, the above-mentioned electronic equipment may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a desktop computer (Desktop Computer), a personal digital assistant (Personal Digital Assistant, referred to as PDA), a mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device) and other terminal equipment.

本发明实施例中,在电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。这样,所述电子设备可以根据不同的聊天对象的词汇库,向用户推荐与所述输入内容相匹配的可选输入词汇,从而提高所述电子设备推荐输入词汇的准确率。In the embodiment of the present invention, when the electronic device displays the chat session interface, the personal information of the chat object in the chat session interface is obtained; in the predefined correspondence between the personal information of the contact person and the vocabulary, search for the The target vocabulary library corresponding to the personal information of the object; according to the input content in the chat session interface, search for optional input vocabulary matching the input content in the target vocabulary library, and recommend the optional input vocabulary . In this way, the electronic device can recommend optional input vocabulary matching the input content to the user according to the vocabulary database of different chatting objects, thereby improving the accuracy of the electronic device in recommending input vocabulary.

请参阅图4,图4是本发明实施例提供的另一种输入词汇的推荐方法的流程示意图,应用于电子设备。该实施例在图1所示的实施例的基础上,对所述获取所述聊天会话界面中的聊天对象的个人信息的步骤进行解释说明。如图4所示,所述方法包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another method for recommending input vocabulary provided by an embodiment of the present invention, which is applied to an electronic device. In this embodiment, on the basis of the embodiment shown in FIG. 1 , the step of acquiring the personal information of the chat object in the chat session interface is explained. As shown in Figure 4, the method includes the following steps:

步骤401、在所述电子设备显示聊天会话界面时,对所述聊天会话界面进行截图操作,并解析通过所述截图操作获取的所述聊天会话界面截图中的聊天对象信息。Step 401. When the electronic device displays a chat session interface, perform a screenshot operation on the chat session interface, and analyze chat object information in the chat session interface screenshot obtained through the screenshot operation.

上述聊天对象信息可以是所述聊天对象的昵称、头像或号码等信息,所述号码可以是手机号码、即时通讯号码、社交网络号码、公司企业服务类号码或者电子邮件号码等任何可以进行聊天会话的号码。The above-mentioned chat object information can be information such as the nickname, avatar or number of the chat object, and the number can be a mobile phone number, an instant messaging number, a social network number, a company service number or an email number, etc. number.

上述对所述聊天会话界面进行截图操作可以获取所述聊天会话界面的截图,通过所述截图可以获取到一些基本的信息,例如:与所述电子设备会话的聊天对象的昵称、号码和头像,以及聊天记录等信息。因此,通过对所述截图进行解析,可以从中提取出所述聊天对象信息,进而可使所述电子设备根据所述聊天对象信息确定所述聊天对象的个人信息。The screenshot operation of the above-mentioned chat session interface can obtain the screenshot of the chat session interface, and some basic information can be obtained through the screenshot, such as: the nickname, number and avatar of the chat object with the electronic device conversation, and chat history and other information. Therefore, by parsing the screenshot, the chatting object information can be extracted therefrom, and then the electronic device can determine the chatting object's personal information according to the chatting object information.

可选的,在步骤401之前,所述方法还可以包括如下步骤:Optionally, before step 401, the method may also include the following steps:

根据所述电子设备的通讯录中的联系人的个人信息,建立联系人个人信息与词汇库的对应关系,其中,一个联系人个人信息对应一个词汇库;According to the personal information of the contact in the address book of the electronic device, establish a corresponding relationship between the personal information of the contact and the vocabulary, wherein one personal information of the contact corresponds to one vocabulary;

收集所述电子设备与每个联系人的输入行为和输入记录,并通过对每个联系人的输入行为和输入记录进行数据统计分析,确定每个联系人个人信息所对应的词汇库中的预设推荐输入词汇。Collecting the input behavior and input records of the electronic device and each contact person, and performing statistical analysis on the input behavior and input records of each contact person, to determine the predetermined vocabulary in the vocabulary corresponding to the personal information of each contact person. Set the recommended input vocabulary.

上述电子设备的通讯录包括所述电子设备的手机号码通讯录以及其他即时通讯软件的通讯录。上述根据所述电子设备的通讯录中的联系人的个人信息,建立联系人个人信息与词汇库的对应关系,可以是获取所述电子设备的通讯录中的所有联系人的号码信息,并对每个联系人号码信息分别建立一个词汇库,这样,不同的联系人有不同的词汇库。The address book of the electronic device includes the mobile phone number address book of the electronic device and the address book of other instant messaging software. According to the personal information of the contacts in the address book of the electronic device, establishing the corresponding relationship between the personal information of the contacts and the vocabulary library may be to obtain the number information of all the contacts in the address book of the electronic device, and Each contact number information establishes a vocabulary base respectively, so that different contacts have different vocabulary bases.

该实施方式中,当所述电子设备向所述通讯录中的联系人发送消息时,便收集所述电子设备的输入行为和输入记录,以使所述电子设备对所述输入行为和输入记录进行数据统计分析。上述通过对每个联系人的输入行为和输入记录进行数据统计分析,包括对每个联系人的输入记录进行数据统计,以及对每个联系人的输入行为进行分析。In this embodiment, when the electronic device sends a message to a contact in the address book, the input behavior and input record of the electronic device are collected, so that the electronic device Perform statistical analysis of data. The above-mentioned statistical analysis of the input behavior and input records of each contact includes statistical analysis of the input records of each contact and analysis of the input behavior of each contact.

所述对每个联系人的输入记录进行数据统计即为对所述电子设备向每个联系人输入的内容和次数进行统计,例如:统计出所述电子设备向某个联系人输入内容为“信息”的词汇共计5次。所述对每个联系人的输入行为进行分析,即为对所述电子设备向每个联系人输入内容的方式和选择的结果进行分析,例如:分析出所述电子设备向某个联系人输入“xx”时,选择了“信息”一词作为输入内容。这样,根据对每个联系人的输入行为和输入记录进行数据统计分析的结果,可以确定每个联系人所对应的词汇库中的预设推荐输入词汇,其中,所述预设推荐输入词汇为每个联系人所对应的词汇库中预先设置的预推荐输入词汇。例如:根据统计出的所述电子设备向某个联系人输入内容为“信息”的词汇共计5次,以及分析出的所述电子设备向某个联系人输入“xx”时,选择了“信息”一词作为输入内容,可以在该联系人的词汇库中预先设置输入内容为“xx”或“xinxi”的预推荐输入词汇为“信息”。每个联系人的词汇库的建立流程可以如图5所示。The data statistics of the input records of each contact is to count the content and times of input of the electronic device to each contact, for example: it is counted that the input content of the electronic device to a contact is " The vocabulary of "information" has a total of 5 times. The analysis of the input behavior of each contact is to analyze the way and selection results of the electronic device input content to each contact, for example: analyze the input behavior of the electronic device to a certain contact "xx", the word "information" was selected as input. In this way, according to the results of data statistical analysis on the input behavior and input records of each contact, the preset recommended input vocabulary in the vocabulary library corresponding to each contact can be determined, wherein the preset recommended input vocabulary is Pre-set pre-recommended input vocabulary in the vocabulary library corresponding to each contact. For example: according to the statistics, the electronic device has input the word "information" to a contact for a total of 5 times, and it has been analyzed that when the electronic device inputs "xx" to a contact, it selects "information". "" is used as the input content, and the pre-recommended input vocabulary with the input content "xx" or "xinxi" can be preset as "information" in the vocabulary database of the contact. The establishment process of the vocabulary base of each contact may be shown in FIG. 5 .

该实施方式中,通过预先建立联系人个人信息与词汇库的对应关系,以及通过对每个联系人的输入行为和输入记录进行数据统计分析,确定每个联系人所对应的词汇库中的预设推荐输入词汇,可以使所述电子设备根据不同的聊天对象,通过不同的词汇库来推荐与该聊天对象更具相关性的输入词汇,从而可以提高所述电子设备推荐的输入词汇的准确率。In this embodiment, by pre-establishing the corresponding relationship between the personal information of the contact and the vocabulary, and by statistically analyzing the input behavior and input records of each contact, the predetermined number in the vocabulary corresponding to each contact is determined. Assuming that the input vocabulary is recommended, the electronic device can recommend input vocabulary that is more relevant to the chat object through different vocabulary bases according to different chat objects, thereby improving the accuracy of the input vocabulary recommended by the electronic device .

步骤402、若所述聊天对象信息中包括所述聊天对象的号码信息,则将所述号码信息保存为所述聊天对象的个人信息。Step 402, if the chat object information includes the number information of the chat object, save the number information as the chat object's personal information.

上述聊天对象的个人信息可以理解为主要是包括所述聊天对象的号码信息,对于所述电子设备上的任一种即时通讯软件,该即时通讯软件中某一联系人的号码信息是唯一可以区别于其他联系人的特征,而不同的联系人的昵称和头像等信息都可以是相同的。因此,只有确定所述聊天对象的号码信息才可以根据所述聊天对象的号码信息确定所述聊天对象的个人信息,从而根据所述聊天对象的个人信息找到对应的词汇库。The personal information of the above-mentioned chat object can be understood as mainly including the number information of the chat object. For any instant messaging software on the electronic device, the number information of a contact in the instant messaging software is the only one that can be distinguished. According to the characteristics of other contacts, information such as nicknames and avatars of different contacts may be the same. Therefore, only by determining the number information of the chat object can the personal information of the chat object be determined according to the number information of the chat object, so as to find a corresponding vocabulary base according to the personal information of the chat object.

由于上述聊天对象信息是从所述聊天会话界面的截图中获取的,因而所述聊天对象信息有可能包括所述聊天对象的号码信息,有可能只包括所述聊天对象的昵称和头像等其他信息,而不包括所述聊天对象的号码信息。因此,该实施方式中,需要确定所述聊天对象的个人信息需先判断所述聊天对象信息中是否包括所述聊天对象的号码信息。若在步骤401中获取的所述聊天对象信息中包括所述聊天对象的号码信息,则可以将所述号码信息保存为所述聊天对象的个人信息,以使所述电子设备可以根据所述号码信息确定与所述聊天对象对应的词汇库。Since the above-mentioned chat object information is obtained from the screenshot of the chat session interface, the chat object information may include the chat object's number information, and may only include other information such as the chat object's nickname and avatar , without including the number information of the chat partner. Therefore, in this embodiment, to determine the personal information of the chat object, it is first necessary to determine whether the chat object information includes the number information of the chat object. If the chat object information obtained in step 401 includes the number information of the chat object, the number information can be saved as the chat object's personal information, so that the electronic device can The information identifies a vocabulary base corresponding to the chat object.

步骤403、若所述聊天对象信息中不包括所述聊天对象的号码信息,则在预先建立的联系人数据库中查找所述聊天对象的个人信息,其中,所述联系人数据库包括所述电子设备的通讯录中的联系人的个人信息,且所述联系人的个人信息包括联系人的号码信息。Step 403: If the chat object information does not include the number information of the chat object, search for the personal information of the chat object in a pre-established contact database, wherein the contact database includes the electronic device The personal information of the contact in the address book of the contact, and the personal information of the contact includes the number information of the contact.

所述联系人数据库可以是预先建立的,即所述联系人数据库是通过预先获取的所述电子设备的即时通讯软件中通讯录的联系人来建立的,且所述联系人数据库可以由多个联系人关系表组成。其中,每一个联系人关系表中均可以包括一个联系人的昵称、头像和该联系人的所有号码等信息,该联系人的所有号码可以包括手机号码、即时通讯号码或电子邮件号码等。例如:通过读取所述电子设备的手机号码通讯录,可以建立该手机号码通讯录中的联系人关系表,通过读取其他即时通讯软件的通讯录,也可以建立该通讯录中的联系人关系表,且若该通讯录中的联系人有匹配手机号码的,则可以将这两个联系人关系表进行结合,将具备相同的手机号码的联系人建立一个联系人关系表,这样就可以以手机号码为依据,建立起如图6所示的联系人数据库。The contact database can be pre-established, that is, the contact database is established through pre-acquired contacts in the address book of the instant messaging software of the electronic device, and the contact database can be composed of multiple Contact relationship table composition. Wherein, each contact relationship table may include information such as a contact's nickname, avatar, and all numbers of the contact, and all numbers of the contact may include mobile phone numbers, instant messaging numbers, or email numbers. For example: by reading the mobile phone number address book of the electronic device, the contact relationship table in the mobile phone number address book can be established, and by reading the address book of other instant messaging software, the contacts in the address book can also be established relationship table, and if the contacts in the address book have matching mobile phone numbers, the two contact relationship tables can be combined to create a contact relationship table for contacts with the same mobile phone number, so that Based on the mobile phone number, a contact database as shown in Figure 6 is established.

因此,若在步骤401中获取的所述聊天对象信息中不包括所述聊天对象的号码信息,则可以在预先建立的所述述联系人数据库中查找所述聊天对象的个人信息,从而使所述电子设备可以根据所述聊天对象的个人信息确定与所述聊天对象对应的词汇库。Therefore, if the chat object information obtained in step 401 does not include the number information of the chat object, the personal information of the chat object can be searched in the pre-established contact database, so that the chat object The electronic device may determine the vocabulary base corresponding to the chat object according to the personal information of the chat object.

需要说明的是,步骤401-步骤403在本实施例中是可替换的,例如:可将步骤401和步骤403替换为:It should be noted that steps 401-403 are replaceable in this embodiment, for example: step 401 and step 403 can be replaced by:

在所述电子设备显示聊天会话界面时,根据在所述聊天会话界面中的输入内容,在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇。When the electronic device displays the chat session interface, according to the input content in the chat session interface, search and recommend alternatives that match the input content in a vocabulary library corresponding to the preset personal information of several contacts Enter vocabulary.

根据所述电子设备选择的备选输入词汇所对应的词汇库,确定该词汇库对应的联系人个人信息为所述聊天对象的个人信息。According to the vocabulary base corresponding to the candidate input vocabulary selected by the electronic device, it is determined that the personal information of the contact person corresponding to the vocabulary base is the personal information of the chat object.

上述在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇可以是在预设的固定数目的联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇。例如:预设10个常用的联系人个人信息对应的词汇库,这样可以缩小查找的范围,节约查找的时间。上述在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇也可以是在所有的联系人个人信息对应的词汇库中查找与所述输入内容匹配的备选输入词汇,这样可以避免漏掉任何有可能是所述聊天对象对应的词汇库。The above-mentioned searching and recommending candidate input vocabulary matching the input content in the vocabulary library corresponding to the preset personal information of several contacts may be searching in the vocabulary library corresponding to the preset fixed number of contact personal information and Suggests alternative input words that match the input content. For example: Preset 10 vocabulary bases corresponding to the personal information of frequently used contacts, which can narrow the search scope and save search time. The above-mentioned searching and recommending alternative input vocabulary matching the input content in the vocabulary bases corresponding to the preset personal information of several contacts may also be searching the vocabulary bases corresponding to the personal information of all contacts corresponding to the input vocabulary. Candidate input vocabulary that matches the content, so as to avoid missing any vocabulary that may be corresponding to the chat object.

该实施方式中,根据在所述聊天会话界面中的输入内容,在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇,其中,所述备选输入词汇可以包括若干个备选词汇,且所述若干个备选词汇可以按在所述预设的若干个联系人个人信息对应的词汇库中的使用频率进行优先推荐,以提高推荐的所述备选输入词汇的准确率,进而确保所述聊天对象的个人信息的准确性。需要说明的是,每个备选词汇可以是分别对应一个词汇库,也可是从一个词汇库中推荐多个备选词汇。In this embodiment, according to the input content in the chat session interface, search and recommend alternative input vocabulary matching the input content in the vocabulary library corresponding to the preset personal information of several contacts, wherein, the The candidate input vocabulary may include several candidate vocabulary, and the several candidate vocabulary may be preferentially recommended according to the frequency of use in the vocabulary library corresponding to the preset contact personal information, so as to improve the recommendation The accuracy rate of the candidate input vocabulary, thereby ensuring the accuracy of the chat object's personal information. It should be noted that each candidate vocabulary may correspond to a vocabulary base, or multiple candidate vocabulary may be recommended from one vocabulary base.

推荐的所述备选输入词汇是供用户通过所述电子设备选择的,故该实施方式中需根据所述电子设备选择的备选输入词汇中的某一个备选词汇,来确定该备选词汇所对应的词汇库,从而将该词汇库对应的联系人个人信息作为所述聊天对象的个人信息。The recommended candidate input vocabulary is for the user to select through the electronic device, so in this embodiment, the candidate vocabulary needs to be determined according to one of the candidate input vocabulary selected by the electronic device The corresponding vocabulary base, so that the personal information of the contact person corresponding to the vocabulary base is used as the personal information of the chat object.

步骤404、在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库。Step 404 : Search for a target vocabulary base corresponding to the chat object's personal information in the predefined correspondence between the contact's personal information and the vocabulary base.

该步骤的具体实施方式可以参见图1所示的方法实施例中步骤102的实施方式,为避免重复,这里不再赘述。For the specific implementation manner of this step, refer to the implementation manner of step 102 in the method embodiment shown in FIG. 1 , and to avoid repetition, details are not repeated here.

步骤405、根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。Step 405 , according to the input content in the chat session interface, search the target vocabulary database for optional input vocabulary matching the input content, and recommend the optional input vocabulary.

该步骤的具体实施方式可以参见图1所示的方法实施例中步骤103的实施方式,为避免重复,这里不再赘述。For the specific implementation manner of this step, reference may be made to the implementation manner of step 103 in the method embodiment shown in FIG. 1 , and details are not repeated here to avoid repetition.

可选的,步骤405可以包括:Optionally, step 405 may include:

根据所述输入内容,在所述目标词汇库中查找与所述输入内容匹配的多组可选输入词汇;According to the input content, searching multiple groups of optional input vocabulary matching the input content in the target vocabulary;

按所述目标词汇库中统计的所述多组可选输入词汇的使用频率,将所述多组可选输入词汇按使用频率从高到低的顺序进行优先级排序;According to the frequency of use of the multiple groups of optional input vocabulary counted in the target vocabulary bank, prioritizing the multiple groups of optional input vocabulary according to the order of usage frequency from high to low;

按所述优先级排序,推荐所述多组可选输入词汇。Sorting according to the priority, recommending the multiple groups of optional input vocabulary.

该实施方式中,所述可选输入词汇可以是包括多组可选输入词汇,即根据所述输入内容,在所述目标词汇库中查找与所述输入内容匹配的所述多组可选输入词汇,例如:所述输入内容为“xinx”时,在所述目标词汇库中查找到与所述输入内容匹配的多组可选输入词汇有“信息”、“新鲜”、“欣喜”、“心细”和“心想”等。In this embodiment, the optional input vocabulary may include multiple sets of optional input vocabulary, that is, according to the input content, search for the multiple sets of optional input that match the input content in the target vocabulary Vocabulary, for example: when the input content is "xinx", multiple groups of optional input vocabulary matching the input content are found in the target vocabulary bank, including "information", "fresh", "happy", " Careful" and "thinking" and so on.

上述使用频率可以理解为在所述电子设备与所述聊天对象的聊天记录中,所述电子设备发送的某个词汇的次数。上述按所述目标词汇库中统计的所述多组可选输入词汇的使用频率,将所述多组可选输入词汇按使用频率从高到低的顺序进行优先级排序,即为根据所述目标词汇库中统计的所述电子设备发送的所述多组可选输入词汇的次数,将所述多组可选输入词汇中使用频率最高的一组词汇设为最高优先级,使用频率次之的一组词汇的优先级设为第二,使用频率最低的一组词汇设为最低优先级。例如:所述多组可选输入词汇“信息”、“新鲜”、“欣喜”、“心细”和“心想”在所述目标词汇库中的使用频率依次为10次、6次、8次、2次和4次,则所述多组可选输入词汇“信息”、“新鲜”、“欣喜”、“心细”和“心想”按使用频率进行优先级排序后的结果为“信息”、“欣喜”、“新鲜”、“心想”和“心细”。The frequency of use above can be understood as the number of times a word is sent by the electronic device in the chat record between the electronic device and the chat partner. According to the frequency of use of the multiple groups of optional input vocabulary counted in the target vocabulary, the multiple groups of optional input vocabulary are prioritized according to the order of usage frequency from high to low, that is, according to the The number of times the multiple sets of optional input vocabulary sent by the electronic device is counted in the target vocabulary, and the set of vocabulary with the highest frequency of use among the multiple sets of optional input vocabulary is set as the highest priority, followed by the frequency of use The priority of the set of words is set to second, and the set of least frequently used words is set to the lowest priority. For example: the multiple groups of optional input vocabulary "information", "fresh", "happy", "careful" and "thought" in the target vocabulary are used in order of 10 times, 6 times, 8 times , 2 times and 4 times, then the multiple groups of optional input words "information", "freshness", "happy", "careful" and "thought" are prioritized according to the frequency of use and the result is "information" , "Happy", "Fresh", "Thinking" and "Careful".

上述按所述优先级排序,推荐所述多组可选输入词汇,即为按所述多组可选输入词汇的优先级排序,优先推荐所述多组可选输入词汇中优先级最高的一组词汇,优先级较低的词汇排在优先级较高的词汇的后面。其中,所述优先推荐所述多组可选输入词汇中优先级最高的一组词汇可以理解为将优先级最高的一组词汇显示在所述聊天会话界面中的输入法词汇显示界面的第一位,第二优先级的词汇显示在所述输入法词汇显示界面的第二位,其余的词汇的显示位置依此类推。这样,可使所述电子设备按所述多组可选输入词汇使用频率的高低进行优先级推荐,从而可以进一步地提高所述电子设备推荐输入词汇的准确性。The above sorting according to the priority, recommending the multiple sets of optional input vocabulary, that is, sorting according to the priority of the multiple sets of optional input vocabulary, giving priority to recommending the one with the highest priority among the multiple sets of optional input vocabulary Words with lower priority are ranked after higher priority words. Wherein, the preferentially recommending the highest-priority group of vocabulary among the multiple groups of optional input vocabulary can be understood as displaying the highest-priority group of vocabulary on the first list of the input method vocabulary display interface in the chat session interface. The words with the second priority are displayed in the second place of the vocabulary display interface of the input method, and the display positions of the remaining words are deduced by analogy. In this way, the electronic device can make priority recommendations according to the frequency of use of the multiple groups of optional input words, so that the accuracy of the electronic device's recommended input words can be further improved.

本实施例中,在图1所示的实施例的基础上对所述获取所述聊天会话界面中的聊天对象的个人信息的步骤进行解释说明,从而使所述电子设备获取所述聊天对象的个人信息的方式更加清楚明了。另外,本实施例在图1所示的实施例的基础上还增加了多种可选的实施方式,这些可选的实施方式可以相互结合实现,也可以单独实现,且都能达到提高所述电子设备推荐输入词汇的准确率的技术效果。In this embodiment, on the basis of the embodiment shown in FIG. 1, the step of obtaining the personal information of the chat object in the chat session interface is explained, so that the electronic device obtains the personal information of the chat object The way of personal information is more clear and concise. In addition, on the basis of the embodiment shown in Fig. 1, this embodiment adds a variety of optional implementations, these optional implementations can be implemented in combination with each other, or can be implemented independently, and can all achieve the improvement of the described The technical effect of the accuracy rate of the input vocabulary recommended by the electronic device.

请参阅图7,图7是本发明实施提供的一种电子设备的结构示意图,如图7所示,电子设备700包括:Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of an electronic device provided by the implementation of the present invention. As shown in FIG. 7, the electronic device 700 includes:

获取模块701,用于在所述电子设备700显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;An acquisition module 701, configured to acquire the personal information of the chat object in the chat session interface when the electronic device 700 displays the chat session interface;

查找模块702,用于在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;A search module 702, configured to search for a target vocabulary corresponding to the chat object's personal information in the predefined correspondence between the contact's personal information and the vocabulary;

推荐模块703,用于根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。The recommending module 703 is configured to, according to the input content in the chat session interface, search the target vocabulary library for optional input vocabulary matching the input content, and recommend the optional input vocabulary.

可选的,如图8所示,上述获取模块701包括:Optionally, as shown in FIG. 8, the acquisition module 701 includes:

解析单元7011,用于对所述聊天会话界面进行截图操作,并解析通过所述截图操作获取的所述聊天会话界面截图中的聊天对象信息;The parsing unit 7011 is configured to perform a screenshot operation on the chat session interface, and parse the chat object information in the chat session interface screenshot obtained through the screenshot operation;

保存单元7012,用于若所述聊天对象信息中包括所述聊天对象的号码信息,则将所述号码保存为所述聊天对象的个人信息;A saving unit 7012, configured to save the number as personal information of the chat object if the chat object information includes the number information of the chat object;

第一查找单元7013,用于若所述聊天对象信息中不包括所述聊天对象的号码信息,则在预先建立的联系人数据库中查找所述聊天对象的个人信息,其中,所述联系人数据库包括所述电子设备的通讯录中的联系人的个人信息,且所述联系人的个人信息包括联系人的号码信息。The first search unit 7013 is configured to search for the personal information of the chat object in a pre-established contact database if the chat object information does not include the number information of the chat object, wherein the contact database It includes personal information of a contact in an address book of the electronic device, and the personal information of the contact includes number information of the contact.

可选的,如图9所示,上述获取模块701包括:Optionally, as shown in FIG. 9, the acquisition module 701 includes:

第二查找单元7014,用于根据在所述聊天会话界面中的输入内容,在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇;The second search unit 7014 is configured to search and recommend alternative input vocabulary matching the input content in the vocabulary library corresponding to the preset contact personal information according to the input content in the chat session interface;

确定单元7015,用于根据所述电子设备700选择的备选输入词汇所对应的词汇库,确定该词汇库对应的联系人个人信息为所述聊天对象的个人信息。The determining unit 7015 is configured to determine, according to the vocabulary base corresponding to the candidate input vocabulary selected by the electronic device 700 , that the personal information of the contact person corresponding to the vocabulary base is the personal information of the chat object.

可选的,如图10所示,上述电子设备700还包括:Optionally, as shown in FIG. 10, the above-mentioned electronic device 700 further includes:

建立模块704,用于根据所述电子设备700的通讯录中的联系人的个人信息,建立联系人个人信息与词汇库的对应关系,其中,一个联系人个人信息对应一个词汇库;The establishment module 704 is configured to establish a corresponding relationship between a contact person's personal information and a vocabulary base according to the contact person's personal information in the address book of the electronic device 700, wherein one contact person's personal information corresponds to one vocabulary base;

确定模块705,用于收集所述电子设备700与每个联系人的输入行为和输入记录,并通过对每个联系人的输入行为和输入记录进行数据统计分析,确定每个联系人个人信息所对应的词汇库中的预设推荐输入词汇。The determination module 705 is configured to collect the input behavior and input records of the electronic device 700 and each contact, and determine the information contained in the personal information of each contact by statistically analyzing the input behavior and input records of each contact. The preset recommended input vocabulary in the corresponding vocabulary base.

可选的,如图11所示,所述推荐模块703包括:Optionally, as shown in Figure 11, the recommendation module 703 includes:

第三查找单元7031,用于根据所述输入内容,在所述目标词汇库中查找与所述输入内容匹配的多组可选输入词汇;The third searching unit 7031 is configured to search, according to the input content, multiple sets of optional input vocabulary matching the input content in the target vocabulary;

排序单元7032,用于按所述目标词汇库中统计的所述多组可选输入词汇的使用频率,将所述多组可选输入词汇按使用频率从高到低的顺序进行优先级排序;A sorting unit 7032, configured to prioritize the multiple sets of optional input vocabulary according to the frequency of use of the multiple sets of optional input vocabulary counted in the target vocabulary bank in descending order of usage frequency;

推荐单元7033,用于按所述优先级排序,推荐所述多组可选输入词汇。The recommending unit 7033 is configured to sort according to the priority and recommend the multiple sets of optional input vocabulary.

电子设备700能够实现图1和图5的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。电子设备700可以根据不同的聊天对象的词汇库,向用户推荐与所述输入内容相匹配的可选输入词汇,从而提高所述电子设备700推荐输入词汇的准确率。The electronic device 700 can implement various processes implemented by the electronic device in the method embodiments shown in FIG. 1 and FIG. 5 , and details are not repeated here to avoid repetition. The electronic device 700 can recommend optional input vocabulary matching the input content to the user according to the vocabulary database of different chatting objects, so as to improve the accuracy rate of the input vocabulary recommended by the electronic device 700 .

请参阅图12,图12是本发明实施提供的另一种电子设备的结构示意图,如图12所示,电子设备1200包括:至少一个处理器1201、存储器1202、至少一个网络接口1204和其他用户接口1203。电子设备1200中的各个组件通过总线系统1205耦合在一起。可理解,总线系统1205用于实现这些组件之间的连接通信。总线系统1205除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图12中将各种总线都标为总线系统1205。Please refer to FIG. 12, which is a schematic structural diagram of another electronic device provided by the implementation of the present invention. As shown in FIG. 12, the electronic device 1200 includes: at least one processor 1201, memory 1202, at least one network interface 1204 and other Interface 1203. Various components in the electronic device 1200 are coupled together through the bus system 1205 . It can be understood that the bus system 1205 is used to realize connection and communication between these components. In addition to the data bus, the bus system 1205 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 1205 in FIG. 12 for clarity of illustration.

其中,用户接口1203可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等)。Wherein, the user interface 1203 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, etc.).

可以理解,本发明实施例中的存储器1202可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus DRAM,DRDRAM)。本文描述的系统和方法的存储器1202旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1202 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double DataRate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And direct memory bus random access memory (Direct Rambus DRAM, DRDRAM). Memory 1202 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器1202存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统12021和应用程序12022。In some implementations, the memory 1202 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 12021 and an application program 12022 .

其中,操作系统12021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序12022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序12022中。Among them, the operating system 12021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 12022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 12022 .

在本发明实施例中,通过调用存储器1202存储的程序或指令,具体的,可以是应用程序12022中存储的程序或指令,处理器1201用于:In this embodiment of the present invention, by calling the program or instruction stored in the memory 1202, specifically, the program or instruction stored in the application program 12022, the processor 1201 is used to:

在所述电子设备显示聊天会话界面时,获取所述聊天会话界面中的聊天对象的个人信息;When the electronic device displays the chat session interface, acquiring the personal information of the chat object in the chat session interface;

在预先定义的联系人个人信息与词汇库的对应关系中,查找与所述聊天对象的个人信息对应的目标词汇库;Searching for a target vocabulary corresponding to the chat object's personal information in the predefined correspondence between the contact's personal information and the vocabulary;

根据在所述聊天会话界面中的输入内容,在所述目标词汇库中查找与所述输入内容匹配的可选输入词汇,并推荐所述可选输入词汇。According to the input content in the chat session interface, an optional input vocabulary matching the input content is searched in the target vocabulary database, and the optional input vocabulary is recommended.

上述本发明实施例揭示的方法可以应用于处理器1201中,或者由处理器1201实现。处理器1201可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1201中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1201可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1202,处理器1201读取存储器1202中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 1201 or implemented by the processor 1201 . The processor 1201 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1201 or instructions in the form of software. The above-mentioned processor 1201 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1202, and the processor 1201 reads the information in the memory 1202, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选的,处理器1201还用于:Optionally, the processor 1201 is also used for:

对所述聊天会话界面进行截图操作,并解析通过所述截图操作获取的所述聊天会话界面截图中的聊天对象信息;performing a screenshot operation on the chat session interface, and analyzing the chat object information in the screenshot of the chat session interface obtained through the screenshot operation;

若所述聊天对象信息中包括所述聊天对象的号码信息,则将所述号码信息保存为所述聊天对象的个人信息;If the chat object information includes the number information of the chat object, storing the number information as the chat object's personal information;

若所述聊天对象信息中不包括所述聊天对象的号码信息,则在预先建立的联系人数据库中查找所述聊天对象的个人信息,其中,所述联系人数据库包括所述电子设备的通讯录中的联系人的个人信息,且所述联系人的个人信息包括联系人的号码信息。If the chat object information does not include the number information of the chat object, then search for the personal information of the chat object in a pre-established contact database, wherein the contact database includes the address book of the electronic device The personal information of the contact person in , and the personal information of the contact person includes the number information of the contact person.

可选的,处理器1201还用于:Optionally, the processor 1201 is also used for:

根据在所述聊天会话界面中的输入内容,在预设的若干个联系人个人信息对应的词汇库中查找并推荐与所述输入内容匹配的备选输入词汇;According to the input content in the chat session interface, searching and recommending alternative input vocabulary matching the input content in the vocabulary library corresponding to the personal information of several preset contacts;

根据所述电子设备选择的备选输入词汇所对应的词汇库,确定该词汇库对应的联系人个人信息为所述聊天对象的个人信息。According to the vocabulary base corresponding to the candidate input vocabulary selected by the electronic device, it is determined that the personal information of the contact person corresponding to the vocabulary base is the personal information of the chat object.

可选的,在所述获取所述聊天会话界面中的聊天对象的个人信息的步骤之前,处理器1201还用于:Optionally, before the step of acquiring the personal information of the chat object in the chat session interface, the processor 1201 is further configured to:

根据所述电子设备的通讯录中的联系人的个人信息,建立联系人个人信息与词汇库的对应关系,其中,一个联系人个人信息对应一个词汇库;According to the personal information of the contact in the address book of the electronic device, establish a corresponding relationship between the personal information of the contact and the vocabulary, wherein one personal information of the contact corresponds to one vocabulary;

收集所述电子设备与每个联系人的输入行为和输入记录,并通过对每个联系人的输入行为和输入记录进行数据统计分析,确定每个联系人个人信息所对应的词汇库中的预设推荐输入词汇。Collecting the input behavior and input records of the electronic device and each contact person, and performing statistical analysis on the input behavior and input records of each contact person, to determine the predetermined vocabulary in the vocabulary corresponding to the personal information of each contact person. Set the recommended input vocabulary.

可选的,处理器1201还用于:Optionally, the processor 1201 is also used for:

根据所述输入内容,在所述目标词汇库中查找与所述输入内容匹配的多组可选输入词汇;According to the input content, searching multiple groups of optional input vocabulary matching the input content in the target vocabulary;

按所述目标词汇库中统计的所述多组可选输入词汇的使用频率,将所述多组可选输入词汇按使用频率从高到低的顺序进行优先级排序;According to the frequency of use of the multiple groups of optional input vocabulary counted in the target vocabulary bank, prioritizing the multiple groups of optional input vocabulary according to the order of usage frequency from high to low;

按所述优先级排序,推荐所述多组可选输入词汇。Sorting according to the priority, recommending the multiple groups of optional input vocabulary.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (11)

CN201710384236.3A2017-05-262017-05-26 A recommended method and electronic device for inputting vocabularyActiveCN107102744B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710384236.3ACN107102744B (en)2017-05-262017-05-26 A recommended method and electronic device for inputting vocabulary

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710384236.3ACN107102744B (en)2017-05-262017-05-26 A recommended method and electronic device for inputting vocabulary

Publications (2)

Publication NumberPublication Date
CN107102744Atrue CN107102744A (en)2017-08-29
CN107102744B CN107102744B (en)2020-02-21

Family

ID=59670123

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710384236.3AActiveCN107102744B (en)2017-05-262017-05-26 A recommended method and electronic device for inputting vocabulary

Country Status (1)

CountryLink
CN (1)CN107102744B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107562222A (en)*2017-09-252018-01-09联想(北京)有限公司A kind of data processing method and system
CN111046268A (en)*2018-10-122020-04-21北京搜狗科技发展有限公司Information recommendation method and device and electronic equipment
CN112148135A (en)*2020-09-302020-12-29维沃移动通信有限公司 Input method processing method, device and electronic device
CN113504836A (en)*2021-09-062021-10-15北京翰凌科技有限公司Information input method and electronic equipment
WO2022135474A1 (en)*2020-12-252022-06-30维沃移动通信有限公司Information recommendation method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101373468A (en)*2007-08-202009-02-25北京搜狗科技发展有限公司Method for loading word stock, method for inputting character and input method system
CN101571758A (en)*2009-06-042009-11-04腾讯科技(深圳)有限公司Input method system, method and device thereof
CN101697098A (en)*2009-09-292010-04-21深圳华为通信技术有限公司Method and terminal for inputting character
CN103324627A (en)*2012-03-212013-09-25宇龙计算机通信科技(深圳)有限公司Terminal and input processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101373468A (en)*2007-08-202009-02-25北京搜狗科技发展有限公司Method for loading word stock, method for inputting character and input method system
CN101571758A (en)*2009-06-042009-11-04腾讯科技(深圳)有限公司Input method system, method and device thereof
CN101697098A (en)*2009-09-292010-04-21深圳华为通信技术有限公司Method and terminal for inputting character
CN103324627A (en)*2012-03-212013-09-25宇龙计算机通信科技(深圳)有限公司Terminal and input processing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107562222A (en)*2017-09-252018-01-09联想(北京)有限公司A kind of data processing method and system
CN111046268A (en)*2018-10-122020-04-21北京搜狗科技发展有限公司Information recommendation method and device and electronic equipment
CN111046268B (en)*2018-10-122024-04-26北京搜狗科技发展有限公司 Information recommendation method, device and electronic device
CN112148135A (en)*2020-09-302020-12-29维沃移动通信有限公司 Input method processing method, device and electronic device
WO2022135474A1 (en)*2020-12-252022-06-30维沃移动通信有限公司Information recommendation method and apparatus, and electronic device
CN113504836A (en)*2021-09-062021-10-15北京翰凌科技有限公司Information input method and electronic equipment

Also Published As

Publication numberPublication date
CN107102744B (en)2020-02-21

Similar Documents

PublicationPublication DateTitle
CN112650907B (en)Search word recommendation method, target model training method, device and equipment
US20210248198A1 (en)Content Recommendation Method and Apparatus, Mobile Terminal, and Server
US11580004B2 (en)Information processor, information processing method, and non-transitory storage medium
CN107102744A (en)A kind of recommendation method and electronic equipment for inputting vocabulary
CN108255316B (en)Method for dynamically adjusting emoticons, electronic device and computer-readable storage medium
US8555156B2 (en)Inferring that a message has been read
CN106293120B (en) Expression input method and mobile terminal
WO2017084541A1 (en)Method and apparatus for sending expression image during call session
US20140324414A1 (en)Method and apparatus for displaying emoticon
CN108549681B (en)Data processing method and device, electronic equipment and computer readable storage medium
CN105224666A (en)A kind of input method, device and terminal
CN106161215A (en)A kind of method for sending information and mobile terminal
CN103870553A (en)Input resource pushing method and system
CN106789348A (en) A network acceleration method, server and client
CN115098210A (en) Message processing method, device, electronic device and storage medium
WO2019179014A1 (en)Method, apparatus, computer device, and storage medium for searching and displaying voice messages
US10664482B2 (en)Providing relevance based dynamic hashtag navigation
CN111523053A (en)Information flow processing method and device, computer equipment and storage medium
CN107729420A (en)A kind of update method and mobile terminal of input method dictionary
EP3387556B1 (en)Providing automated hashtag suggestions to categorize communication
TW201324181A (en)Method and system for sharing data utilizing mobile apparatus, mobile apparatus appling the method and computer readable storage medium storing the method
CN109683760B (en)Recent content display method, device, terminal and storage medium
CN106446270A (en)Classifying method and device
CN111726285B (en)Instant messaging method and device
CN113434432A (en)Performance test method, device, equipment and medium for recommendation platform

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp