A method and device for shielding grey self-made phrases
By obtaining the user's self-made phrases on the screen and confirming that they contain gray words, and canceling their word group relationships, the problem of convenient input of gray self-made phrases is solved, effective shielding of unfavorable words is achieved, and its adverse impact on users is reduced. .
Patent Information
- Application Number
- CN201811623734.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2038-12-28
AI Technical Summary
How to prevent users from conveniently entering gray self-made phrases, especially words that are detrimental to social stability and physical and mental health, there is currently a lack of effective blocking methods.
By obtaining the user's self-made phrase on the screen, determine whether it contains gray words, and cancel its word group relationship to prevent it from being saved in the user's vocabulary, thereby increasing the operational complexity of inputting gray self-made phrases and reducing its adverse effects. .
It effectively shields the word group relationships of gray self-made phrases, preventing them from being easily input, reducing the negative impact on users, and improving the security of the input method system.
Smart Images

Figure CN111381684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of input methods, and in particular to a method and device for shielding grey self-made word groups. Background Art
[0002] Users can use the input method to input self-made phrases. Self-made phrases refer to unconventional combinations of multiple words constructed by the user. Generally speaking, self-made phrases are composed of multiple words, wherein two adjacent words usually do not have normal semantic connections or do not belong to conventional word-forming forms. For example, "watch karate" can be a self-made phrase, which is composed of the two words "watch" and "karate", and according to semantics or word-forming rules, "watch" and "karate" generally do not appear in combination.
[0003] Users can express some specific meanings through self-made phrases, or use them as a specific form of expression to enrich the user's expression. However, some users may achieve bad purposes through self-made phrases, such as gray self-made phrases. Gray self-made phrases are a type of self-made phrases. All or part of the multiple words that make up a gray self-made phrase are gray words. Gray words mainly refer to words that are not conducive to social stability and affect physical and mental health, such as words with semantics related to pornography, gambling, and drugs.
[0004] Therefore, how to prevent users from conveniently inputting gray self-made phrases is a problem that needs to be solved urgently. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a method and device for shielding gray self-made phrases, which increases the operational complexity of users inputting gray self-made phrases and reduces the adverse effects of gray self-made phrases on users.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for shielding gray self-made word groups, the method comprising:
[0008] Acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words;
[0009] Determining whether the self-made word group includes gray words;
[0010] If so, cancel the word relationship of the self-made word group.
[0011] Optionally, the method further includes:
[0012] Sending the self-created word group to a server;
[0013] Obtaining a gray word determination result for the self-created word group returned by the server;
[0014] The step of determining whether the self-created word group includes a gray word comprises:
[0015] According to the grey word judgment result, it is determined whether the plurality of words in the self-created word group include grey words.
[0016] Optionally, the method further includes:
[0017] If the grey word determination result is that the plurality of words in the self-created word group include grey words, the grey words in the grey word determination result are added to a local grey word library.
[0018] Optionally, the determining whether the self-created word group includes a grey word comprises:
[0019] It is determined whether the multiple words in the self-created word group include a gray word according to a local gray word library, wherein the local gray word library includes at least one gray word or includes a label of at least one gray word.
[0020] Optionally, the method further includes:
[0021] A local grey word library is maintained according to the frequency of grey words input by the user.
[0022] Optionally, the method further includes:
[0023] Send the version identifier of the local gray word library to the server;
[0024] Acquire the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier;
[0025] The local grey word library is updated according to the word library update information.
[0026] Optionally, the method further includes:
[0027] Determine whether the to-be-determined phrase is a self-made phrase according to the input behavior data of the to-be-determined phrase on the screen by the user;
[0028] If it is determined that the pending word group is a self-made word group, the step of determining whether the self-made word group includes a gray word is performed.
[0029] Optionally, the canceling of the word relationship of the self-created word group includes:
[0030] Deleting the word-grouping relationship of the self-created word group from the word-grouping data of the user; or,
[0031] The word-grouping relationship of the self-made word group is not recorded.
[0032] In a second aspect, an embodiment of the present application provides a device for shielding gray self-made word groups, the device comprising an acquisition unit, a determination unit and a cancellation unit:
[0033] The acquisition unit is used to acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words;
[0034] The determining unit is used to determine whether the self-made word group includes a grey word; if so, triggering the canceling unit;
[0035] The canceling unit is used to cancel the word-grouping relationship of the self-created word group.
[0036] Optionally, the device further includes a first sending unit:
[0037] The first sending unit is used to send the self-created word group to the server;
[0038] The acquisition unit is also used to acquire the gray word judgment result for the self-made word group returned by the server;
[0039] The determining unit is further configured to determine whether the plurality of words in the self-created word group include a gray word according to the gray word determination result.
[0040] Optionally, the device further comprises an adding unit:
[0041] If the determining unit determines that the multiple words in the self-made word group include a gray word, triggering the adding unit;
[0042] The adding unit is used to add the grey words in the grey word judgment result to the local grey word library.
[0043] Optionally, the determination unit is further configured to determine whether the multiple words in the self-created word group include a gray word according to a local gray word library, wherein the local gray word library includes at least one gray word or includes a label of at least one gray word.
[0044] Optionally, the device further comprises a maintenance unit:
[0045] The maintenance unit is used to maintain the local grey word library according to the frequency of grey words input by the user.
[0046] Optionally, the device further includes a second sending unit and an updating unit:
[0047] The second sending unit is used to send a version identifier of the local grey word library to the server;
[0048] The acquisition unit is further used to acquire the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier;
[0049] The updating unit is used to update the local grey word library according to the word library update information.
[0050] Optionally, the device further comprises a self-created word group determination unit:
[0051] The self-created phrase determination unit is used to determine whether the pending phrase is a self-created phrase based on the user's input behavior data of the pending phrase on the screen; if it is determined that the pending phrase is a self-created phrase, the determination unit is triggered.
[0052] Optionally, the canceling unit is further configured to delete the word-forming relationship of the self-created word group from the word-forming data of the user; or, not record the word-forming relationship of the self-created word group.
[0053] In a third aspect, an embodiment of the present application provides a device for shielding gray self-made phrases, 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, and the one or more programs include instructions for performing the following operations:
[0054] Acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words;
[0055] Determining whether the self-made word group includes gray words;
[0056] If so, cancel the word relationship of the self-made word group.
[0057] In a fourth aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to perform the method for shielding gray self-made phrases as described in one or more of the first aspects.
[0058] It can be seen from the above technical solution that since the input method system will configure a corresponding user vocabulary for the user, the user vocabulary can save the word combination relationship of the user's most recent phrase on the screen according to the user's word combination data, so that when the user wants to put the previously put-on-screen phrase on the screen again, the input method system can directly retrieve the corresponding word combination relationship from the user vocabulary and display it to the user in the form of a candidate item, and the user can directly select it to be put on the screen, thereby providing a convenient input method for the user to input the self-made phrase again. Therefore, when obtaining a self-made phrase composed of multiple words on the screen by the user, by determining whether the multiple words of the self-made phrase include gray words, the word combination relationship can be cancelled when gray words are included to avoid the word combination relationship being saved in the user vocabulary corresponding to the user, which is equivalent to shielding the word combination relationship of the gray self-made phrase from entering the user vocabulary, eliminating the possibility of conveniently inputting the gray self-made phrase. Therefore, when the user needs to screen the gray self-made phrase again, since the word relationship of the gray self-made phrase is not saved in the user's word library, the gray self-made phrase is not directly displayed in the candidate items, and the user can only obtain the gray self-made phrase by selecting and searching for candidate items multiple times. It can be seen that by shielding the word relationship of the gray self-made phrase from entering the user word library, the operation complexity of the user inputting the gray self-made phrase is increased, and the adverse impact of the gray self-made phrase on the user is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0060] Figure 1 A method flow chart of a method for shielding grey self-made word groups provided in an embodiment of the present application;
[0061] Figure 2 A device structure diagram of a device for shielding gray self-made word groups provided in an embodiment of the present application;
[0062] Figure 3 A structural diagram of a shielding device for gray self-made word groups provided in an embodiment of the present application;
[0063] Figure 4 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0065] Users construct self-made phrases to express some specific meanings or as a specific form of expression, which enriches the user's expression. However, some users may achieve bad purposes through self-made phrases, such as gray self-made phrases that include gray words. Since gray words are not conducive to social stability and affect physical and mental health, it is necessary to suppress the spread of gray self-made phrases on the Internet.
[0066] To this end, an embodiment of the present application provides a method for shielding gray self-made phrases, which suppresses the propagation speed of gray self-made phrases to a certain extent by increasing the input cost of users inputting gray self-made phrases.
[0067] The embodiments of the present application can be applied to terminals equipped with input method systems, such as mobile phones and computers, and can also be further implemented in conjunction with servers with stronger processing capabilities.
[0068] The embodiment of the present application mainly identifies the gray self-made word group and cancels the word group relationship of the gray self-made word group locally in the terminal to shield the word group relationship from being recorded in the user's word library. Therefore, when the user inputs the character string for the gray self-made word group on the screen again, since the word group relationship of the gray self-made word group is not saved in the user's word library, the gray self-made word group is not directly displayed in the candidate items. The user can only obtain the gray self-made word group by selecting and searching for candidate items multiple times. By increasing the operational complexity of the user inputting the gray self-made word group, the adverse effects of the gray self-made word group on the user are reduced.
[0069] Next, combine Figure 1 A method for shielding grey self-made phrases is described, the method comprising:
[0070] S101: Acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words.
[0071] Self-made word groups are composed of multiple words, in which two adjacent words usually do not have normal semantic connections or do not belong to conventional word-forming forms.
[0072] Since self-made words and non-self-made words have different input characteristics, in a possible implementation, the terminal can determine whether the pending word group is a self-made word group according to the user's input behavior data of the pending word group on the screen. If it is determined that the pending word group is a self-made word group, S102 is executed.
[0073] The user can screen the self-made word group in a variety of ways, such as inputting different types of content to select the self-made word group on the screen according to the corresponding candidate items. The input content may include a character string corresponding to the self-made word group, voice input, etc.
[0074] Taking the string input method as an example, since at least two adjacent words in the self-made phrase do not have a normal semantic connection or do not belong to the conventional word formation form, the input method system usually displays the candidate items corresponding to a part of the string first, and then displays the candidate items corresponding to another part of the string after the user selects. For example, for the self-made phrase "spinach airplane", the user inputs the string "bocaifj", and the input method system can first display the candidate items corresponding to a part of the string with possible semantics and word formation relationship, such as the candidate item corresponding to "bocai". After the user selects the candidate item "spinach", the input method system displays the candidate items corresponding to the remaining part of the string "fj" so that the user can select the candidate item "airplane" corresponding to this part of the string.
[0075] This method of displaying candidate items corresponding to a part of the input content and continuing to display candidate items corresponding to a part of the input content after the user selects can be called semi-selection. The user's action of selecting candidate items will be recorded in the input behavior data.
[0076] Therefore, through the input behavior data generated by the user when a pending phrase is on the upper screen, it can be judged whether the user has made a half-selection operation, and thus it can be determined through such user operations whether the pending phrase is a self-made phrase.
[0077] It should be noted that the input behavior data generated when the user screens the pending phrase can also include a lot of other information, such as whether the candidate items are swiped, the page is turned, etc. Therefore, there are many ways to determine whether the pending phrase is a self-made phrase through input behavior data. The above example is only an example and does not serve to limit the method of determining self-made phrases based on input behavior data.
[0078] S102: Determine whether the self-created word group includes grey words; if so, execute S103.
[0079] After determining that the phrase displayed on the user's screen is a self-made phrase, it is necessary to further determine whether there are gray words in the multiple words included in the self-made phrase, that is, to determine whether there are words in the self-made phrase that are not conducive to social stability and affect physical and mental health.
[0080] It should be noted that the grey words in the self-made word group may be selected to appear on the screen purposefully by the user, or may be selected to appear on the screen accidentally by the user.
[0081] The embodiment of the present application does not limit the specific method of determining whether a self-created word group includes gray words, and an adaptive determination method can be selected and set according to different application scenarios or different determination requirements.
[0082] For S102, the embodiment of the present application also provides a variety of possible determination methods suitable for different scenarios or needs, which are introduced one by one below.
[0083] The first determination method: determination through the server.
[0084] In this method, after obtaining the self-made word group on the user's screen, the terminal can send the self-made word group to the server, and the server determines whether the self-made word group contains gray words. Since the processing and storage capabilities of the server itself are much stronger than those of the terminal, the server can quickly and accurately identify the gray words that may be contained in the self-made word group.
[0085] The server may use the gray word set maintained by itself as the basis for determining the self-created word group. The gray word set may include gray words recognized by the server and pre-tagged; or, the gray word set may include tags of gray words recognized by the server and pre-tagged.
[0086] Since the server has a strong storage capacity, it can maintain a large gray word set, and with strong data processing capabilities, it can quickly and accurately determine whether there are gray words in the self-made word group. After the server determines the gray word judgment result of the self-made word group, it can return the result to the terminal, and the terminal can determine whether the multiple words in the self-made word group include gray words according to the gray word judgment result.
[0087] It should be noted that the self-created word group sent by the terminal to the server may have been processed with word segmentation or may not have been processed with word segmentation.
[0088] The second determination method: determination through the terminal.
[0089] In this manner, the terminal may determine whether the plurality of words in the self-created word group include a gray word according to a local gray word library.
[0090] The local gray word library includes at least one gray word or a label including at least one gray word. Although the local storage capacity of the terminal is limited and the processing capacity is weaker than that of the server, it can be implemented in various scenarios, such as when there is no network condition, which improves the scope of application of determining gray words.
[0091] Moreover, in a possible implementation, in order to improve the efficiency of the terminal in determining the gray words in the self-created word group, the terminal can maintain the local gray word library according to the frequency of gray words input by the user. That is to say, the terminal can continuously store the gray words with a high input frequency of the user in the local gray word library according to the gray word input habits of the user using the terminal. The local gray word library is more suitable for the user, and when determining the gray words in the self-created word group of the user, a faster and more accurate result can also be obtained.
[0092] In addition to maintaining the local gray word library in the manner described in the previous paragraph, the terminal can also maintain the local gray word library with the help of the server. The present application embodiment introduces two possible implementation methods:
[0093] In one possible implementation, if the terminal obtains the gray word judgment result returned by the server through the first determination method, and the result is that multiple words in the self-created phrase include gray words, the terminal can add the gray word to the local gray word library, and the addition can be in the form of adding the gray word, or adding a label for the gray word.
[0094] In a possible implementation, the terminal may send a version identifier of the local gray word library to the server, and the version identifier is used to identify the current version information of the local gray word library, or in other words, the local gray word library is established based on which version of the gray word set maintained by the server. The version identifier may also carry the time information of the last update in some cases.
[0095] The server can determine whether the local gray word library of the terminal needs to be updated based on the version identifier provided by the terminal. The basis for the judgment can be the version information provided by the terminal and the version information of the gray word set currently maintained by the server. If it is determined that the server's version information is larger based on the two version information, the library update information can be returned to the terminal. The library update information carries the gray word update content based on the version identifier.
[0096] If the version information sent by the terminal also carries time information, the server can also determine whether to return the word library update information based on the time information.
[0097] After the terminal obtains the word library update information returned by the server, the terminal can update the local grey word library according to the word library update information.
[0098] It should be noted that this method can be implemented in combination with the first determination method described above. For example, when the terminal sends the self-made word group to the server, it can also send the version identifier of the local gray word library at the same time. Correspondingly, when the server returns the gray word judgment result for the self-made word group to the terminal, it can also return the word library update information at the same time.
[0099] By optimizing the local grey word library of the terminal in the above manner, the accuracy of the terminal in determining whether the multiple words in the self-created word group include grey words can be improved, and the determination efficiency can also be improved.
[0100] The above two determination methods may also be implemented simultaneously. When different determination results are obtained by the two determination methods, the terminal may combine the two determination results by weight coefficient or other methods to determine whether the multiple words in the self-made word group include gray words.
[0101] The above introduces the respective advantages and implementation methods of the first determination method and the second determination method. However, the embodiments of the present application do not limit the scenarios or requirements under which the first determination method or the second determination method can be used.
[0102] S103: canceling the word-grouping relationship of the self-created word group.
[0103] When the user displays a phrase on the screen, the input method system will record the word combination relationship of the phrase into the word combination data, and can save the word combination relationship into the user word library corresponding to the user.
[0104] Since the user vocabulary can save the word combination relationship of the user's most recent phrase on the screen based on the user's word combination data, when the user wishes to display the previously displayed phrase on the screen again, the input method system can directly retrieve the corresponding word combination relationship from the user vocabulary and display it to the user in the form of candidate items. The user can directly select the item to be displayed on the screen, thereby providing a convenient input method for the user to input self-made phrases again.
[0105] Therefore, when it is determined that the user has put on the screen a self-made phrase including gray words, the input method system can cancel the word relationship of the self-made phrase, so that the word relationship is no longer saved locally, avoiding the word relationship from being saved in the user vocabulary corresponding to the user, which is equivalent to blocking the gray self-made phrase from entering the user vocabulary, eliminating the possibility of convenient input of gray self-made phrases.
[0106] The embodiment of the present application does not limit the specific method of canceling the word group relationship, as long as the effect of shielding the gray self-created word group from entering the user vocabulary is achieved.
[0107] In a possible implementation, the word group relationship may be cancelled by deleting the word group relationship or not recording the word group relationship.
[0108] The method of deleting the word group relationship may be to delete the word group relationship of the self-made word group from the word group data of the user. By deleting the word group relationship of the self-made word group including the gray word from the word group data of the user, the word group relationship can be prevented from being saved in the user word library corresponding to the user, thereby preventing the gray self-made word group from entering the user word library.
[0109] The method of not recording word grouping relationships results in that the word grouping relationships of self-made word groups including gray words will not be recorded in the user's word grouping data at all. This can prevent the word grouping relationships from being saved in the user vocabulary corresponding to the user, thereby shielding the gray self-made word groups from entering the user vocabulary.
[0110] Therefore, when the user needs to display the gray self-made phrase again, since the user's user vocabulary does not store the word relationship of the gray self-made phrase, the gray self-made phrase is not directly displayed in the candidate items, and the user can only obtain the gray self-made phrase by selecting and searching the candidate items multiple times. For the case where the user accidentally selects the wrong gray self-made phrase and displays it, it can avoid the embarrassment caused by the directly displayed gray self-made phrase being seen by others. For the case where the user selects the gray self-made phrase purposefully and displays it, by shielding the gray self-made phrase from entering the user vocabulary, the operation complexity of the user inputting the gray self-made phrase again is increased, and the adverse effects of the gray self-made phrase on the user are reduced.
[0111] based on Figure 1 The corresponding embodiment provides a method for shielding gray self-made words. The embodiment of the present application provides a device for shielding gray self-made words. Figure 2 , the device comprises an acquiring unit 201, a determining unit 202 and a cancelling unit 203:
[0112] The acquisition unit 201 is used to acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words;
[0113] The determining unit 202 is used to determine whether the self-made word group includes a grey word; if so, trigger the canceling unit;
[0114] The canceling unit 203 is used to cancel the word relationship of the self-created word group.
[0115] Optionally, the device further includes a first sending unit:
[0116] The first sending unit is used to send the self-created word group to the server;
[0117] The acquisition unit is also used to acquire the gray word judgment result for the self-made word group returned by the server;
[0118] The determining unit is further configured to determine whether the plurality of words in the self-created word group include a gray word according to the gray word determination result.
[0119] Optionally, the device further comprises an adding unit:
[0120] If the determining unit determines that the multiple words in the self-made word group include a gray word, triggering the adding unit;
[0121] The adding unit is used to add the grey words in the grey word judgment result to the local grey word library.
[0122] Optionally, the determination unit is further configured to determine whether the multiple words in the self-created word group include a gray word according to a local gray word library, wherein the local gray word library includes at least one gray word or includes a label of at least one gray word.
[0123] Optionally, the device further comprises a maintenance unit:
[0124] The maintenance unit is used to maintain the local grey word library according to the frequency of grey words input by the user.
[0125] Optionally, the device further includes a second sending unit and an updating unit:
[0126] The second sending unit is used to send a version identifier of the local grey word library to the server;
[0127] The acquisition unit is further used to acquire the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier;
[0128] The updating unit is used to update the local grey word library according to the word library update information.
[0129] Optionally, the device further comprises a self-created word group determination unit:
[0130] The self-created phrase determination unit is used to determine whether the pending phrase is a self-created phrase based on the user's input behavior data of the pending phrase on the screen; if it is determined that the pending phrase is a self-created phrase, the determination unit is triggered.
[0131] Optionally, the canceling unit is further configured to delete the word-forming relationship of the self-created word group from the word-forming data of the user; or, not record the word-forming relationship of the self-created word group.
[0132] It can be seen that since the input method system will configure a corresponding user vocabulary for the user, the user vocabulary can save the word combination relationship of the user's most recent phrase on the screen according to the user's word combination data, so that when the user wants to put the previously put-on-screen phrase on the screen again, the input method system can directly retrieve the corresponding word combination relationship from the user vocabulary and display it to the user in the form of a candidate item, and the user can directly select it to be put on the screen, thereby providing a convenient input method for the user to input the self-made phrase again. Therefore, when obtaining a self-made phrase composed of multiple words on the screen by the user, by determining whether the multiple words of the self-made phrase include gray words, the word combination relationship can be cancelled when gray words are included to avoid the word combination relationship being saved in the user vocabulary corresponding to the user, which is equivalent to shielding the word combination relationship of the gray self-made phrase from entering the user vocabulary, eliminating the possibility of conveniently inputting the gray self-made phrase. Therefore, when the user needs to screen the gray self-made phrase again, since the word relationship of the gray self-made phrase is not saved in the user's word library, the gray self-made phrase is not directly displayed in the candidate items, and the user can only obtain the gray self-made phrase by selecting and searching for candidate items multiple times. It can be seen that by shielding the word relationship of the gray self-made phrase from entering the user word library, the operation complexity of the user inputting the gray self-made phrase is increased, and the adverse impact of the gray self-made phrase on the user is reduced.
[0133] Based on the aforementioned method and device for shielding gray self-made words, this embodiment provides a device for shielding gray self-made words. The device for shielding gray self-made words can be a terminal device or a server. Figure 3 3 is a block diagram of a terminal device 300 according to an exemplary embodiment. For example, the terminal device 300 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.
[0134] Reference Figure 3 The terminal device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0135] The processing component 302 generally controls the overall operation of the terminal device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0136] The memory 304 is configured to store various types of data to support operations on the terminal device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 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.
[0137] The power supply component 306 provides power to various components of the terminal device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0138] The multimedia component 308 includes a screen that provides an output interface between the terminal device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the terminal device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0139] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 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 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0140] I / O interface 312 provides an interface between processing component 302 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.
[0141] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the terminal device 300. For example, the sensor assembly 314 can detect the open / closed state of the terminal device 300, the relative positioning of the components, such as the display and keypad of the terminal device 300, and the sensor assembly 314 can also detect the position change of the terminal device 300 or a component of the terminal device 300, the presence or absence of contact between the user and the terminal device 300, the orientation or acceleration / deceleration of the terminal device 300, and the temperature change of the terminal device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0142] The communication component 316 is configured to facilitate wired or wireless communication between the terminal device 300 and other devices. The terminal device 300 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 316 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 316 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.
[0143] In an exemplary embodiment, the terminal device 300 can 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 method.
[0144] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of a terminal device 300 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.
[0145] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a method for shielding gray self-made phrases, the method comprising:
[0146] Acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words;
[0147] Determining whether the self-made word group includes gray words;
[0148] If so, cancel the word relationship of the self-made word group.
[0149] Figure 4 4 is a schematic diagram of the structure of the server in the embodiment of the present invention. The server 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 422 (for example, one or more processors) and memory 432, and one or more storage media 430 (for example, one or more mass storage devices) storing application programs 442 or data 444. Among them, the memory 432 and the storage medium 430 can be short-term storage or permanent storage. The program stored in the storage medium 430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 422 can be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the server 400.
[0150] The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 458, one or more keyboards 456, and / or, one or more operating systems 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0151] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the above-mentioned storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0152] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0153] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for shielding grey self-made phrases. It is characterized in that The method comprises: Acquire a self-made word group displayed on the screen by a user, wherein the self-made word group is composed of a plurality of words, wherein no two adjacent words have a semantic connection; Sending the self-created word group and the version identifier of the local grey word library to the server; Obtaining the gray word judgment result for the self-created word group returned by the server and the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier; The local grey word library is updated according to the word library update information; the local grey word library is also maintained according to the frequency of grey words input by the user; Acquiring a grey word determination result of whether a plurality of words in the self-created word group include a grey word according to the local grey word library; According to the gray word judgment result and the gray word determination result, determining whether the multiple words in the self-made word group include gray words, wherein when the gray word judgment result and the gray word determination result are different, combining the gray word judgment result and the gray word determination result by a weight coefficient to determine whether the multiple words in the self-made word group include gray words; If the multiple words in the self-made word group include gray words, the word group relationship of the self-made word group is cancelled, and the cancellation of the word group relationship of the self-made word group includes: Deleting the word-grouping relationship of the self-created word group from the word-grouping data of the user to prevent the word-grouping relationship of the self-created word group from being stored in the user's user word library; or The word combination relationship of the self-created word group is not recorded in the word combination data of the user, so as to avoid the word combination relationship of the self-created word group being stored in the user's word library.
2. The method according to claim 1, It is characterized in that The method further comprises: If the grey word determination result is that the plurality of words in the self-created word group include grey words, the grey words in the grey word determination result are added to a local grey word library.
3. The method according to claim 1, It is characterized in that The local grey word library includes at least one grey word or a label including at least one grey word.
4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: Determine whether the to-be-determined phrase is a self-made phrase according to the input behavior data of the to-be-determined phrase on the screen by the user; If it is determined that the pending word group is a self-made word group, the step of determining whether the self-made word group includes a gray word is performed.
5. A device for blocking grey self-made phrases, It is characterized in that The device comprises an acquisition unit, a determination unit and a cancellation unit: The acquisition unit is used to acquire a self-made word group displayed on the screen by the user, wherein the self-made word group is composed of a plurality of words, wherein no two adjacent words have a semantic connection; The determining unit is used to determine whether the self-made word group includes a grey word; if so, triggering the canceling unit; The canceling unit is used to cancel the word-forming relationship of the self-created word group, including: deleting the word-forming relationship of the self-created word group from the word-forming data of the user to prevent the word-forming relationship of the self-created word group from being saved in the user's word library; or not recording the word-forming relationship of the self-created word group in the word-forming data of the user to prevent the word-forming relationship of the self-created word group from being saved in the user's word library; The device further includes a first sending unit, a second sending unit, an updating unit, and a maintenance unit: The first sending unit is used to send the self-created word group to the server; The acquisition unit is also used to acquire the gray word judgment result for the self-made word group returned by the server; The second sending unit is used to send a version identifier of the local grey word library to the server; The acquisition unit is further used to acquire the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier; The updating unit is used to update the local grey word library according to the word library update information; The maintenance unit is used to maintain the local grey word library according to the frequency of grey words input by the user; The determination unit is further configured to obtain a grey word determination result of whether the plurality of words in the self-created word group include a grey word according to the local grey word library; The determination unit is further used to determine whether the multiple words in the self-created word group include gray words based on the gray word judgment result and the gray word determination result, wherein when the gray word judgment result and the gray word determination result are different, the gray word judgment result and the gray word determination result are comprehensively considered by a weight coefficient to determine whether the multiple words in the self-created word group include gray words.
6. The device according to claim 5, It is characterized in that The device also includes an adding unit: If the determining unit determines that the multiple words in the self-made word group include a gray word, triggering the adding unit; The adding unit is used to add the grey words in the grey word judgment result to the local grey word library.
7. The device according to claim 5, It is characterized in that The local grey word library includes at least one grey word or a label including at least one grey word.
8. The device according to any one of claims 5 to 7, It is characterized in that The device also includes a self-made word group determination unit: The self-created phrase determination unit is used to determine whether the pending phrase is a self-created phrase based on the user's input behavior data of the pending phrase on the screen; if it is determined that the pending phrase is a self-created phrase, the determination unit is triggered.
9. A device for shielding gray self-made words, 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: Acquire a self-made word group displayed on the screen by a user, wherein the self-made word group is composed of a plurality of words, wherein no two adjacent words have a semantic connection; Sending the self-created word group and the version identifier of the local grey word library to the server; Obtaining the gray word judgment result for the self-created word group returned by the server and the word library update information returned by the server, wherein the word library update information carries the gray word update content based on the version identifier; Updating the local grey word library according to the word library update information; The local grey word library is also maintained according to the frequency of grey words input by the user; Acquiring a grey word determination result of whether a plurality of words in the self-created word group include a grey word according to the local grey word library; According to the gray word judgment result and the gray word determination result, determining whether the multiple words in the self-made word group include gray words, wherein when the gray word judgment result and the gray word determination result are different, combining the gray word judgment result and the gray word determination result by a weight coefficient to determine whether the multiple words in the self-made word group include gray words; If the multiple words in the self-made word group include gray words, the word group relationship of the self-made word group is cancelled, and the cancellation of the word group relationship of the self-made word group includes: Deleting the word-grouping relationship of the self-created word group from the word-grouping data of the user to prevent the word-grouping relationship of the self-created word group from being stored in the user's user word library; or The word combination relationship of the self-created word group is not recorded in the word combination data of the user, so as to avoid the word combination relationship of the self-created word group being stored in the user's word library.
10. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to execute the method for shielding gray self-made word groups according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for acquiring new words and phrases
CN101719020A
Application method and device for input method
CN105511638A
