CN106776812A - The method and device of trasaction key - Google Patents
The method and device of trasaction key Download PDFInfo
- Publication number
- CN106776812A CN106776812A CN201611052168.2A CN201611052168A CN106776812A CN 106776812 A CN106776812 A CN 106776812A CN 201611052168 A CN201611052168 A CN 201611052168A CN 106776812 A CN106776812 A CN 106776812A
- Authority
- CN
- China
- Prior art keywords
- keyword
- target
- search
- word
- search term
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本公开提供了一种更新关键字的方法及装置,属于终端技术领域。该方法包括:获取至少一个目标搜索字词,至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词;对于至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将目标搜索字词和目标关键字标识确定为待更新数据,目标关键字标识为目标搜索字词对应的关键字标识,关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词;将待更新数据发送至终端,由终端更新目标关键字标识对应的关键字。本公开提高了搜索命中率。
The disclosure provides a method and device for updating keywords, which belong to the technical field of terminals. The method includes: obtaining at least one target search term, at least one target search term is a word input by at least one user when the search fails; for any target search term in the at least one target search term, if the keyword There is a target keyword identifier in the database, and the target search word and the target keyword identifier are determined as the data to be updated, the target keyword identifier is the keyword identifier corresponding to the target search word, and the keyword database is used to store the corresponding keyword sets, at least one keyword included in each keyword set is a synonym or near-synonym; the data to be updated is sent to the terminal, and the terminal updates the target keyword to identify the corresponding keyword. The present disclosure improves the search hit rate.
Description
技术领域technical field
本公开涉及终端技术领域,尤其涉及一种更新关键字的方法及装置。The present disclosure relates to the technical field of terminals, and in particular to a method and device for updating keywords.
背景技术Background technique
随着终端技术的发展,终端的存储容量大大提升,所集成的功能也越来越多,例如,拍照功能、照明功能和蓝牙功能等。因此,为了方便用户快速查询到所需的功能,终端上往往会提供本地搜索工具。用户在使用本地搜索工具搜索某一功能时,可自行输入搜索字词。终端获取到用户输入的搜索字词时,检测该搜索字词与已配置的任一关键字是否相同,每个关键字对应唯一的功能,如果该搜索字词与某一个关键字相同,则确定将该关键字对应的功能作为搜索结果,并显示功能名称,当检测到用户对功能名称的触发操作时,可以运行该功能。然而,如果该搜索字词与任一关键字均不相同,则终端确定搜索结果为空。With the development of terminal technology, the storage capacity of the terminal is greatly increased, and more and more functions are integrated, for example, a camera function, a lighting function, and a bluetooth function. Therefore, in order to facilitate the user to quickly find the desired function, a local search tool is often provided on the terminal. Users can enter their own search terms when searching for a feature using the local search tool. When the terminal obtains the search term entered by the user, it detects whether the search term is the same as any configured keyword. Each keyword corresponds to a unique function. If the search term is the same as a certain keyword, it is determined The function corresponding to the keyword is used as the search result, and the function name is displayed. When a user's trigger operation on the function name is detected, the function can be run. However, if the search term is not identical to any keyword, the terminal determines that the search result is empty.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种更新关键字的方法及装置,所述技术方案如下:In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for updating keywords, and the technical solution is as follows:
根据本公开实施例的第一方面,提供一种更新关键字的方法,所述方法应用于服务器,包括:According to the first aspect of the embodiments of the present disclosure, there is provided a method for updating keywords, the method is applied to a server, including:
获取至少一个目标搜索字词,所述至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词;Obtaining at least one target search term, the at least one target search term is a word input by at least one user when the search fails;
对于所述至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将所述目标搜索字词和所述目标关键字标识确定为待更新数据,所述目标关键字标识为所述目标搜索字词对应的关键字标识,所述关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词;For any target search term in the at least one target search term, if there is a target keyword identifier in the keyword database, the target search term and the target keyword identifier are determined as data to be updated, so The target keyword identifier is a keyword identifier corresponding to the target search word, and the keyword database is used to store keyword sets corresponding to each keyword identifier, and at least one keyword included in each keyword set Between is a synonym or near-synonym;
将所述待更新数据发送至终端,由所述终端更新所述目标关键字标识对应的关键字。Send the data to be updated to a terminal, and the terminal updates a keyword corresponding to the target keyword identifier.
相关技术中,终端根据用户输入的搜索字词以及已配置的关键字进行搜索,然而,已配置的关键字由运营人员进行初始配置,由于每个用户的输入习惯不同,很难保证已配置的关键字可以命中用户实际输入的搜索字词,导致搜索的命中率低,因此亟需一种更新关键字的方法,使终端可以根据用户实际输入的搜索字词动态更新关键字,从而提高搜索命中率。In related technologies, the terminal searches according to the search terms entered by the user and the configured keywords. However, the configured keywords are initially configured by the operator. Since each user has different input habits, it is difficult to guarantee the configured keywords. Keywords can hit the search terms actually entered by the user, resulting in a low search hit rate. Therefore, there is an urgent need for a method for updating keywords, so that the terminal can dynamically update keywords according to the search terms actually entered by the user, thereby improving the search hit rate. Rate.
本公开实施例通过获取至少一个目标搜索字词,将存在对应目标关键字标识的目标搜索字词发送至终端,使得终端将目标搜索字词作为新的关键字,完成动态更新关键字的过程。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。The embodiments of the present disclosure obtain at least one target search term, and send the target search term corresponding to the target keyword identifier to the terminal, so that the terminal uses the target search term as a new keyword, and completes the process of dynamically updating the keyword. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,所述获取至少一个目标搜索字词包括:In a possible implementation manner, the acquiring at least one target search term includes:
获取至少一个待筛选搜索字词,所述至少一个待筛选搜索字词为至少一个用户搜索失败时所输入的字词;筛选掉出现次数小于第一阈值的待筛选搜索字词,得到所述至少一个目标搜索字词。Acquiring at least one search word to be screened, said at least one search word to be screened is a word input by at least one user when the search fails; filtering out search words to be screened whose occurrence times are less than a first threshold, and obtaining said at least one search word to be screened A target search term.
在该实现方式中,提供了筛选目标搜索字词的方法,将出现次数高于第一阈值的字词作为目标搜索字词,使得该目标搜索字词是用户在搜索时经常使用的字词,进可以根据这些目标搜索字词确定的关键字更容易命中用户在搜索过程输入的字词,进一步提高了搜索命中率。In this implementation, a method for screening target search words is provided, and words whose occurrence times are higher than a first threshold are used as target search words, so that the target search words are words frequently used by users when searching, The keywords that can be determined based on these target search terms are more likely to hit the words entered by the user during the search process, further improving the search hit rate.
在一种可能实现方式中,所述获取至少一个待筛选搜索字词包括:In a possible implementation manner, the acquiring at least one search term to be screened includes:
获取至少一条搜索语句,所述至少一条搜索语句是指至少一个用户在搜索时输入的语句;对各个搜索语句进行分词,将所述至少一条搜索语句分词后的至少一个搜索字词获取为所述至少一个待筛选搜索字词。Obtain at least one search statement, the at least one search statement refers to a statement input by at least one user when searching; perform word segmentation on each search statement, and obtain at least one search word after the word segmentation of the at least one search statement as the At least one search term to filter.
在该实现方式中,提供了对用户在搜索时输入的搜索语句的分词方法,由于一条搜索语句往往会包括多个搜索字词,因此对分词后的各个搜索字词的出现次数进行分析时,可以更加准确地分析出某一搜索字词的出现次数,使得后续所确定的关键字更加准确,从而进一步提高了搜索命中率。In this implementation, a word segmentation method for the search sentence input by the user is provided. Since a search sentence often includes multiple search words, when analyzing the occurrence times of each search word after word segmentation, The number of occurrences of a certain search word can be analyzed more accurately, so that the subsequent determined keywords are more accurate, thereby further improving the search hit rate.
在一种可能实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
获取至少一个指定搜索字词,所述至少一个指定搜索字词为至少一个用户搜索成功时所输入的字词;获取所述终端已配置的至少一个关键字;如果所述终端已配置的任一关键字在所述至少一个指定搜索字词中的出现次数低于第二阈值,则将所述关键字确定为待删除关键字;向所述终端发送删除指令,所述删除指令用于指示所述终端对所述待删除关键字执行删除操作。Obtain at least one specified search term, the at least one specified search term is the word entered by at least one user when the search is successful; obtain at least one keyword configured by the terminal; if any If the number of occurrences of the keyword in the at least one specified search term is lower than the second threshold, the keyword is determined as the keyword to be deleted; a deletion instruction is sent to the terminal, and the deletion instruction is used to indicate the The terminal performs a deletion operation on the keyword to be deleted.
在该实现方式中,通过获取至少一个指定字词,并获取终端已配置的关键字,分析已配置的关键字在至少一个指定字词中的出现次数,将出现次数小于第二阈值的关键字确定为待删除关键字,由终端将已配置的该关键字删除,从而淘汰用户搜索时不经常使用的关键字,并节省这些关键字所占用的终端的存储资源。In this implementation, by acquiring at least one specified word, and acquiring the keywords configured by the terminal, analyzing the number of occurrences of the configured keyword in at least one specified word, the keywords whose occurrence times are less than the second threshold Determined as a keyword to be deleted, the terminal deletes the configured keyword, thereby eliminating keywords that are not frequently used by the user when searching, and saving the storage resources of the terminal occupied by these keywords.
根据本公开实施例的第二方面,提供一种更新关键字的方法,所述方法应用于终端,包括:According to a second aspect of an embodiment of the present disclosure, a method for updating a keyword is provided, the method is applied to a terminal, including:
向服务器发送目标搜索字词,所述目标搜索字词为用户搜索失败时所输入的字词;接收所述服务器所发送的待更新数据,所述待更新数据携带关键字和目标关键字标识,所述目标关键字标识为所述关键字对应的关键字标识;更新所述目标关键字标识对应的关键字。Send the target search term to the server, the target search term is the word input by the user when the search fails; receive the data to be updated sent by the server, the data to be updated carries keywords and target keyword identifiers, The target keyword identifier is a keyword identifier corresponding to the keyword; and the keyword corresponding to the target keyword identifier is updated.
本公开实施例通过向服务器发送目标搜索字词,使得服务器可以分析目标搜索字词,并接收到服务器分析后的待更新数据,更新该待更新数据携带的关键字。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。In the embodiment of the present disclosure, by sending the target search word to the server, the server can analyze the target search word, receive the data to be updated analyzed by the server, and update the keywords carried in the data to be updated. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
向所述服务器发送指定搜索字词,所述指定搜索字词为用户搜索成功时所输入的字词;Send the specified search word to the server, and the specified search word is the word input when the user searches successfully;
接收所述服务器所发送的删除指令,所述删除指令用于指示对待删除关键字执行删除操作;Receiving a deletion instruction sent by the server, the deletion instruction is used to instruct the keyword to be deleted to perform a deletion operation;
基于所述删除指令,对所述待删除关键字执行删除操作。Based on the deletion instruction, a deletion operation is performed on the keyword to be deleted.
在该实现方式中,通过获取至少一个指定字词,并获取终端已配置的关键字,分析已配置的关键字在至少一个指定字词中的出现次数,将出现次数小于第二阈值的关键字确定为待删除关键字,由终端将已配置的该关键字删除,从而淘汰用户搜索时不经常使用的关键字,并节省这些关键字所占用的终端的存储资源。In this implementation, by acquiring at least one specified word, and acquiring the keywords configured by the terminal, analyzing the number of occurrences of the configured keyword in at least one specified word, the keywords whose occurrence times are less than the second threshold Determined as a keyword to be deleted, the terminal deletes the configured keyword, thereby eliminating keywords that are not frequently used by the user when searching, and saving the storage resources of the terminal occupied by these keywords.
根据本公开实施例的第三方面,提供一种更新关键字的装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, there is provided an apparatus for updating keywords, the apparatus comprising:
获取模块,用于获取至少一个目标搜索字词,所述至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词;An acquisition module, configured to acquire at least one target search term, the at least one target search term is a word input by at least one user when the search fails;
确定模块,用于对于所述至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将所述目标搜索字词和所述目标关键字标识确定为待更新数据,所述目标关键字标识为所述目标搜索字词对应的关键字标识,所述关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词;A determining module, configured to, for any target search term in the at least one target search term, if there is a target keyword identifier in the keyword database, determine the target search term and the target keyword identifier as The data to be updated, the target keyword identifier is the keyword identifier corresponding to the target search word, the keyword database is used to store the keyword sets corresponding to each keyword identifier, and each keyword set includes At least one of the keywords is a synonym or near-synonym;
发送模块,用于将所述待更新数据发送至终端,由所述终端更新所述目标关键字标识对应的关键字。A sending module, configured to send the data to be updated to a terminal, and the terminal updates a keyword corresponding to the target keyword identifier.
在一种可能实现方式中,所述获取模块包括第一获取子模块和筛选子模块;In a possible implementation manner, the acquisition module includes a first acquisition submodule and a screening submodule;
所述第一获取子模块,用于获取至少一个待筛选搜索字词,所述至少一个待筛选搜索字词为至少一个用户搜索失败时所输入的字词;The first obtaining submodule is used to obtain at least one search term to be screened, and the at least one search term to be screened is a word input by at least one user when the search fails;
所述筛选子模块,用于筛选掉出现次数小于第一阈值的待筛选搜索字词,得到所述至少一个目标搜索字词。The screening submodule is configured to filter out search terms to be screened whose occurrence times are less than a first threshold, to obtain the at least one target search term.
在一种可能实现方式中,所述第一获取子模块,用于获取至少一条搜索语句,所述至少一条搜索语句是指至少一个用户在搜索时输入的语句;对各个搜索语句进行分词,将所述至少一条搜索语句分词后的至少一个搜索字词获取为所述至少一个待筛选搜索字词。In a possible implementation manner, the first obtaining submodule is configured to obtain at least one search sentence, and the at least one search sentence refers to a sentence input by at least one user when searching; word segmentation is performed on each search sentence, and the At least one search term after word segmentation of the at least one search sentence is obtained as the at least one search term to be screened.
在一种可能实现方式中,所述获取模块还包括第二获取子模块和第三获取子模块;In a possible implementation manner, the acquisition module further includes a second acquisition submodule and a third acquisition submodule;
所述第二获取子模块,用于获取至少一个指定搜索字词,所述至少一个指定搜索字词为至少一个用户搜索成功时所输入的字词;The second obtaining submodule is used to obtain at least one designated search term, and the at least one designated search term is a word entered by at least one user when the search is successful;
所述第三获取子模块,用于获取所述终端已配置的至少一个关键字;The third obtaining submodule is used to obtain at least one keyword configured by the terminal;
所述确定模块,还用于如果所述终端已配置的任一关键字在所述至少一个指定搜索字词中的出现次数低于第二阈值,则将所述关键字确定为待删除关键字;The determination module is further configured to determine the keyword as a keyword to be deleted if the number of occurrences of any keyword configured by the terminal in the at least one specified search term is lower than a second threshold ;
所述发送模块,还用于向所述终端发送删除指令,所述删除指令用于指示所述终端对所述待删除关键字执行删除操作。The sending module is further configured to send a deletion instruction to the terminal, where the deletion instruction is used to instruct the terminal to perform a deletion operation on the keyword to be deleted.
根据本公开实施例的第四方面,提供一种更新关键字的装置,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for updating keywords, the apparatus comprising:
发送模块,用于向服务器发送目标搜索字词,所述目标搜索字词为用户搜索失败时所输入的字词;The sending module is used to send the target search term to the server, and the target search term is the word input by the user when the search fails;
接收模块,用于接收所述服务器所发送的待更新数据,所述待更新数据携带关键字和目标关键字标识,所述目标关键字标识为所述关键字对应的关键字标识;A receiving module, configured to receive the data to be updated sent by the server, the data to be updated carries a keyword and a target keyword identifier, and the target keyword identifier is a keyword identifier corresponding to the keyword;
更新模块,用于更新所述目标关键字标识对应的关键字。An update module, configured to update the keyword corresponding to the target keyword identifier.
在一种可能实现方式中,所述装置还包括删除模块;In a possible implementation manner, the device further includes a deletion module;
所述发送模块,还用于向所述服务器发送指定搜索字词,所述指定搜索字词为用户搜索成功时所输入的字词;The sending module is also used to send a specified search word to the server, and the specified search word is the word entered by the user when the search is successful;
所述接收模块,还用于接收所述服务器所发送的删除指令,所述删除指令用于指示对待删除关键字执行删除操作;The receiving module is further configured to receive a deletion instruction sent by the server, and the deletion instruction is used to instruct a keyword to be deleted to perform a deletion operation;
所述删除模块,用于基于所述删除指令,对所述待删除关键字执行删除操作。The deletion module is configured to perform a deletion operation on the keyword to be deleted based on the deletion instruction.
根据本公开实施例的第五方面,提供一种更新关键字的装置,所述装置包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided an apparatus for updating a keyword, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:获取至少一个目标搜索字词,所述至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词;对于所述至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将所述目标搜索字词和所述目标关键字标识确定为待更新数据,所述目标关键字标识为所述目标搜索字词对应的关键字标识,所述关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词;将所述待更新数据发送至终端,由所述终端更新所述目标关键字标识对应的关键字。Wherein, the processor is configured to: obtain at least one target search term, the at least one target search term is a word input by at least one user when the search fails; for the at least one target search term For any target search term, if there is a target keyword identifier in the keyword database, determine the target search term and the target keyword identifier as data to be updated, and the target keyword identifier is the target search word The keyword identification corresponding to the word, the keyword database is used to store the keyword sets corresponding to each keyword identification, and at least one keyword included in each keyword set is a synonym or a near-synonym; the to-be-updated The data is sent to the terminal, and the terminal updates the keyword corresponding to the target keyword identifier.
根据本公开实施例的第六方面,提供一种更新关键字的装置,所述装置包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided an apparatus for updating keywords, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:向服务器发送目标搜索字词,所述目标搜索字词为用户搜索失败时所输入的字词;接收所述服务器所发送的待更新数据,所述待更新数据携带关键字和目标关键字标识,所述目标关键字标识为所述关键字对应的关键字标识;更新所述目标关键字标识对应的关键字。Wherein, the processor is configured to: send the target search word to the server, the target search word is the word input by the user when the search fails; receive the data to be updated sent by the server, the to-be-updated The data carries a keyword and a target keyword identifier, and the target keyword identifier is a keyword identifier corresponding to the keyword; and the keyword corresponding to the target keyword identifier is updated.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种更新关键字的方法流程图;Fig. 1 is a flowchart of a method for updating keywords according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种更新关键字的方法流程图;Fig. 2 is a flowchart of a method for updating keywords according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种更新关键字的方法流程图;Fig. 3 is a flowchart of a method for updating keywords according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种更新关键字的方法流程图;Fig. 4 is a flowchart of a method for updating keywords according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种更新关键字的装置框图;Fig. 5 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种更新关键字的装置框图;Fig. 6 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种更新关键字的装置框图;Fig. 7 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种更新关键字的装置框图;Fig. 8 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种更新关键字的装置框图;Fig. 9 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种更新关键字的装置1000的框图;Fig. 10 is a block diagram of an apparatus 1000 for updating keywords according to an exemplary embodiment;
图11是根据一示例性实施例示出的一种更新关键字的装置1100的框图。Fig. 11 is a block diagram of an apparatus 1100 for updating keywords according to an exemplary embodiment.
具体实施方式detailed description
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present disclosure clearer, the implementation manners of the present disclosure will be further described in detail below in conjunction with the accompanying drawings.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种更新关键字的方法流程图,如图1所示,该实施例应用于服务器,包括以下步骤:Fig. 1 is a flow chart of a method for updating keywords according to an exemplary embodiment. As shown in Fig. 1, this embodiment is applied to a server and includes the following steps:
在步骤101中,获取至少一个目标搜索字词,至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词。In step 101, at least one target search word is obtained, and the at least one target search word is a word input by at least one user when the search fails.
在步骤102中,对于至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将目标搜索字词和目标关键字标识确定为待更新数据,目标关键字标识为目标搜索字词对应的关键字标识,关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词。In step 102, for any target search term in at least one target search term, if there is a target keyword identifier in the keyword database, the target search term and the target keyword identifier are determined as data to be updated, and the target keyword The word identifier is a keyword identifier corresponding to the target search word, and the keyword database is used to store keyword sets corresponding to each keyword identifier, and at least one keyword included in each keyword set is a synonym or near-synonym.
在步骤103中,将待更新数据发送至终端,由终端更新目标关键字标识对应的关键字。In step 103, the data to be updated is sent to the terminal, and the terminal updates the corresponding keyword identified by the target keyword.
本公开实施例通过获取至少一个目标搜索字词,将存在对应目标关键字标识的目标搜索字词发送至终端,使得终端将目标搜索字词作为新的关键字,完成动态更新关键字的过程。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。The embodiments of the present disclosure obtain at least one target search term, and send the target search term corresponding to the target keyword identifier to the terminal, so that the terminal uses the target search term as a new keyword, and completes the process of dynamically updating the keyword. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,获取至少一个目标搜索字词包括:In a possible implementation manner, acquiring at least one target search term includes:
获取至少一个待筛选搜索字词,至少一个待筛选搜索字词为至少一个用户搜索失败时所输入的字词;Obtaining at least one search term to be screened, where the at least one search term to be screened is a word input by at least one user when the search fails;
筛选掉出现次数小于第一阈值的待筛选搜索字词,得到至少一个目标搜索字词。Filtering out the search terms to be screened whose occurrence times are less than the first threshold, to obtain at least one target search term.
在一种可能实现方式中,获取至少一个待筛选搜索字词包括:In a possible implementation manner, obtaining at least one search term to be screened includes:
获取至少一条搜索语句,至少一条搜索语句是指至少一个用户在搜索时输入的语句;Obtaining at least one search statement, where at least one search statement refers to a statement input by at least one user when searching;
对各个搜索语句进行分词,将至少一条搜索语句分词后的至少一个搜索字词获取为至少一个待筛选搜索字词。Word segmentation is performed on each search statement, and at least one search word after word segmentation of at least one search sentence is obtained as at least one search word to be screened.
在一种可能实现方式中,方法还包括:In a possible implementation, the method also includes:
获取至少一个指定搜索字词,至少一个指定搜索字词为至少一个用户搜索成功时所输入的字词;Get at least one specified search term, at least one specified search term is the word entered by at least one user when the search is successful;
获取终端已配置的至少一个关键字;Obtain at least one keyword configured by the terminal;
如果终端已配置的任一关键字在至少一个指定搜索字词中的出现次数低于第二阈值,则将关键字确定为待删除关键字;If the number of occurrences of any keyword configured by the terminal in at least one specified search term is lower than a second threshold, then determining the keyword as a keyword to be deleted;
向终端发送删除指令,删除指令用于指示终端对待删除关键字执行删除操作。A deletion instruction is sent to the terminal, and the deletion instruction is used to instruct the terminal to perform a deletion operation on the keyword to be deleted.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
图2是根据一示例性实施例示出的一种更新关键字的方法流程图,如图2所示,该实施例应用于终端,包括以下步骤:Fig. 2 is a flow chart of a method for updating keywords according to an exemplary embodiment. As shown in Fig. 2, this embodiment is applied to a terminal and includes the following steps:
在步骤201中,向服务器发送目标搜索字词,目标搜索字词为用户搜索失败时所输入的字词。In step 201, the target search word is sent to the server, and the target search word is the word input by the user when the search fails.
在步骤202中,接收服务器所发送的待更新数据,待更新数据携带关键字和目标关键字标识,目标关键字标识为关键字对应的关键字标识。In step 202, the data to be updated sent by the server is received, the data to be updated carries a keyword and a target keyword identifier, and the target keyword identifier is a keyword identifier corresponding to the keyword.
在步骤203中,更新目标关键字标识对应的关键字。In step 203, the keyword corresponding to the target keyword identifier is updated.
本公开实施例通过向服务器发送目标搜索字词,使得服务器可以分析目标搜索字词,并接收到服务器分析后的待更新数据,更新该待更新数据携带的关键字。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。In the embodiment of the present disclosure, by sending the target search word to the server, the server can analyze the target search word, receive the data to be updated analyzed by the server, and update the keywords carried in the data to be updated. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,方法还包括:In a possible implementation, the method also includes:
向服务器发送指定搜索字词,指定搜索字词为用户搜索成功时所输入的字词;Send the specified search term to the server, and the specified search term is the word entered by the user when the search is successful;
接收服务器所发送的删除指令,删除指令用于指示对待删除关键字执行删除操作;Receiving the deletion instruction sent by the server, the deletion instruction is used to instruct the keyword to be deleted to perform a deletion operation;
基于删除指令,对待删除关键字执行删除操作。Based on the delete instruction, a delete operation is performed on the keyword to be deleted.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
在实际场景中,更新关键字的过程可能是指存储新的关键字,也可能是指删除原有的关键字。其中,存储关键字的更新过程以图3所示的实施例说明,删除关键字的过程以图4所示的实施例说明。In actual scenarios, the process of updating keywords may refer to storing new keywords, or may refer to deleting existing keywords. Wherein, the updating process of storing keywords is illustrated by the embodiment shown in FIG. 3 , and the process of deleting keywords is illustrated by the embodiment shown in FIG. 4 .
图3是根据一示例性实施例示出的一种更新关键字的方法流程图,如图3所示,该实施例应用于服务器和终端的交互过程,具体包括以下步骤:Fig. 3 is a flow chart of a method for updating keywords according to an exemplary embodiment. As shown in Fig. 3, this embodiment is applied to the interaction process between a server and a terminal, and specifically includes the following steps:
在步骤301中,终端向服务器发送搜索语句,该搜索语句为用户搜索失败时所输入的语句。In step 301, the terminal sends a search sentence to the server, and the search sentence is a sentence input by the user when the search fails.
该步骤中,当终端检测到用户对搜索工具的触发操作时,判断用户输入的语句是否存在对应的搜索结果,如果否,则确定搜索失败,获取该语句作为搜索语句,并将该搜索语句发送至服务器。In this step, when the terminal detects the trigger operation of the search tool by the user, it judges whether there is a corresponding search result for the sentence entered by the user. If not, it determines that the search fails, obtains the sentence as a search sentence, and sends the search sentence to the server.
本公开实施对该搜索工具所提供的搜索功能不做限定。例如,该搜索工具可以提供本地搜索功能,也可以提供网页搜索功能。本地搜索功能可以用于搜索本地已配置的拍照功能、截图功能等系统功能,或者本地已安装的社交类应用、游戏类应用等。The implementation of the present disclosure does not limit the search function provided by the search tool. For example, the search tool may provide a local search function as well as a web search function. The local search function can be used to search locally configured system functions such as camera function and screenshot function, or locally installed social applications, game applications, and the like.
需要说明的是,终端可以存储每次用户搜索失败时输入的字词,但本公开实施例对发送目标搜索字词的时机不做限定。例如,终端定期将存储的字词发送至服务器。又例如,服务器向终端发送获取请求,当终端接收到获取请求时,将存储的字词发送至服务器。It should be noted that the terminal may store the words input by the user each time the search fails, but the embodiment of the present disclosure does not limit the timing of sending the target search words. For example, the terminal periodically sends the stored words to the server. For another example, the server sends an acquisition request to the terminal, and when the terminal receives the acquisition request, it sends the stored words to the server.
另外,需要说明的是,该步骤为本公开实施例的可选步骤,事实上,任一终端均可以将用户搜索失败时所输入的任意形式的文字内容发送至服务器,例如,该文字内容为字词,则结合以下各个步骤也能提高搜索命中率。In addition, it should be noted that this step is an optional step in the embodiment of the present disclosure. In fact, any terminal can send any form of text content entered by the user when the search fails to the server. For example, the text content is words, a combination of the following steps can also improve your search hit rate.
在步骤302中,当服务器接收到至少一条搜索语句时,对各个搜索语句进行分词,将至少一条搜索语句分词后的至少一个搜索字词获取为至少一个待筛选搜索字词。In step 302, when the server receives at least one search statement, it performs word segmentation for each search statement, and obtains at least one search term after word segmentation of the at least one search statement as at least one search term to be screened.
由于每个终端均可以将搜索语句发送至服务器,因此服务器可以接收到至少一个终端发送的搜索语句。但是,终端上所配置的关键字一般为字词的形式,而搜索语句往往包括多个字词,例如,“蓝牙在哪里”包括“蓝牙、在、哪里”,因此,为了提取出搜索语句中所包含的字词,从而针对性地分析各个字词是否可以作为关键字,服务器对接收到至少一条搜索语句进行分词处理。Since each terminal can send a search statement to the server, the server can receive the search statement sent by at least one terminal. However, the keywords configured on the terminal are generally in the form of words, and the search sentence often includes multiple words, for example, "Where is Bluetooth" includes "Bluetooth, where, where", therefore, in order to extract the search sentence The included words, so as to analyze whether each word can be used as a keyword in a targeted manner, and the server performs word segmentation processing on at least one search statement received.
其中,分词用于将各个搜索语句划分为不同字符长度的字词,并从中得到有实际意义的字词。本公开实施例对分词方式不做限定。例如,采用服务器配置的分词词典,在分词词典中查询是否存在与该字词相同的字词,如果是,则将该字词确定为分词后的字词。例如,“蓝牙在哪里”可以划分为“蓝、蓝牙、蓝牙在、蓝牙在哪、蓝牙在哪里、牙、牙在、牙在哪、牙在哪里、在、在哪、在哪里、哪、哪里、里”,通过分词词典可以查询到的是“蓝牙、在、哪里、在哪里”因此,可以将这四个字词作为分词后的至少一个字词,并获取为至少一个待筛选搜索字词。Wherein, word segmentation is used to divide each search statement into words of different character lengths, and obtain words with practical meanings therefrom. The embodiment of the present disclosure does not limit the word segmentation method. For example, the word segmentation dictionary configured by the server is used to check whether there is a word identical to the word in the word segmentation dictionary, and if so, determine the word as the word after word segmentation. For example, "where is bluetooth" can be divided into "blue, bluetooth, where is bluetooth, where is bluetooth, where is bluetooth, tooth, tooth, where is tooth, where is tooth, where, where, where, where, where , 里", what can be queried through the word segmentation dictionary is "Bluetooth, where, where, where" Therefore, these four words can be used as at least one word after word segmentation, and obtained as at least one search word to be screened .
需要说明的是,在本步骤之前,服务器也可以基于文字内容形式确定是否进行本步骤,本公开实施例对判断文字内容形式的方法不做限定。例如,当服务器接收到任一文字内容时,确定该文字内容的字符长度,并将该字符长度与指定字符长度比较,如果该字符长度小于指定字符长度,则确定该文字内容为字词,直接进行步骤303,如果字符长度大于指定字符长度,则确定该文字内容为语句,可以进行步骤302。例如,指定字符长度为2。It should be noted that before this step, the server may also determine whether to perform this step based on the form of the text content, and the embodiment of the present disclosure does not limit the method for determining the form of the text content. For example, when the server receives any text content, determine the character length of the text content, and compare the character length with the specified character length, if the character length is less than the specified character length, then determine that the text content is a word, directly perform In step 303, if the character length is greater than the specified character length, it is determined that the text content is a sentence, and step 302 can be performed. For example, specify a character length of 2.
在步骤303中,服务器筛选掉出现次数小于第一阈值的待筛选搜索字词,得到至少一个目标搜索字词。In step 303, the server filters out search terms to be screened whose occurrence times are less than the first threshold, to obtain at least one target search term.
通过步骤302的分词过程,服务器可以获取到至少一个待筛选字词,该待筛选字词来源于用户搜索失败时输入的搜索语句,也即是,待筛选搜索字词为用户搜索失败时输入的字词。事实上,如果用户搜索失败,则用户所输入的字词存在两种情况:Through the word segmentation process in step 302, the server can obtain at least one word to be screened, which comes from the search statement entered by the user when the search fails, that is, the search word to be screened is the word entered by the user when the search fails. words. In fact, if the user's search fails, there are two situations for the words entered by the user:
情况1、用户所输入的字词可以用于描述用户所需的功能,但是终端并未配置该字词作为该功能的关键字。Situation 1. The word input by the user can be used to describe the function required by the user, but the terminal does not configure the word as a keyword of the function.
情况2、用户所输入失误。Situation 2: The user makes an input error.
因此,为了更加准确地得到与用户实际需求相符的关键字,服务器对获取到的至少一个待筛选搜索字词进行筛选。Therefore, in order to more accurately obtain keywords that meet the actual needs of the user, the server screens the acquired at least one search term to be screened.
该步骤中,如果某一待筛选搜索字词的出现次数较少,说明较少的用户会通过该待筛选搜索字词进行搜索,进一步说明很少的用户会以该待筛选搜索字词描述某一功能,或者用户输入失误。因此,可以在服务器中设置第一阈值,由服务器分析同一待筛选搜索字词的出现次数,将出现次数与第一阈值进行比较,如果出现次数小于第一阈值,则筛选掉同一待筛选搜索字词对应的至少一个待筛选搜索字词,将初始获取的至少一个待筛选搜索字词中剩余的待筛选搜索字词获取为至少一个目标搜索字词。需要说明的是,本公开实施例对第一阈值不做具体限定。In this step, if a search term to be screened appears less frequently, it means that fewer users will search through the search term to be screened, which further shows that few users will use the search term to be screened to describe a certain search term. A function, or a user input error. Therefore, the first threshold can be set in the server, and the server analyzes the number of occurrences of the same search term to be screened, and compares the number of occurrences with the first threshold, and if the number of occurrences is less than the first threshold, the same search word to be screened is filtered out At least one search term to be screened corresponding to the word, and the remaining search terms to be screened in the initially obtained at least one search term to be screened are acquired as at least one target search term. It should be noted that, the embodiment of the present disclosure does not specifically limit the first threshold.
需要说明的是,以上步骤301至303为本公开实施例的可选步骤。事实上,终端可以将目标搜索字词发送至服务器,该目标搜索字词为用户搜索失败时所输入的字词。当服务器接收到至少一个目标搜索字词时,可以直接进行以下步骤304,也可以提高搜索命中率。It should be noted that the above steps 301 to 303 are optional steps in the embodiments of the present disclosure. In fact, the terminal may send the target search term to the server, and the target search term is the term entered by the user when the search fails. When the server receives at least one target search term, the following step 304 can be directly performed, and the search hit rate can also be improved.
在步骤304中,对于至少一个目标搜索字词中的任一目标搜索字词,服务器检测关键字数据库中是否存在目标关键字标识,如果是,执行步骤305,如果否,忽略该目标搜索字词。In step 304, for any target search term in at least one target search term, the server detects whether there is a target keyword identifier in the keyword database, if yes, execute step 305, if not, ignore the target search term .
目标关键字标识为目标搜索字词对应的关键字标识。关键字标识用于标识某一应用或功能,不限于某一功能或应用的名称。关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词,可以描述关键字标识所标识的应用或功能。本公开实施例对关键字标识与关键字集合的具体内容不做限定。以表1为例:The target keyword identifier is a keyword identifier corresponding to the target search term. Keyword identification is used to identify a certain application or function, and is not limited to the name of a certain function or application. The keyword database is used to store keyword sets corresponding to each keyword identifier. At least one keyword included in each keyword set is a synonym or near-synonym, which can describe the application or function identified by the keyword identifier. The embodiment of the present disclosure does not limit the specific content of the keyword identifier and the keyword set. Take Table 1 as an example:
表1Table 1
通过所获取的目标搜索字词,为了进一步判断目标搜索字词是否可以作为关键字,服务器将该目标搜索字词与各个关键字集合中的任一关键字进行比较,如果目标搜索字词与某一关键字相同,则将该关键字所在集合对应的关键字标识确定为目标关键字标识,并执行步骤305,否则,服务器忽略该目标搜索字词,并继续进行其他目标搜索字词的检测过程,直到各个目标搜索字词的检测过程结束。Through the obtained target search term, in order to further judge whether the target search term can be used as a keyword, the server compares the target search term with any keyword in each keyword set. If the keywords are the same, then the keyword identification corresponding to the set where the keyword is located is determined as the target keyword identification, and step 305 is executed; otherwise, the server ignores the target search term and continues the detection process of other target search terms , until the detection process is complete for each target search term.
在步骤305中,如果关键字数据库中存在目标关键字标识,服务器将目标搜索字词和目标关键字标识确定为待更新数据。In step 305, if the target keyword identifier exists in the keyword database, the server determines the target search term and the target keyword identifier as data to be updated.
基于步骤304的检测过程,如果服务器确定关键字数据中存在该目标搜索字词对应的目标关键字标识,说明该目标搜索字词可以用于描述某一项功能或应用,且很多用户均会以该目标搜索字词进行搜索。然而,该目标搜索并没有配置在终端。因此,为了提高搜索命中率,服务器将该目标搜索字词和目标关键字标识确定为待更新数据,也即是,将与目标搜索字词相同的关键字和目标关键字标识确定为待更新数据。Based on the detection process in step 304, if the server determines that there is a target keyword identifier corresponding to the target search word in the keyword data, it means that the target search word can be used to describe a certain function or application, and many users will use The target search term to search for. However, the target search is not configured on the terminal. Therefore, in order to improve the search hit rate, the server determines the target search term and target keyword identifier as data to be updated, that is, determines the same keyword and target keyword identifier as the target search term as data to be updated .
在步骤306中,服务器将待更新数据发送至终端。In step 306, the server sends the data to be updated to the terminal.
该步骤中,服务器将确定的待更新数据发送至终端。本公开实施例对发送数量不做限定。例如,在发送数量上,为了避免占用终端过多的存储资源,服务器可以从所确定的至少一个待更新数据中选择一半发送至终端。选择的依据不限于待更新数据携带的目标搜索字词的出现次数。例如,基于步骤303分析出的各个目标搜索字词的出现次数,对各个待更新数据携带的目标搜索字词的出现次数按照从高到低的顺序排序,选择出现次数前50%的目标搜索字词,将所选择的目标搜索字词对应的待更新数据发送至终端。In this step, the server sends the determined data to be updated to the terminal. The embodiment of the present disclosure does not limit the sending quantity. For example, in terms of sending quantity, in order to avoid occupying too much storage resources of the terminal, the server may select half of the determined at least one piece of data to be updated and send it to the terminal. The selection basis is not limited to the number of occurrences of the target search term carried in the data to be updated. For example, based on the number of occurrences of each target search word analyzed in step 303, the number of occurrences of the target search words carried by each data to be updated is sorted in descending order, and the target search words with the top 50% of the number of occurrences are selected. word, and send the data to be updated corresponding to the selected target search word to the terminal.
另外,本公开实施例对发送时机不做限定。例如,服务器可以定期将确定的至少一个待更新数据发送至终端。In addition, the embodiment of the present disclosure does not limit the sending timing. For example, the server may periodically send the determined at least one piece of data to be updated to the terminal.
当然,本公开实施例对发送方式也不做限定。例如,服务器主动推送待更新数据。又例如,服务器将更新消息发送至终端,该更新消息用于指示终端提示用户更新关键字。终端接收到更新消息时,可以根据更新消息的指示生成更新提示,并显示更新提示,该更新提示包括确定选项和取消选项。当终端检测到用户对确定选项的触发操作时,可以向服务器发送待更新数据获取请求,服务器接收到待更新数据获取请求时,可以将待更新数据发送至该终端。Certainly, the embodiments of the present disclosure do not limit the sending manner. For example, the server actively pushes the data to be updated. For another example, the server sends an update message to the terminal, where the update message is used to instruct the terminal to prompt the user to update the keyword. When the terminal receives the update message, it may generate an update prompt according to the indication of the update message, and display the update prompt, where the update prompt includes a confirm option and a cancel option. When the terminal detects the user's trigger operation on the determination option, it can send a data to be updated acquisition request to the server, and the server can send the data to be updated to the terminal when receiving the data to be updated acquisition request.
在步骤307中,当终端接收到服务器所发送的待更新数据时,更新目标关键字标识对应的关键字。In step 307, when the terminal receives the data to be updated sent by the server, it updates the corresponding keyword of the target keyword identifier.
该待更新数据携带关键字和目标关键字标识,目标关键字标识为关键字对应的关键字标识,该关键字是指步骤305所确定的目标搜索字词。The data to be updated carries a keyword and a target keyword identifier. The target keyword identifier is a keyword identifier corresponding to the keyword, and the keyword refers to the target search term determined in step 305 .
根据上述步骤306举例的发送方式,终端可以接收服务器主动推送的待更新数据,或者,终端也可以接收服务器基于获取请求所发送的待更新数据。当然,可能接收到一个或多个待更新数据。当终端接收到任一待更新数据时,可以提取该待更新数据中携带的关键字和目标关键字标识,并在已配置的关键字标识中查询与目标关键字标识相同的关键字标识,将提取的关键字与查询到的关键字标识对应存储,完成关键字更新过程。According to the sending method exemplified in step 306 above, the terminal may receive the data to be updated actively pushed by the server, or the terminal may also receive the data to be updated sent by the server based on the acquisition request. Of course, one or more data to be updated may be received. When the terminal receives any data to be updated, it can extract the keywords and target keyword identifiers carried in the data to be updated, and query the keyword identifiers that are the same as the target keyword identifiers in the configured keyword identifiers. The extracted keywords are stored in correspondence with the queried keyword identifiers, and the keyword update process is completed.
通过以上更新过程,当终端检测到用户在搜索时输入的字词与已更新的关键字相同时,可以确定该已更新的关键字对应的关键字标识,并确定该关键字标识所标识的功能,显示该功能的功能信息(或应用的应用信息),功能信息不限于功能名称,方便用户自行选择是否使用该功能或应用。Through the above update process, when the terminal detects that the word entered by the user is the same as the updated keyword, it can determine the keyword ID corresponding to the updated keyword and determine the function identified by the keyword ID , to display the function information of the function (or the application information of the application). The function information is not limited to the function name, which is convenient for the user to choose whether to use the function or application.
需要说明的是,终端系统中可能随时配置新的功能,或者安装新的应用,因此终端可能还未配置某些关键字标识和对应的关键字,在这种情况下,终端不能在已配置的关键字标识中查询到与目标关键字标识相同的关键字标识,此时,终端可以检测是否已配置目标关键字标识所标识的功能(或安装目标关键字标识所标识的应用),如果是,终端可以建立该目标关键字标识与所标识的功能(或应用)之间的对应关系,并对应存储待更新数据携带目标关键字标识和关键字,使得用户通过该关键字也能搜索到目标关键字标识所标识的功能。It should be noted that new functions may be configured in the terminal system at any time, or new applications may be installed, so the terminal may not be configured with certain keyword identifiers and corresponding keywords. In this case, the terminal cannot be configured in the configured The keyword identifier identical to the target keyword identifier is found in the keyword identifier. At this time, the terminal can detect whether the function identified by the target keyword identifier has been configured (or the application identified by the target keyword identifier is installed), and if so, The terminal can establish the corresponding relationship between the target keyword identifier and the identified function (or application), and correspondingly store the data to be updated to carry the target keyword identifier and keyword, so that the user can also search for the target keyword through the keyword The function identified by the word designator.
本公开实施例通过获取至少一个目标搜索字词,将存在对应目标关键字标识的目标搜索字词发送至终端,使得终端将目标搜索字词作为新的关键字,完成动态更新关键字的过程。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。The embodiments of the present disclosure obtain at least one target search term, and send the target search term corresponding to the target keyword identifier to the terminal, so that the terminal uses the target search term as a new keyword, and completes the process of dynamically updating the keyword. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
另外,提供了筛选目标搜索字词的方法,将出现次数高于第一阈值的字词作为目标搜索字词,使得该目标搜索字词是用户在搜索时经常使用的字词,进可以根据这些目标搜索字词确定的关键字更容易命中用户在搜索过程输入的字词,进一步提高了搜索命中率。In addition, a method for screening target search words is provided, and the words whose occurrence times are higher than the first threshold are used as target search words, so that the target search words are words frequently used by users when searching. The keywords determined by the target search terms are more likely to hit the words entered by the user during the search process, further improving the search hit rate.
另外,提供了对用户在搜索时输入的搜索语句的分词方法,由于一条搜索语句往往会包括多个搜索字词,因此对分词后的各个搜索字词的出现次数进行分析时,可以更加准确地分析出某一搜索字词的出现次数,使得后续所确定的关键字更加准确,从而进一步提高了搜索命中率。In addition, it provides a word segmentation method for the search sentence entered by the user when searching. Since a search sentence often includes multiple search words, when analyzing the occurrence times of each search word after word segmentation, it can be more accurately Analyzing the number of occurrences of a certain search term makes the subsequently determined keywords more accurate, thereby further improving the search hit rate.
图4是根据一示例性实施例示出的一种更新关键字的方法流程图,如图4所示,该实施例应用于服务器和终端的交互过程,具体包括以下步骤:Fig. 4 is a flowchart of a method for updating keywords according to an exemplary embodiment. As shown in Fig. 4, this embodiment is applied to the interaction process between a server and a terminal, and specifically includes the following steps:
在步骤401中,终端向服务器发送指定搜索字词,指定搜索字词为用户搜索成功时所输入的字词。In step 401, the terminal sends a designated search word to the server, and the designated search word is the word entered by the user when the search is successful.
该步骤中,当终端检测到用户对搜索工具的触发操作时,判断用户输入的字词是否存在对应的搜索结果,如果是,则确定搜索成功,获取该字词作为指定搜索字词,并将指定搜索字词发送至服务器。具体发送过程的时机与上述步骤301同理。In this step, when the terminal detects the user's trigger operation on the search tool, it judges whether there is a corresponding search result for the word input by the user, and if so, determines that the search is successful, acquires the word as the specified search word, and Specifies the search term to send to the server. The timing of the specific sending process is the same as that of step 301 above.
在步骤402中,当服务器获取到至少一个指定搜索字词时,获取终端已配置的至少一个关键字。In step 402, when the server obtains at least one specified search word, at least one keyword configured by the terminal is obtained.
需要说明的是,服务器可以针对性地为每个终端更新关键字,也可以为了节省运算资源统一地为各个终端更新关键字。因此,该步骤所获取的至少一个指定搜索字词可以来源于某一个终端,也可以来源于不同的终端。It should be noted that the server may update keywords for each terminal in a targeted manner, or may update keywords for each terminal uniformly in order to save computing resources. Therefore, at least one specified search term obtained in this step may originate from a certain terminal, or may originate from different terminals.
本公开实施例中,由于终端已配置的至少一个关键字中可能包括用户不常用的关键字,即用户在搜索时不经常输入的、且与该关键字相同的字词,因此,为了避免这类关键字占用终端系统的内存,可以删除这类关键字。In the embodiment of the present disclosure, since at least one keyword configured by the terminal may include a keyword that is not commonly used by the user, that is, a word that is not frequently input by the user and is the same as the keyword when searching, in order to avoid this Class keywords occupy the memory of the terminal system and can be deleted.
该步骤中,本公开实施例不限定获取方式。例如,由于终端已配置的关键字由服务器控制,服务器往往已经备份了终端已配置的关键字,因此可以直接从服务器本地获取终端已配置的至少一个关键字。当然,如果服务器没有备份,也可以向终端发送获取指令,终端接收到获取指令后,可以将已配置的至少一个关键字发送至服务器。In this step, the embodiment of the present disclosure does not limit the acquisition method. For example, since the keywords configured on the terminal are controlled by the server, the server often has backed up the keywords configured on the terminal, so at least one keyword configured on the terminal can be directly acquired locally from the server. Of course, if the server has no backup, it can also send an acquisition instruction to the terminal. After receiving the acquisition instruction, the terminal can send at least one configured keyword to the server.
需要说明的是,各个终端已配置的至少一个关键字可能不同,在该情况下,本公开实施例对至少一个关键字来源的终端不做限定。如果服务器针对性地为某一终端更新关键字,可以直接获取该终端已配置的至少一个关键字。如果服务器统一地为各个终端更新关键字,可以确定最近更新关键字的终端,并获取将该终端所配置的至少一个关键字。It should be noted that the at least one keyword configured for each terminal may be different, and in this case, the embodiment of the present disclosure does not limit the source of the at least one keyword. If the server specifically updates keywords for a certain terminal, at least one configured keyword for the terminal may be obtained directly. If the server updates keywords uniformly for each terminal, it can determine the terminal whose keyword is updated most recently, and acquire at least one keyword configured for the terminal.
在步骤403中,服务器判断终端已配置的任一关键字在至少一个指定搜索字词中的出现次数是否低于第二阈值,如果是,将该关键字确定为待删除关键字,如果否,忽略该指定搜索字词。In step 403, the server determines whether the number of occurrences of any keyword configured by the terminal in at least one specified search word is lower than a second threshold, if yes, determines the keyword as a keyword to be deleted, if not, The specified search term is ignored.
在判断时,服务器分析终端已配置的任一关键字在至少一个指定搜索字词中的出现次数,如果该关键字的出现次数低于第二阈值,表明用户在搜索时不经常输入与该关键字相同的字词,因此服务器可以将该关键字确定为待删除关键字。如果该关键字的出现次数不低于第二阈值,表明用户搜索时经常会输入与该关键字相同的字词,因此服务器可以忽略该指定搜索字词,并进行其他指定搜索字词的判断过程,直到各个搜索字词的判断过程结束。其中,本公开实施例对第二阈值不做限定。例如,第二阈值为个位数。When judging, the server analyzes the number of occurrences of any keyword configured by the terminal in at least one specified search term. If the number of occurrences of the keyword is lower than the second threshold, it indicates that the user does not often input the keyword related to the keyword when searching. words with the same word, so the server can identify the keyword as a keyword to be deleted. If the number of occurrences of the keyword is not lower than the second threshold, it indicates that the user often enters the same word as the keyword when searching, so the server can ignore the specified search word and proceed to the judgment process of other specified search words , until the judgment process for each search term is complete. Wherein, the embodiment of the present disclosure does not limit the second threshold. For example, the second threshold is a single digit.
在步骤404中,服务器向终端发送删除指令,删除指令用于指示终端对待删除关键字执行删除操作。In step 404, the server sends a deletion instruction to the terminal, and the deletion instruction is used to instruct the terminal to perform a deletion operation on the keyword to be deleted.
基于步骤402的说明,服务器可以向某一终端发送针对性的删除指令,也可以向各个终端发送相同的删除指令。需要说明的是,删除指令指示删除的待删除关键字可以是一个或多个。Based on the description of step 402, the server may send a targeted deletion instruction to a certain terminal, or may send the same deletion instruction to each terminal. It should be noted that the deletion instruction indicates that there may be one or more keywords to be deleted.
在步骤405中,当终端接收到服务器所发送的删除指令时,基于删除指令,对待删除关键字执行删除操作。In step 405, when the terminal receives the deletion instruction sent by the server, it performs a deletion operation on the keyword to be deleted based on the deletion instruction.
该步骤中,任一终端均可以接收到该删除指令,并根据接收到的删除指令,提取删除指令中携带的待删除关键字,将待删除关键字与已配置的至少一个关键字进行比较,并删除与待删除关键字相同的关键字。In this step, any terminal can receive the deletion instruction, and extract the keyword to be deleted carried in the deletion instruction according to the received deletion instruction, compare the keyword to be deleted with at least one configured keyword, And delete the same keyword as the keyword to be deleted.
需要说明的是,该步骤为本公开实施例的可选步骤,事实上,也可以采用其他方案代替本步骤,例如,终端接收到删除指令时,可以生成并显示删除提示,该删除提示包括确定选项和取消选项。当终端检测到用户对确定选项的触发操作时,可以对待删除关键字执行删除操作。It should be noted that this step is an optional step in the embodiment of the present disclosure. In fact, other solutions can also be used instead of this step. For example, when the terminal receives a delete instruction, it can generate and display a delete prompt, and the delete prompt includes confirmation option and cancel option. When the terminal detects the user's trigger operation on the determination option, it may perform a deletion operation on the keyword to be deleted.
本公开实施例通过获取至少一个指定字词,并获取终端已配置的关键字,分析已配置的关键字在至少一个指定字词中的出现次数,将出现次数小于第二阈值的关键字确定为待删除关键字,由终端将已配置的该关键字删除,从而淘汰用户搜索时不经常使用的关键字,并节省这些关键字所占用的终端的存储资源。In the embodiments of the present disclosure, by acquiring at least one specified word and the keywords configured by the terminal, analyzing the number of occurrences of the configured keywords in at least one specified word, and determining the keywords with the number of occurrences less than the second threshold as For keywords to be deleted, the configured keywords are deleted by the terminal, thereby eliminating keywords that users do not frequently use when searching, and saving terminal storage resources occupied by these keywords.
图5是根据一示例性实施例示出的一种更新关键字的装置框图。参照图5,该装置包括获取模块501,确定模块502和发送模块503。Fig. 5 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment. Referring to FIG. 5 , the device includes an acquisition module 501 , a determination module 502 and a sending module 503 .
该获取模块501被配置为取至少一个目标搜索字词,至少一个目标搜索字词为至少一个用户搜索失败时所输入的字词;The acquisition module 501 is configured to obtain at least one target search term, at least one target search term is a word input by at least one user when the search fails;
该确定模块502被配置为对于至少一个目标搜索字词中的任一目标搜索字词,如果关键字数据库中存在目标关键字标识,将目标搜索字词和目标关键字标识确定为待更新数据,目标关键字标识为目标搜索字词对应的关键字标识,关键字数据库用于存储各个关键字标识对应的关键字集合,每个关键字集合内所包括的至少一个关键字之间是同义词或近义词;The determining module 502 is configured to determine the target search word and the target keyword identifier as data to be updated, if any target search word in at least one target search word exists in the keyword database, The target keyword identification is the keyword identification corresponding to the target search word, and the keyword database is used to store the keyword sets corresponding to each keyword identification, and at least one keyword included in each keyword set is a synonym or a near-synonym ;
该发送模块503被配置为将待更新数据发送至终端,由终端更新目标关键字标识对应的关键字。The sending module 503 is configured to send the data to be updated to the terminal, and the terminal updates the corresponding keyword identified by the target keyword.
本公开实施例通过获取至少一个目标搜索字词,将存在对应目标关键字标识的目标搜索字词发送至终端,使得终端将目标搜索字词作为新的关键字,完成动态更新关键字的过程。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。The embodiments of the present disclosure obtain at least one target search term, and send the target search term corresponding to the target keyword identifier to the terminal, so that the terminal uses the target search term as a new keyword, and completes the process of dynamically updating the keyword. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,基于图5的装置组成,参见图6,该获取模块501包括第一获取子模块501A和筛选子模块501B;In a possible implementation, based on the composition of the apparatus in FIG. 5 , referring to FIG. 6 , the acquisition module 501 includes a first acquisition submodule 501A and a screening submodule 501B;
该第一获取子模块501A被配置为:获取至少一个待筛选搜索字词,至少一个待筛选搜索字词为至少一个用户搜索失败时所输入的字词;The first obtaining sub-module 501A is configured to: obtain at least one search term to be screened, at least one search term to be screened is a word input by at least one user when the search fails;
该筛选子模块501B被配置为筛选掉出现次数小于第一阈值的待筛选搜索字词,得到至少一个目标搜索字词。The filtering sub-module 501B is configured to filter out search terms to be screened whose occurrence times are less than a first threshold, to obtain at least one target search term.
在一种可能实现方式中,该第一获取子模块501A被配置为:获取至少一条搜索语句,至少一条搜索语句是指至少一个用户在搜索时输入的语句;对各个搜索语句进行分词,将至少一条搜索语句分词后的至少一个搜索字词获取为至少一个待筛选搜索字词。In a possible implementation manner, the first obtaining submodule 501A is configured to: obtain at least one search sentence, at least one search sentence refers to a sentence input by at least one user when searching; perform word segmentation on each search sentence, and at least At least one search term after word segmentation of a search sentence is obtained as at least one search term to be screened.
在一种可能实现方式中,基于图5的装置组成,参见图7,该获取模块501还包括第二获取子模块501C和第三获取子模块501D;In a possible implementation manner, based on the device composition in FIG. 5 , referring to FIG. 7 , the acquisition module 501 further includes a second acquisition submodule 501C and a third acquisition submodule 501D;
该第二获取子模块501C被配置为获取至少一个指定搜索字词,至少一个指定搜索字词为至少一个用户搜索成功时所输入的字词;The second obtaining sub-module 501C is configured to obtain at least one specified search term, at least one specified search term is a word entered by at least one user when the search is successful;
该第三获取子模块501D被配置为获取终端已配置的至少一个关键字;The third obtaining submodule 501D is configured to obtain at least one keyword configured by the terminal;
该确定模块502还被配置为如果终端已配置的任一关键字在至少一个指定搜索字词中的出现次数低于第二阈值,则将关键字确定为待删除关键字;The determination module 502 is further configured to determine the keyword as a keyword to be deleted if the number of occurrences of any keyword configured by the terminal in at least one specified search term is lower than a second threshold;
该发送模块503还被配置为向终端发送删除指令,删除指令用于指示终端对待删除关键字执行删除操作。The sending module 503 is further configured to send a deletion instruction to the terminal, where the deletion instruction is used to instruct the terminal to perform a deletion operation on the keyword to be deleted.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
图8是根据一示例性实施例示出的一种更新关键字的装置框图。参照图8,该装置包括发送模块801,接收模块802和更新模块803。Fig. 8 is a block diagram of an apparatus for updating keywords according to an exemplary embodiment. Referring to FIG. 8 , the device includes a sending module 801 , a receiving module 802 and an updating module 803 .
该发送模块801被配置为向服务器发送目标搜索字词,目标搜索字词为用户搜索失败时所输入的字词;The sending module 801 is configured to send the target search word to the server, and the target search word is the word input by the user when the search fails;
该接收模块802被配置为接收服务器所发送的待更新数据,待更新数据携带关键字和目标关键字标识,目标关键字标识为关键字对应的关键字标识;The receiving module 802 is configured to receive the data to be updated sent by the server, the data to be updated carries a keyword and a target keyword identifier, and the target keyword identifier is a keyword identifier corresponding to the keyword;
该更新模块803被配置为更新目标关键字标识对应的关键字。The update module 803 is configured to update a keyword corresponding to the target keyword identifier.
本公开实施例通过向服务器发送目标搜索字词,使得服务器可以分析目标搜索字词,并接收到服务器分析后的待更新数据,更新该待更新数据携带的关键字。由于更新的关键字来源于用户在搜索时输入的字词,使得该关键字很可能命中用户在搜索过程中输入的字词,提高了搜索命中率。In the embodiment of the present disclosure, by sending the target search word to the server, the server can analyze the target search word, receive the data to be updated analyzed by the server, and update the keywords carried in the data to be updated. Since the updated keyword is derived from the word input by the user when searching, the keyword is likely to hit the word input by the user during the search process, thereby increasing the search hit rate.
在一种可能实现方式中,基于图8的装置组成,参见图9,该装置还包括删除模块804;In a possible implementation, based on the composition of the apparatus in FIG. 8 , referring to FIG. 9 , the apparatus further includes a deletion module 804;
该发送模块801还被配置为向服务器发送指定搜索字词,指定搜索字词为用户搜索成功时所输入的字词;The sending module 801 is also configured to send the specified search word to the server, and the specified search word is the word entered when the user searches successfully;
该接收模块802还被配置为接收服务器所发送的删除指令,删除指令用于指示对待删除关键字执行删除操作;The receiving module 802 is also configured to receive a deletion instruction sent by the server, and the deletion instruction is used to instruct the keyword to be deleted to perform a deletion operation;
该删除模块804被配置为基于删除指令,对待删除关键字执行删除操作。The deletion module 804 is configured to perform a deletion operation on the keyword to be deleted based on the deletion instruction.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
需要说明的是:上述实施例提供的更新关键字的装置在更新关键字时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的更新关键字的装置与更新关键字的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when updating keywords, the device for updating keywords provided by the above-mentioned embodiments only uses the division of the above-mentioned functional modules for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs. To complete means to divide the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the device for updating keywords provided in the above embodiments and the method embodiments for updating keywords belong to the same idea, and the specific implementation process thereof can be found in the method embodiments, and will not be repeated here.
图10是根据一示例性实施例示出的一种更新关键字的装置1000的框图。例如,装置1000可以被提供为一服务器。参照图10,装置1000包括处理组件1022,其进一步包括一个或多个处理器,以及由存储器1032所代表的存储器资源,用于存储可由处理组件1022的执行的指令,例如应用程序。存储器1032中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1022被配置为执行指令,以执行上述实施例中服务器侧的方法。Fig. 10 is a block diagram of an apparatus 1000 for updating keywords according to an exemplary embodiment. For example, the device 1000 may be provided as a server. 10, apparatus 1000 includes processing component 1022, which further includes one or more processors, and memory resources represented by memory 1032 for storing instructions executable by processing component 1022, such as application programs. The application program stored in memory 1032 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1022 is configured to execute instructions, so as to execute the method at the server side in the foregoing embodiments.
装置1000还可以包括一个电源组件1026被配置为执行装置1000的电源管理,一个有线或无线网络接口1050被配置为将装置1000连接到网络,和一个输入输出(I/O)接口1058。装置1000可以操作基于存储在存储器1032的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1000 may also include a power component 1026 configured to perform power management of device 1000 , a wired or wireless network interface 1050 configured to connect device 1000 to a network, and an input-output (I/O) interface 1058 . The device 1000 can operate based on an operating system stored in the memory 1032, such as Windows Server ™ , MacOS X ™ , Unix ™ , Linux ™ , FreeBSD ™ or the like.
图11是根据一示例性实施例示出的一种更新关键字的装置1100的框图。例如,装置1100可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。Fig. 11 is a block diagram of an apparatus 1100 for updating keywords according to an exemplary embodiment. For example, the apparatus 1100 may be a terminal such as 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, and the like.
参照图11,装置1100可以包括以下一个或多个组件:处理组件1102,存储器1104,电源组件1106,多媒体组件1108,音频组件1110,输入/输出(I/O)的接口1111,传感器组件1114,以及通信组件1116。11, device 1100 may include one or more of the following components: processing component 1102, memory 1104, power supply component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1111, sensor component 1114, and communication component 1116.
处理组件1102通常控制装置1100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1102可以包括一个或多个处理器1120来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1102可以包括一个或多个模块,便于处理组件1102和其他组件之间的交互。例如,处理组件1102可以包括多媒体模块,以方便多媒体组件1108和处理组件1102之间的交互。The processing component 1102 generally controls the overall operations of the device 1100, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1102 may include one or more modules that facilitate interaction between processing component 1102 and other components. For example, processing component 1102 may include a multimedia module to facilitate interaction between multimedia component 1108 and processing component 1102 .
存储器1104被配置为存储各种类型的数据以支持在装置1100的操作。这些数据的示例包括用于在装置1100上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1104 is configured to store various types of data to support operations at the device 1100 . Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or non-volatile memory device or their combination, 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 or Optical Disk.
电源组件1106为装置1100的各种组件提供电力。电源组件1106可以包括电源管理系统,一个或多个电源,及其他与为装置1100生成、管理和分配电力相关联的组件。The power supply component 1106 provides power to various components of the device 1100 . Power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1100 .
多媒体组件1108包括在所述装置1100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1108包括一个前置摄像头和/或后置摄像头。当装置1100处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1108 includes a screen that provides an output interface between the device 1100 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1108 includes a front camera and/or a rear camera. When the device 1100 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1110被配置为输出和/或输入音频信号。例如,音频组件1110包括一个麦克风(MIC),当装置1100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1104或经由通信组件1116发送。在一些实施例中,音频组件1110还包括一个扬声器,用于输出音频信号。The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a microphone (MIC), which is configured to receive external audio signals when the device 1100 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1104 or sent via communication component 1116 . In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.
I/O接口1111为处理组件1102和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1111 provides an interface between the processing component 1102 and a peripheral interface module, and the above peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1114包括一个或多个传感器,用于为装置1100提供各个方面的状态评估。例如,传感器组件1114可以检测到装置1100的打开/关闭状态,组件的相对定位,例如所述组件为装置1100的显示器和小键盘,传感器组件1114还可以检测装置1100或装置1100一个组件的位置改变,用户与装置1100接触的存在或不存在,装置1100方位或加速/减速和装置1100的温度变化。传感器组件1114可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1114还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1114还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1114 includes one or more sensors for providing various aspects of status assessment for device 1100 . For example, the sensor component 1114 can detect the open/closed state of the device 1100, the relative positioning of components, such as the display and keypad of the device 1100, and the sensor component 1114 can also detect a change in the position of the device 1100 or a component of the device 1100 , the presence or absence of user contact with the device 1100 , the device 1100 orientation or acceleration/deceleration and the temperature change of the device 1100 . Sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1116被配置为便于装置1100和其他设备之间有线或无线方式的通信。装置1100可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1116还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The device 1100 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 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 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1100可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述实施例中终端侧的方法。In an exemplary embodiment, apparatus 1100 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, for executing the method on the terminal side in the foregoing embodiments.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1104,上述指令可由装置1100的处理器1120执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1104 including instructions, which can be executed by the processor 1120 of the device 1100 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611052168.2A CN106776812B (en) | 2016-11-24 | 2016-11-24 | Method and device for updating keywords |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611052168.2A CN106776812B (en) | 2016-11-24 | 2016-11-24 | Method and device for updating keywords |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106776812A true CN106776812A (en) | 2017-05-31 |
| CN106776812B CN106776812B (en) | 2019-10-15 |
Family
ID=58912388
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611052168.2A Active CN106776812B (en) | 2016-11-24 | 2016-11-24 | Method and device for updating keywords |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106776812B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108491535A (en) * | 2018-03-29 | 2018-09-04 | 北京小米移动软件有限公司 | The classification storage method and device of information |
| CN110019682A (en) * | 2017-12-28 | 2019-07-16 | 北京京东尚科信息技术有限公司 | For handling system, the method and apparatus of information |
| CN110209932A (en) * | 2019-05-17 | 2019-09-06 | 上海新储集成电路有限公司 | A method of improving search efficiency |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101075929A (en) * | 2007-03-02 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method, system and server for inquiring information |
| CN102682037A (en) * | 2011-03-18 | 2012-09-19 | 阿里巴巴集团控股有限公司 | Data acquisition method, system and device |
| CN105426498A (en) * | 2015-11-24 | 2016-03-23 | 小米科技有限责任公司 | Cue word outputting method and device |
| CN106156193A (en) * | 2015-04-22 | 2016-11-23 | 阿里巴巴集团控股有限公司 | Search and the collection method of network address, browser, server and system |
-
2016
- 2016-11-24 CN CN201611052168.2A patent/CN106776812B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101075929A (en) * | 2007-03-02 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method, system and server for inquiring information |
| CN102682037A (en) * | 2011-03-18 | 2012-09-19 | 阿里巴巴集团控股有限公司 | Data acquisition method, system and device |
| CN106156193A (en) * | 2015-04-22 | 2016-11-23 | 阿里巴巴集团控股有限公司 | Search and the collection method of network address, browser, server and system |
| CN105426498A (en) * | 2015-11-24 | 2016-03-23 | 小米科技有限责任公司 | Cue word outputting method and device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019682A (en) * | 2017-12-28 | 2019-07-16 | 北京京东尚科信息技术有限公司 | For handling system, the method and apparatus of information |
| CN108491535A (en) * | 2018-03-29 | 2018-09-04 | 北京小米移动软件有限公司 | The classification storage method and device of information |
| CN108491535B (en) * | 2018-03-29 | 2023-04-07 | 北京小米移动软件有限公司 | Information classified storage method and device |
| CN110209932A (en) * | 2019-05-17 | 2019-09-06 | 上海新储集成电路有限公司 | A method of improving search efficiency |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106776812B (en) | 2019-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105915627A (en) | Service request processing method and service request processing device | |
| CN104462296B (en) | File management method and device and terminal | |
| CN106095465B (en) | Method and device for setting identity image | |
| CN106202194A (en) | The storage method and device of screenshot picture | |
| CN104320774A (en) | Updating method, device and facility | |
| CN107105478B (en) | Network registration method and device | |
| CN105956067A (en) | Resource searching method and apparatus | |
| CN106227848A (en) | The display packing of notification message, device and terminal | |
| CN109376771A (en) | Application classification method and device | |
| CN107193393A (en) | Input method switching method and device | |
| CN105930477A (en) | Information search method and device | |
| CN106776812B (en) | Method and device for updating keywords | |
| CN111241134B (en) | Data processing method and device | |
| CN106021573A (en) | Image classification method and device and electronic device | |
| CN106650569B (en) | Fingerprint input method and device | |
| CN104951522B (en) | Method and device for searching | |
| CN105045686A (en) | File recovery method and apparatus | |
| CN107493366A (en) | Address list information update method, device and storage medium | |
| CN105095296B (en) | File management method and device | |
| CN105893128B (en) | A method and device for application call management | |
| CN106155696B (en) | Method and device for deleting information | |
| CN107908522A (en) | Information displaying method, device and computer-readable recording medium | |
| CN107729439A (en) | Obtain the methods, devices and systems of multi-medium data | |
| CN107580142A (en) | A method and apparatus for performing processing | |
| CN106339470B (en) | File processing method and 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 |