A method and device for recalling entries and a device for recalling entries

By clustering the entries in the user corpus and analyzing historical feature words, recalling the relevant target entries solves the problem of insufficient correlation between the words in the cell lexicon and the user input content, and achieves a more realistic input scenario. Entry recommendation and satisfaction of diverse needs.

CN114330305BActive Publication Date: 2024-10-29BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011058208.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2024-10-29
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

In the existing technology, the correlation between the words in the cell thesaurus and the user input content is weak and cannot meet the diverse needs of the user input content.

Method used

By clustering multiple entries in the user corpus, the historical feature words of the target user are obtained, and the target entries with the same theme as the historical feature words are determined from the multiple entries, and the targets that meet the preset conditions are recalled. The entry is sent to the client.

Benefits of technology

It improves the correlation between target entries and user input content, has wide coverage, and can better meet the diverse needs of user input content, and the recalled target entries have the same theme as the user's historical feature words.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114330305B_ABST
    Figure CN114330305B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method and device for recalling entries, and a device for recalling entries. The embodiment of the method includes: clustering multiple entries in a user corpus to obtain the subject of each entry; obtaining the historical feature words of the target user, and determining the target entry with the same subject as the historical feature words from the multiple entries; recalling the target entry that meets the preset conditions, and sending it to the client of the target user. This implementation method improves the relevance of the recalled entry with the user input content, and the recalled entry can meet the diverse needs of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for recalling entries, and a device for recalling entries. Background Art

[0002] Input method clients are usually configured with a system word library, which usually contains high-frequency words of all users as well as some authoritative words, hot words, etc. During the user input process, several words can be selected from the system word library as candidate items to be recommended to the user. However, since low-frequency words such as professional terms are usually not selected into the system word library, the system word library usually cannot meet the user's input needs.

[0003] In the prior art, multiple cell lexicons are usually configured to provide users with words in the fields they need to meet the input needs of users with different preferences. However, the words in the cell lexicon are usually derived from open data, such as professional books, articles, etc., or rely on manual construction by experts in professional fields, with limited coverage and weak relevance to the user input content, resulting in the cell lexicon being unable to meet the diversity needs of user input content. Summary of the invention

[0004] The embodiments of the present application propose a method and device for recalling entries, and a device for recalling entries, so as to solve the technical problems in the prior art that the words in the cell vocabulary have a weak correlation with the user input content and cannot meet the diversity requirements of the user input content.

[0005] In a first aspect, an embodiment of the present application provides a method for recalling entries, the method comprising: clustering multiple entries in a user corpus to obtain the subject of each entry; obtaining historical feature words of a target user, and determining, from the multiple entries, target entries having the same subject as the historical feature words; recalling target entries that meet preset conditions, and sending them to the client of the target user.

[0006] In the second aspect, an embodiment of the present application provides a term recall device, which includes: a clustering unit, configured to cluster multiple terms in a user corpus to obtain the theme of each term; a determination unit, configured to obtain historical feature words of a target user, and determine target terms with the same theme as the historical feature words from the multiple terms; a recall unit, configured to recall target terms that meet preset conditions and send them to the client of the target user.

[0007] In a third aspect, an embodiment of the present application provides a device for recalling entries, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: clustering multiple entries in a user corpus to obtain a theme of each entry; obtaining historical feature words of a target user, and determining, from the multiple entries, a target entry having the same theme as the historical feature word; recalling a target entry that meets preset conditions, and sending it to the client of the target user.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0009] The entry recall method, device and device for recalling entries provided in the embodiments of the present application cluster multiple entries in the user corpus to obtain the theme of each entry; then obtain the historical feature words of the target user, and determine the target entry with the same theme as the historical feature words from the above multiple entries; finally recall the target entry that meets the preset conditions, and send it to the client of the above target user. Therefore, on the one hand, the recalled target entry is obtained from the user corpus, has a wide coverage, and is closer to the real input scene, which improves the relevance of the target entry with the user input content, making the target entry easier to meet the diversity requirements of the user input content. On the other hand, the recalled target entry has the same theme as the historical feature words of the target user. When there are multiple historical feature words with different themes, the recalled target entry can involve multiple themes, thereby further meeting the diversity requirements of the user input content. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flow chart of an embodiment of the term recall method of the present application;

[0012] Figure 2 is a flow chart of the subject acquisition process in this application;

[0013] Figure 3 is a flow chart of the target term recall process in this application;

[0014] Figure 4 It is a structural schematic diagram of an embodiment of the entry recall device of the present application;

[0015] Figure 5It is a structural schematic diagram of a device for recalling entries of the present application;

[0016] Figure 6 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION

[0017] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] Please refer to Figure 1 , which shows a process 100 of an embodiment of the term recall method according to the present application. The term recall method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.

[0020] The input method client mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones, and the user can use the input method application to conveniently input the required characters or strings into the electronic device. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages ​​(such as English input method, Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.

[0021] The term recall method in this embodiment may include the following steps:

[0022] Step 101 , clustering multiple terms in the user corpus to obtain the theme of each term.

[0023] In this embodiment, the execution subject of the term recall method (such as the above-mentioned electronic device) can first obtain user corpus. User corpus may include sentences input by the user. In practice, user corpus can be collected through input method clients (including but not limited to input method clients installed on devices such as smart phones, tablet computers, desktop computers, and laptop computers). For example, user A inputs the sentence "This morning we went to XX store to buy jackets and went skiing in the afternoon", then the sentence can be regarded as a corpus.

[0024] It should be noted that the user corpus in this embodiment may be a corpus set of multiple users (such as all users) in a preset period of time (such as within the past year), thereby increasing the coverage of the corpus and thus helping to increase the number and diversity of recalled words.

[0025] After obtaining the user corpus, the above-mentioned execution subject can select multiple entries from the user corpus. For example, for a certain corpus "This morning we went to XX store to buy jackets and went skiing in the afternoon", the words "XX store", "jackets" and "skiing" to be clustered can be selected from it. Then, the selected multiple entries can be clustered. Various clustering algorithms can be used for clustering here, such as K-means clustering algorithm (k-means clustering algorithm, K-means), K-Nearest Neighbor (kNN) algorithm, etc., which are not limited in this embodiment.

[0026] After clustering the above multiple terms, multiple clusters can be obtained. Each term belongs to a cluster, and each cluster can correspond to a topic. Thus, the topic of each term can be obtained. Among them, the semantics of the terms in each cluster are usually similar, and the semantics of two terms belonging to different clusters are usually not similar.

[0027] By clustering multiple terms in the user's corpus, the terms can be automatically classified and multiple topics can be obtained. Since the number of topics can be pre-set and debugged, compared with the method of relying on professional experts to manually build cell thesaurus in different fields, the number of topics can be configured to increase the coverage of topics, making it easier to meet the diversity needs of user input content.

[0028] In some optional implementations of this embodiment, multiple terms in the user corpus may be clustered according to the following sub-steps S11 to S14 to obtain the theme of each term:

[0029] Sub-step S11, selecting multiple entries from the user corpus.

[0030] As an example, the user corpus may be first segmented using a word segmentation method. Then, multiple entries are selected from the word segmentation results. The word segmentation method may be a statistical word segmentation method. Specifically, the frequency of the combination of adjacent characters in the user corpus may be counted to calculate the frequency of the combination of characters. When the probability is higher than a preset probability threshold, it is determined that the combination constitutes a word, thereby achieving word segmentation of the user corpus.

[0031] As another example, the user corpus may first be matched with words in a preset word library or word list. Then, based on the matching results, multiple entries in the user corpus are selected. For example, if a word in the user corpus exists in a preset word library or word list, the word may be selected. The preset word library may include but is not limited to a system word library, a cell word library, a user word library, a professional field word library, etc. The preset word list may include but is not limited to the word lists in the above-mentioned word libraries.

[0032] Sub-step S12, obtaining a word vector of each of the multiple words.

[0033] Here, the word vector is a vector used to represent the features of a word, and the value of each dimension of the word vector can represent a feature with certain semantic and grammatical interpretations. Among them, the feature can be various information used to characterize the basic elements of the word. The word vectors of each entry can be generated using various word vector generation methods. For example, it can be generated using existing word vector generation tools (such as word2vec, etc.), or generated by training a neural network.

[0034] As an example, multiple entries selected from the user corpus include "XX store", "jacket" and "skiing", and the corresponding word vectors may be [0.21, 0.32, 0.34], [0.33, 0.53, 0.65] and [0.32, 0.45, 0.52] respectively.

[0035] Sub-step S13, clustering the obtained word vectors to obtain multiple clusters, each cluster corresponding to a topic.

[0036] Taking the K-means clustering algorithm as an example, first, K initial cluster centers can be set, each cluster center can be a word vector and can be randomly initialized. Then, the distance from each acquired term vector to each cluster center is detected. For example, the distance to the cluster center can be represented by the inner product calculation result of the vector. Afterwards, for each word vector obtained, the cluster corresponding to the cluster center with the smallest distance from the word vector can be used as the cluster to which the word vector belongs, and the cluster center of the cluster is updated. When all word vectors are clustered, K clusters can be obtained. Each cluster can correspond to a topic.

[0037] Sub-step S14, determining the theme of each term based on the cluster to which each term belongs.

[0038] Here, the cluster to which each word vector belongs is the cluster to which the word corresponding to the word vector belongs. Since each word in the multiple entries selected from the user corpus corresponds to a cluster, and each cluster can correspond to a topic, the topic of each word selected from the user corpus can be obtained.

[0039] By obtaining word vectors of multiple terms in the user corpus and clustering the word vectors, multiple terms in the user corpus can be accurately divided into topics so that terms in the same topic have similar semantics.

[0040] Step 102: Obtain historical feature words of the target user, and determine target entries having the same theme as the historical feature words from multiple entries.

[0041] In this embodiment, the execution subject may first obtain the historical feature words of the target user, then determine the subject of the historical feature words, and finally determine the target entry with the same subject as the obtained historical feature words among the multiple entries.

[0042] Among them, the historical feature words can be obtained from the historical input information of the user within a preset historical period (such as the past month). The theme of the historical feature words can be determined by matching with the above-mentioned multiple entries. For example, if the above-mentioned multiple entries contain historical feature words, the theme of the historical feature words can be directly read. In addition, the theme of the historical feature words can also be determined by detecting the cluster to which the word vector belongs. Here, for example, the distance between the word vector of the historical feature word and each cluster center can be calculated, and the cluster to which the cluster center with the smallest distance belongs can be determined, so as to know the theme of the historical feature words.

[0043] It should be noted that the number of historical feature words can be one or more. When multiple historical feature words are obtained, for each historical feature word, a target entry with the same theme as the historical feature word can be determined from the above multiple entries. As an example, the above multiple entries in the user corpus include "skiing", "ice skating", "ice skate", "jacket", "down jacket", "cold-proof clothing", "pencil" and "watercolor pen". Among them, "skiing", "ice skating" and "ice skate" have the same theme, "jacket", "down jacket" and "cold-proof clothing" have the same theme, and "pencil" and "watercolor pen" have the same theme. If the historical feature words include "skiing" and "jacket", then for the historical feature word "skiing", its target entries are "skiing", "ice skating" and "ice skate". For the historical feature word "jacket", its target entries are "jacket", "down jacket" and "cold-proof clothing".

[0044] In some optional implementations of this embodiment, the historical characteristic words of the above-mentioned target user can be obtained according to the following steps: First, the historical input information of the above-mentioned target user within a preset historical period (such as the past month) is obtained. Then, the above-mentioned historical input information is matched with the words in a preset vocabulary or vocabulary list. Among them, the preset vocabulary library may include but is not limited to a system vocabulary library, a cell vocabulary library, a user vocabulary library, a professional field vocabulary library, etc. The preset vocabulary list may include but is not limited to the vocabulary lists in the above-mentioned vocabulary libraries. Finally, based on the matching results, the historical characteristic words of the target user are extracted from the historical input information. For example, if a word in the historical input information exists in a preset vocabulary library or vocabulary list, the word can be used as the historical characteristic word of the target user.

[0045] Step 103, recalling target terms that meet preset conditions and sending them to the client of the target user.

[0046] In this embodiment, the above-mentioned execution subject can recall the target terms that meet the preset conditions and send them to the client (such as the input method client) of the target user. Here, the preset conditions for recalling the target terms can be set as needed. For example, the target terms can be scored, and the preset conditions can be set to a score greater than a preset threshold, thereby recalling the target terms whose scores are greater than the preset threshold. For another example, the target terms can be sorted in order of scores, and the preset conditions can be set to an order that is before the target order (such as 1000), thereby recalling the target terms whose order is in the top 1000.

[0047] Since the target terms to be recalled are obtained from the user corpus, they are closer to the actual input scenario, which improves the relevance of the recalled terms to the input content and makes the recalled terms more likely to meet user needs.

[0048] In some optional implementations of this embodiment, the target entry may be recalled according to the following sub-steps S21 to S23:

[0049] Sub-step S21, determining the score of the historical feature word based on the word frequency-inverse document frequency method.

[0050] Among them, the main idea of ​​the term frequency-inverse document frequency (TF-IDF) method is that if a word or phrase appears in an article with a high frequency (TF) and rarely appears in other articles, it is considered that this word or phrase has a good ability to distinguish categories and is suitable for classification. The inverse document frequency (IDF) mainly means that if there are fewer documents containing a word or phrase, the larger the IDF, it means that the word or phrase has a good ability to distinguish categories. Therefore, using the term frequency-inverse document frequency method, the importance of a word or phrase in a certain article can be calculated. The value determined by the term frequency-inverse document frequency method is the score of the historical feature word.

[0051] As an example, the execution subject may first obtain the historical input information of the target user within a preset historical period (e.g., the past month), and count the word frequency (i.e., TF) of the historical feature words in the historical input information. Then, count the reverse document frequency (i.e., IDF) of the historical feature words in the user corpus. Finally, based on the word frequency and reverse document frequency (i.e., TF×IDF), determine the score of the historical feature words.

[0052] It should be noted that when there are two or more historical feature words, a score can be calculated for each historical feature word in the above manner.

[0053] Sub-step S22, determining the score of the target term based on the score of the historical feature word.

[0054] Here, the execution subject can directly use the score of the historical feature word as the score of the target entry. When there are two or more historical feature words, for each historical feature word, the score of the historical feature word can be used as the score of the target entry with the same subject as the historical feature word among multiple entries.

[0055] As an example, the historical feature words include "skiing" and "jacket". The target terms corresponding to the historical feature word "skiing" are "skiing", "ice skating" and "ice skating". The target terms corresponding to the historical feature word "jacket" are "jacket", "down jacket" and "cold-proof clothing". If the score of "skiing" is 0.8, the scores of the target terms "skiing", "ice skating" and "ice skating" can be set to 0.8. If the score of "jacket" is 0.7, the scores of the target terms "jacket", "down jacket" and "cold-proof clothing" can be set to 0.7.

[0056] It should be noted that if there are two or more historical feature words with the same theme, the score of one of the historical feature words can be used as the score of the corresponding target entry. Alternatively, the scores of the historical feature words with the same theme can be weighted and summed, and the weighted sum result can be used as the score of the corresponding target entry.

[0057] Sub-step S23, recalling a preset number of target terms in descending order of the scores of the target terms; or recalling target terms whose scores are greater than a preset threshold.

[0058] As an example, the target terms include "skiing", "ice skating", "ice skate", "jacket", "down jacket", "cold-proof clothing", "pencil", and "watercolor pen". Among them, the scores of "skiing", "ice skating", and "ice skate" are 0.8, the scores of "jacket", "down jacket", and "cold-proof clothing" are 0.7, and the scores of "pencil" and "watercolor pen" are 0.3.

[0059] Taking the recall of a preset number of target entries as an example, if the preset number is 6, the recalled target entries are "skiing", "ice skating", "ice skates", "jackets", "down jackets" and "cold-proof clothing".

[0060] Taking the target terms with a recall score greater than the preset threshold as an example, if the preset threshold is 0.5, the target terms to be recalled are "skiing", "skating", "ice skating", "jacket", "down jacket", and "cold-proof clothing". If the preset threshold is 0.75, the target terms to be recalled are "skiing", "ice skating", and "ice skating".

[0061] By determining the scores of target terms with the same subject as the historical feature words and then selecting the recalled target terms, the recalled target terms can be made to more easily meet the input needs of the user.

[0062] In some optional implementations of this embodiment, the execution subject may send the recalled target terms to the client of the target user according to the following steps: First, the recalled target terms are summarized according to the subject to obtain at least one personalized word library. Each subject corresponding to the recalled target terms may correspond to a personalized word library. Then, the obtained at least one personalized word library is sent to the client of the target user. Thus, personalized word libraries of different subjects may be configured in the client to enrich the diversity of the word library.

[0063] The method provided by the above-mentioned embodiment of the present application clusters multiple entries in the user corpus to obtain the theme of each entry; then obtains the historical feature words of the target user, and determines the target entry with the same theme as the historical feature words in the above-mentioned multiple entries; finally, the target entry that meets the preset conditions is recalled and sent to the client of the above-mentioned target user. Therefore, on the one hand, the recalled target entry is obtained from the user corpus, has a wide coverage, and is closer to the real input scene, which improves the relevance of the target entry with the user input content, making the target entry easier to meet the diversity requirements of the user input content. On the other hand, the recalled target entry has the same theme as the historical feature words of the target user. When there are multiple historical feature words with different themes, the recalled target entry can involve multiple themes, thereby being able to further meet the diversity requirements of the user input content.

[0064] Further references Figure 4 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a term recall device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0065] like Figure 4 As shown, the above-mentioned entry recall device 400 of this embodiment includes: a clustering unit 401, configured to cluster multiple entries in the user corpus to obtain the theme of each entry; a determination unit 402, configured to obtain the historical feature words of the target user, and determine the target entry with the same theme as the above-mentioned historical feature words from the above-mentioned multiple entries; a recall unit 403, configured to recall the target entry that meets the preset conditions, and send it to the client of the above-mentioned target user.

[0066] In some optional implementations of the present embodiment, the clustering unit 401 is further configured to: select multiple terms from the user corpus; obtain a word vector for each term in the multiple terms; cluster the obtained word vectors to obtain multiple clusters, each cluster corresponding to a topic; and determine the topic of each term based on the cluster to which the term belongs.

[0067] In some optional implementations of this embodiment, the clustering unit 401 is further configured to: match the user corpus with words in a preset vocabulary or word list; and select multiple entries in the user corpus based on the matching result.

[0068] In some optional implementations of this embodiment, the above-mentioned determination unit 402 is further configured to: obtain the historical input information of the above-mentioned target user within a preset historical period; match the above-mentioned historical input information with words in a preset vocabulary or word list; and based on the matching results, extract the historical feature words of the above-mentioned target user from the above-mentioned historical input information.

[0069] In some optional implementations of the present embodiment, the recall unit 403 is further configured to: determine the score of the historical feature word based on the word frequency-reverse file frequency method; determine the score of the target term based on the score of the historical feature word; recall a preset number of target terms in descending order of the scores of the target terms; or recall target terms whose scores are greater than a preset threshold.

[0070] In some optional implementations of the present embodiment, the recall unit 403 is further configured to: obtain historical input information of the target user within a preset historical period, and count the word frequency of the historical feature words in the historical input information; count the reverse file frequency of the historical feature words in the user corpus; and determine the score of the historical feature words based on the word frequency and the reverse file frequency.

[0071] In some optional implementations of this embodiment, the recall unit 403 is further configured to: for each historical feature word, use the score of the historical feature word as the score of the target entry with the same subject as the historical feature word among the multiple entries.

[0072] In some optional implementations of this embodiment, the recall unit 403 is further configured to: summarize the recalled target terms according to themes to obtain at least one personalized vocabulary; and send the at least one personalized vocabulary to the client of the target user.

[0073] The device provided by the above-mentioned embodiment of the present application clusters multiple entries in the user corpus to obtain the theme of each entry; then obtains the historical feature words of the target user, and determines the target entry with the same theme as the historical feature words in the above-mentioned multiple entries; finally, the target entry that meets the preset conditions is recalled and sent to the client of the above-mentioned target user. Therefore, on the one hand, the recalled target entry is obtained from the user corpus, has a wide coverage, and is closer to the real input scene, which improves the relevance of the target entry with the user input content, making the target entry easier to meet the diversity requirements of the user input content. On the other hand, the recalled target entry has the same theme as the historical feature words of the target user. When there are multiple historical feature words with different themes, the recalled target entry can involve multiple themes, thereby being able to further meet the diversity requirements of the user input content.

[0074] Figure 5 1 is a block diagram of a device 500 for input according to an exemplary embodiment, and the device 500 may be a smart terminal or a server. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0075] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0076] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0077] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0078] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.

[0079] The multimedia component 508 includes a screen that provides an output interface between the above-mentioned device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating 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 a focal length and optical zoom capability.

[0080] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0081] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0082] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0083] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 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 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0084] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0085] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0086] Figure 6 6 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 622 can be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.

[0087] The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0088] A non-temporary computer-readable storage medium, when the instructions in the above storage medium are executed by the processor of a device (smart terminal or server), enables the device to execute a term recall method, the above method comprising: clustering multiple terms in a user corpus to obtain the subject of each term; obtaining historical feature words of a target user, and determining target terms with the same subject as the above historical feature words from the above multiple terms; recalling target terms that meet preset conditions and sending them to the client of the target user.

[0089] Optionally, clustering multiple terms in the user corpus to obtain the theme of each term includes: selecting multiple terms from the user corpus; obtaining a word vector for each term in the multiple terms; clustering the obtained word vectors to obtain multiple clusters, each cluster corresponding to a theme; and determining the theme of each term based on the cluster to which the term belongs.

[0090] Optionally, the selecting a plurality of terms from the user corpus includes: matching the user corpus with words in a preset lexicon or vocabulary; and selecting a plurality of terms from the user corpus based on the matching result.

[0091] Optionally, obtaining the historical feature words of the target user includes: obtaining historical input information of the target user within a preset historical period; matching the historical input information with words in a preset vocabulary or word list; and extracting the historical feature words of the target user from the historical input information based on the matching result.

[0092] Optionally, the recalling of target terms that meet preset conditions includes: determining the score of the historical feature words based on the word frequency-reverse document frequency method; determining the score of the target term based on the score of the historical feature words; recalling a preset number of target terms in descending order of the scores of the target terms; or, recalling target terms whose scores are greater than a preset threshold.

[0093] Optionally, the word frequency-reverse file frequency method is used to determine the score of the historical feature word, including: obtaining historical input information of the target user within a preset historical period, and counting the word frequency of the historical feature word in the historical input information; counting the reverse file frequency of the historical feature word in the user corpus; and determining the score of the historical feature word based on the word frequency and the reverse file frequency.

[0094] Optionally, determining the score of the target term based on the score of the historical feature word includes: for each historical feature word, using the score of the historical feature word as the score of the target term in the multiple terms that has the same subject as the historical feature word.

[0095] Optionally, the sending to the client of the target user includes: aggregating the recalled target terms according to themes to obtain at least one personalized word library; and sending the at least one personalized word library to the client of the target user.

[0096] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0097] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0098] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0099] The above is a detailed introduction to a method and device for recalling entries provided by the present application, and a device for recalling entries. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A term recall method, characterized in that: The method comprises: Clustering multiple terms in a user corpus to obtain a theme of each term, wherein the user corpus includes: sentences input by a user collected through an input method client; Acquire historical feature words of a target user, and determine a target entry having the same subject as the historical feature words from the multiple entries; Recalling target entries that meet preset conditions and sending them to the input method client of the target user includes: aggregating the recalled target entries according to themes to obtain at least one personalized word library; and sending the at least one personalized word library to the input method client of the target user.

2. The method according to claim 1, characterized in that The clustering of multiple terms in the user corpus to obtain the subject of each term includes: Select multiple terms from the user corpus; Obtaining a word vector for each of the multiple words; Cluster the obtained word vectors to obtain multiple clusters, each cluster corresponds to a topic; Based on the cluster to which each term belongs, the topic of each term is determined.

3. The method according to claim 2, characterized in that The selecting a plurality of terms from the user corpus includes: Matching user corpus with words in a preset vocabulary or word list; Based on the matching results, multiple entries in the user corpus are selected.

4. The method according to claim 1, characterized in that: The step of obtaining the historical characteristic words of the target user includes: Obtaining historical input information of the target user within a preset historical period; Matching the historical input information with words in a preset word library or word list; Based on the matching result, historical feature words of the target user are extracted from the historical input information.

5. The method according to claim 1, characterized in that The target terms that meet the preset conditions are recalled, including: Determining the score of the historical characteristic word based on the word frequency-inverse document frequency method; Determining the score of the target term based on the score of the historical feature word; Recall a preset number of target terms in descending order of the scores of the target terms; or recall target terms whose scores are greater than a preset threshold.

6. The method according to claim 5, characterized in that The method based on word frequency-inverse document frequency to determine the score of the historical feature word includes: Acquire the historical input information of the target user within a preset historical period, and count the word frequency of the historical feature words in the historical input information; Counting the reverse document frequency of the historical feature words in the user corpus; Based on the word frequency and the reverse document frequency, a score of the historical feature word is determined.

7. The method according to claim 5, characterized in that The step of determining the score of the target entry based on the score of the historical feature word comprises: For each historical feature word, the score of the historical feature word is used as the score of the target term with the same subject as the historical feature word among the multiple terms.

8. A term recall device, characterized in that: The device comprises: A clustering unit is configured to cluster multiple terms in a user corpus to obtain a theme of each term, wherein the user corpus includes: sentences input by a user collected through an input method client; a determination unit configured to obtain a historical feature word of a target user and determine a target entry having the same subject as the historical feature word from the plurality of entries; The recall unit is configured to recall target entries that meet preset conditions and send them to the input method client of the target user, including: summarizing the recalled target entries according to themes to obtain at least one personalized word library; sending the at least one personalized word library to the input method client of the target user.

9. A device for recalling a term, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: Clustering multiple terms in a user corpus to obtain a theme of each term, wherein the user corpus includes: sentences input by a user collected through an input method client; Acquire historical feature words of a target user, and determine a target entry having the same subject as the historical feature words from the multiple entries; Recalling target entries that meet preset conditions and sending them to the input method client of the target user includes: aggregating the recalled target entries according to themes to obtain at least one personalized word library; and sending the at least one personalized word library to the input method client of the target user.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.