CN105095366B - Word message treating method and apparatus - Google Patents

Word message treating method and apparatus Download PDF

Info

Publication number
CN105095366B
CN105095366B CN201510369407.6A CN201510369407A CN105095366B CN 105095366 B CN105095366 B CN 105095366B CN 201510369407 A CN201510369407 A CN 201510369407A CN 105095366 B CN105095366 B CN 105095366B
Authority
CN
China
Prior art keywords
user
frequency
word message
relation identity
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510369407.6A
Other languages
Chinese (zh)
Other versions
CN105095366A (en
Inventor
高毅
葛云源
王振淦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510369407.6A priority Critical patent/CN105095366B/en
Publication of CN105095366A publication Critical patent/CN105095366A/en
Application granted granted Critical
Publication of CN105095366B publication Critical patent/CN105095366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/381Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using identifiers, e.g. barcodes, RFIDs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The disclosure is directed to a kind of word message treating method and apparatus, belong to field of computer technology.The described method includes:In the instant session interface of the first user and second user, the word message that first user is sent to the second user is obtained;When in the word message comprising default sensitive vocabulary, the relation identity between first user and the second user is obtained;According to the relation identity, the word message is handled;Wherein, the relation identity is used to represent the familiarity between first user and the second user.The present disclosure contemplates the familiarity between the first user and second user, according to the familiarity, decide whether to correct the word message, can meet the first user to the needs of friend quickly sends word message is familiar with, can also meet the demand to being corrected to the word message for being unfamiliar with friend's transmission.

Description

Word message treating method and apparatus
Technical field
The disclosure is directed to field of computer technology, specifically on word message treating method and apparatus.
Background technology
Written communication is common exchange way between friend, and user can input word message in terminal, by word Message is sent to a certain friend, and word message is checked by friend.But when inputting word message, when user is due to input Speed it is too fast when reason have input mistake word when, friend may misread the implication of the word message, this is influenced whether Exchange between two users.
The word of user's input error in order to prevent, is currently suggested a kind of error correction method, by establishing individual character for user Change error correcting model, constantly collect the input information of user and analyzed, obtain the input habit information of user, and according to The input habit information at family, is adjusted the personalized error correcting model of foundation.Afterwards, when user have input the word of mistake When, wrong word input by user can be corrected according to current personalized error correcting model, then will correct it is later just True word is sent to friend.
The content of the invention
In order to solve the problems, such as present in correlation technique, present disclose provides a kind of word message treating method and apparatus. The technical solution is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of word message processing method, the described method includes:
In the instant session interface of the first user and second user, obtain first user and be sent to described second The word message of user;
When in the word message comprising default sensitive vocabulary, obtain between first user and the second user Relation identity;
According to the relation identity, the word message is handled;
Wherein, the relation identity is used to represent the familiarity between first user and the second user.
In another embodiment, the relation identity is first flag or second identifier, represented by the first flag Familiarity is more than the familiarity represented by the second identifier.
In another embodiment, it is described according to the relation identity, the word message is handled, including:
When the relation identity is the first flag, the word message is sent to the second user;Alternatively,
When the relation identity is the second identifier, sensitive vocabulary notice is carried out to first user.
In another embodiment, it is described when the relation identity is the second identifier, first user is carried out Sensitive vocabulary notice, including:
Display reminding window, the prompt window include at least prompt message, delivery option and correct one in option, The prompt message is used to prompt in the word message comprising sensitive vocabulary;
When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Or Person,
When detecting the confirmation operation to the correction option, in the session interface immediately, described first is obtained Word message after user's correction.
In another embodiment, the method further includes:
According to the history intersection record between first user and the second user, first user and institute are determined State the relation identity between second user.
In another embodiment, the history intersection record according between first user and the second user, Determine the relation identity between first user and the second user, including:
According to the history intersection record, determine to preset in the interaction of first user and the second user The frequency of occurrences of sensitive vocabulary;
According to the frequency of occurrences, the relation identity between first user and the second user is determined.
In another embodiment, it is described according to the frequency of occurrences, determine first user and the second user it Between relation identity, including:
When the frequency of occurrences is more than the first predetermined threshold value, by the pass between first user and the second user It is that mark is determined as first flag;
When the frequency of occurrences is not more than first predetermined threshold value, by first user and the second user it Between relation identity be determined as second identifier.
In another embodiment, the history intersection record according between first user and the second user, Determine the relation identity between first user and the second user, including:
According to the history intersection record, determine to preset in the interaction of first user and the second user The frequency of occurrences and correction of frequency of sensitive vocabulary, the correction of frequency be used for represent first user with the second user When interacting, to the correction of frequency of default sensitive vocabulary;
According to the frequency of occurrences and the correction of frequency, the pass between first user and the second user is determined System's mark.
In another embodiment, it is described according to the frequency of occurrences and the correction of frequency, determine first user with Relation identity between the second user, including:
When the frequency of occurrences is not more than the first predetermined threshold value, by between first user and the second user Relation identity is determined as second identifier;
When the frequency of occurrences is more than first predetermined threshold value, it is default to judge whether the correction of frequency is more than second Threshold value;When the correction of frequency is more than second predetermined threshold value, by between first user and the second user Relation identity is determined as second identifier;And when the correction of frequency is not more than second predetermined threshold value, described first is used Relation identity between family and the second user is determined as first flag.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of word message processing unit, described device include:
Message capturing module, is used in the instant session interface of the first user and second user, obtaining described first Family is sent to the word message of the second user;
Identifier acquisition module, for when in the word message comprising default sensitive vocabulary, obtaining first user With the relation identity between the second user;
Processing module, for according to the relation identity, handling the word message;
Wherein, the relation identity is used to represent the familiarity between first user and the second user.
In another embodiment, the relation identity is first flag or second identifier, represented by the first flag Familiarity is more than the familiarity represented by the second identifier.
In another embodiment, the processing module includes:
First processing units, for when the relation identity is the first flag, institute to be sent to the second user State word message;Alternatively,
Second processing unit, for when the relation identity is the second identifier, being carried out to first user quick Feel vocabulary notice.
In another embodiment, the second processing unit is additionally operable to display reminding window, and the prompt window at least wraps Include prompt message, delivery option and correct one in option, the prompt message is used to prompt to include in the word message Sensitive vocabulary;When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Or Person, when detecting the confirmation operation to the correction option, in the session interface immediately, obtains first user and entangles Word message after just.
In another embodiment, described device further includes:
Determining module, for according to the history intersection record between first user and the second user, determining institute State the relation identity between the first user and the second user.
In another embodiment, the determining module is additionally operable to, according to the history intersection record, determine described first User and the frequency of occurrences that sensitive vocabulary is preset in the interaction of the second user;According to the frequency of occurrences, institute is determined State the relation identity between the first user and the second user.
In another embodiment, the determining module is additionally operable to when the frequency of occurrences is more than the first predetermined threshold value, will Relation identity between first user and the second user is determined as first flag;When the frequency of occurrences is not more than institute When stating the first predetermined threshold value, the relation identity between first user and the second user is determined as second identifier.
In another embodiment, the determining module is additionally operable to, according to the history intersection record, determine described first User and the frequency of occurrences and correction of frequency that sensitive vocabulary is preset in the interaction of the second user, the correction of frequency are used When representing that first user is interacting with the second user, to the correction of frequency of default sensitive vocabulary;According to institute The frequency of occurrences and the correction of frequency are stated, determines the relation identity between first user and the second user.
In another embodiment, the determining module is additionally operable to when the frequency of occurrences is not more than the first predetermined threshold value, Relation identity between first user and the second user is determined as second identifier;When the frequency of occurrences is more than institute When stating the first predetermined threshold value, judge whether the correction of frequency is more than the second predetermined threshold value;Described in being more than when the correction of frequency During the second predetermined threshold value, the relation identity between first user and the second user is determined as second identifier;And work as When the correction of frequency is not more than second predetermined threshold value, by the relation mark between first user and the second user Knowledge is determined as first flag.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of word message processing unit, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
In the instant session interface of the first user and second user, obtain first user and be sent to described second The word message of user;
When in the word message comprising default sensitive vocabulary, obtain between first user and the second user Relation identity;
According to the relation identity, the word message is handled;
Wherein, the relation identity is used to represent the familiarity between first user and the second user.
The technical scheme provided by this disclosed embodiment can include the following benefits:
One embodiment of the disclosure, including:In the instant session interface of the first user and second user, described in acquisition First user is sent to the word message of the second user.When in the word message comprising default sensitive vocabulary, obtain Take the relation identity between first user and the second user;According to the relation identity, to the word message into Row processing.Wherein, the relation identity is used to represent the familiarity between first user and the second user.This public affairs The relation identity predefined between the first user and second user was opened, the second use is sent to when getting the first user The word message at family, and when in the word message comprising default sensitive vocabulary, obtain the pass between the first user and second user System's mark, according to the relation identity, is handled the word message.It take into account ripe between the first user and second user Degree is known, according to the familiarity, decides whether to correct the word message.The first user can be met to being familiar with friend The friendly quick demand for sending word message, can also meet the demand to being corrected to the word message for being unfamiliar with friend's transmission.
Another embodiment of the present disclosure, the relation identity are first flag or second identifier, first flag institute table The familiarity shown is more than the familiarity represented by the second identifier.The disclosure passes through between the first user and friend Relation identity is divided into first flag and second identifier, so that the friend of the first user is divided into two classes:Known friend and not Known friend, then according to the relation identity between first user and second user, it may be determined that the second user be this Friend known to one user or unfamiliar friend, then decide whether to correct the word message.It can meet One user quickly sends the demand of word message to friend is familiar with, can also meet to be unfamiliar with friend transmission word message into The demand that row is corrected.
Another embodiment of the present disclosure, it is described according to the relation identity, the word message is handled, including: When the relation identity is the first flag, the word message is sent to the second user;Alternatively, work as the relation When being identified as the second identifier, sensitive vocabulary notice is carried out to first user.The disclosure is the first use when second user Known to family during friend, word message directly is sent to second user, improves the speed for sending word message, is met quick Send the demand of word message.And when second user is the unfamiliar friend of the first user, the first user is prompted, by First user decides whether to correct the word message, prevents first user from sending mistake to unfamiliar friend Word message, meets the first user to the demand corrected of word message for being unfamiliar with friend's transmission.
Another embodiment of the present disclosure, it is described when the relation identity is the second identifier, to first user Sensitive vocabulary notice is carried out, including:Display reminding window, the prompt window include at least prompt message, delivery option and entangle One in positive option, the prompt message is used to prompt in the word message comprising sensitive vocabulary;When detecting to described During the confirmation operation of delivery option, the word message is sent to the second user;Alternatively, choosing is corrected to described when detecting During the confirmation operation of item, in the session interface immediately, the word message after first user corrects is obtained.The disclosure is led to Cross display reminding window so that the first user can select to correct word message, can also select to directly transmit this article Word message, improves operating flexibility.
Another embodiment of the present disclosure, further includes:Handed over according to the history between first user and the second user Mutually record, determines the relation identity between first user and the second user.The disclosure passes through in view of the first user History intersection record between second user, the pass between the first user and second user is determined according to the history intersection record System's mark so that the relation identity can embody the familiarity between first user and the second user exactly, improve Accuracy.
Another embodiment of the present disclosure, the history according between first user and the second user interact note Record, determines the relation identity between first user and the second user, including:According to the history intersection record, really First user is scheduled on presetting the frequency of occurrences of sensitive vocabulary in the interaction of the second user;According to the appearance Frequency, determines the relation identity between first user and the second user.The disclosure is by considering that the first user can be to Known friend sends the word message for including sensitive vocabulary, and the text for including sensitive vocabulary is seldom sent to unfamiliar friend The custom of word message, according to the frequency of occurrences that sensitivity vocabulary is preset in the interaction of the first user and second user, determines the Relation identity between one user and second user so that the relation identity more accurately embody first user with this second Familiarity between user, improves accuracy.
Another embodiment of the present disclosure, it is described according to the frequency of occurrences, determine that first user uses with described second Relation identity between family, including:When the frequency of occurrences is more than the first predetermined threshold value, by first user and described the Relation identity between two users is determined as first flag;, will when the frequency of occurrences is not more than first predetermined threshold value Relation identity between first user and the second user is determined as second identifier.Present disclose provides according to default quick The frequency of occurrences of sense vocabulary determines that the relation identity is the mode of first flag or second identifier, by being carried out to relation identity Division, two classes are divided into by the friend of the first user:Known friend and unfamiliar friend, in order to subsequently according to the relation Mark, handles the word message for being sent to friend.
Another embodiment of the present disclosure, the history according between first user and the second user interact note Record, determines the relation identity between first user and the second user, including:According to the history intersection record, really First user is scheduled on presetting the frequency of occurrences and correction of frequency of sensitive vocabulary, institute in the interaction of the second user State correction of frequency to be used to represent first user when interacting with the second user, the correction to default sensitive vocabulary Frequency;According to the frequency of occurrences and the correction of frequency, the relation between first user and the second user is determined Mark.The disclosure can send the word message for including sensitive vocabulary by considering the first user to known friend, and seldom to Unfamiliar friend sends the custom of the word message comprising sensitive vocabulary, and first user sends out to unfamiliar friend Send comprising the custom that after the word message for presetting sensitive vocabulary, can be corrected to the preceding default sensitive vocabulary once sent, Determined according to first user with presetting the frequency of occurrences and the correction of frequency of sensitivity vocabulary in the interaction of the second user Relation identity, is more suitable for the input habit of user, and definite relation identity can more accurately embody the first user and the Familiarity between two users.
Another embodiment of the present disclosure, it is described according to the frequency of occurrences and the correction of frequency, determine that described first uses Relation identity between family and the second user, including:When the frequency of occurrences is not more than the first predetermined threshold value, by described in Relation identity between first user and the second user is determined as second identifier;When the frequency of occurrences is more than described first During predetermined threshold value, judge whether the correction of frequency is more than the second predetermined threshold value;When the correction of frequency is pre- more than described second If during threshold value, the relation identity between first user and the second user is determined as second identifier;And entangled when described When positive frequency is not more than second predetermined threshold value, the relation identity between first user and the second user is determined For first flag.Determine that the relation identity is the present disclose provides the frequency of occurrences according to default sensitive vocabulary and correction of frequency The mode of one mark or second identifier, by being divided to relation identity, two classes are divided into by the friend of the first user:It is ripe The friend and unfamiliar friend known, in order to subsequently according to the relation identity, to being sent at the word message of friend Reason.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of word message processing method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of word message processing method according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of word message processing unit according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of device for word message processing according to an exemplary embodiment.
Embodiment
It is right with reference to embodiment and attached drawing for the purpose, technical scheme and advantage of the disclosure are more clearly understood The disclosure is described in further details.Here, the exemplary embodiment and its explanation of the disclosure are used to explain the disclosure, but simultaneously Not as the restriction to the disclosure.
The embodiment of the present disclosure provides a kind of word message treating method and apparatus, the disclosure is carried out below in conjunction with attached drawing detailed Describe in detail bright.
Fig. 1 is a kind of flow chart of word message processing method according to an exemplary embodiment, as shown in Figure 1, Word message processing method is used in terminal, comprises the following steps:
In a step 101, in the instant session interface of the first user and second user, it is to be sent to obtain first user Word message to the second user.
In a step 102, when in the word message comprising default sensitive vocabulary, first user and second use are obtained Relation identity between family.
In step 103, according to the relation identity, which is handled.
Wherein, which is used to represent the familiarity between first user and the second user.
As a kind of embodiment, which is first flag or second identifier, ripe represented by the first flag Degree is known more than the familiarity represented by the second identifier.It that is to say, when the relation mark between the first user and second user Know for first flag when, represent that first user is familiar with the second user, when between first user and the second user When relation identity is second identifier, represent that first user is unfamiliar with the second user.By predefining first user With the relation identity between each friend, the friend of the first user can be divided into two classes:Known friend and unfamiliar friend Friend.When the first user will send word message to any friend, and default sensitive vocabulary is included in the word message, Ke Yigen According to the familiarity between first user and the friend, which is handled.
As another embodiment, which can also be that first flag, second identifier, the 3rd mark etc. are multiple Mark, i.e. relation identity between first user and friend can include the mark of 3 marks, 4 marks or other numbers Know, the present embodiment does not limit this.Each mark represents different familiarities, the familiarity represented by the first flag More than the familiarity represented by the second identifier, the familiarity represented by the second identifier is more than represented by the 3rd mark Familiarity, and so on.By determining multiple relation identities, the familiarity between the first user and friend can be drawn It is divided into multiple gradients, when the first user will send word message to any friend, and default sensitive word is included in the word message During remittance, the word message can be handled according to the familiarity between first user and the friend.
Method provided in this embodiment, by predefining relation identity between the first user and second user, when obtaining The word message of second user will be sent to by getting the first user, and when in the word message comprising default sensitive vocabulary, obtain Relation identity between first user and second user, according to the relation identity, is handled the word message.It take into account Familiarity between first user and second user, according to the familiarity, decides whether to entangle the word message Just.Can meet the first user to the needs of friend quickly sends word message is familiar with, can also meet to be unfamiliar with friend hair The demand that the word message sent is corrected.
In another embodiment, this is handled the word message according to the relation identity, including:
When the relation identity is the first flag, the word message is sent to the second user;Alternatively,
When the relation identity is the second identifier, sensitive vocabulary notice is carried out to first user.
In another embodiment, deserve the relation identity when be the second identifier, sensitivity vocabulary is carried out to first user Prompting, including:
Display reminding window, the prompt window include at least prompt message, delivery option and correct one in option, should Prompt message is used to prompt in the word message comprising sensitive vocabulary;
When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Alternatively,
When detecting the confirmation operation to the correction option, in the instant session interface, obtain first user and entangle Word message after just.
In another embodiment, this method further includes:
According to the history intersection record between first user and the second user, first user and second use are determined Relation identity between family.
In another embodiment, this determines to be somebody's turn to do according to the history intersection record between first user and the second user Relation identity between first user and the second user, including:
According to the history intersection record, determine to preset sensitive word in the interaction of first user and the second user The frequency of occurrences of remittance;
According to the frequency of occurrences, the relation identity between first user and the second user is determined.
In another embodiment, this determines the relation between first user and the second user according to the frequency of occurrences Mark, including:
When the frequency of occurrences is more than the first predetermined threshold value, by the relation identity between first user and the second user It is determined as first flag;
When the frequency of occurrences is not more than first predetermined threshold value, by the relation between first user and the second user Mark is determined as second identifier.
In another embodiment, this determines to be somebody's turn to do according to the history intersection record between first user and the second user Relation identity between first user and the second user, including:
According to the history intersection record, determine to preset sensitive word in the interaction of first user and the second user The frequency of occurrences and correction of frequency of remittance, the correction of frequency are used to represent first user when interacting with the second user, To the correction of frequency of default sensitive vocabulary;
According to the frequency of occurrences and the correction of frequency, the relation identity between first user and the second user is determined.
In another embodiment, this determines first user and second use according to the frequency of occurrences and the correction of frequency Relation identity between family, including:
When the frequency of occurrences is not more than the first predetermined threshold value, by the relation mark between first user and the second user Knowledge is determined as second identifier;
When the frequency of occurrences is more than first predetermined threshold value, judge whether the correction of frequency is more than the second predetermined threshold value; When the correction of frequency is more than second predetermined threshold value, the relation identity between first user and the second user is determined as Second identifier;And when the correction of frequency is not more than second predetermined threshold value, by between first user and the second user Relation identity is determined as first flag.
Above-mentioned all optional technical solutions, can use any combination to form the alternative embodiment of the disclosure, herein no longer Repeat one by one.
Fig. 2 is a kind of flow chart of word message processing method according to an exemplary embodiment, as shown in Fig. 2, The word message treatment method is used in terminal, comprises the following steps:
In step 201, which obtains the customer relationship chain of the first user, for each the in the user's relation chain Two users, according to the history intersection record between first user and the second user, determine first user and second use Relation identity between family.
Wherein, which refers to the user of the currently used terminal, which can be based on the first user identifier, step on Application of function is specified in record, which is used to determine first user, can be account, the pet name of first user Deng, it can be application for management terminal contact person or social networking application etc. that this, which specifies application of function, the present embodiment to this not Limit.The terminal can obtain the customer relationship chain of first user, and the user's relation chain includes multiple users, these use Family may be considered the friend of first user.The user's relation chain can include contact person and society in the address list of the terminal At least one in the contact person in application is handed over, the present embodiment does not limit this.
Any user that the terminal can be based in first user identifier, with the user's relation chain interacts, to this User sends message or receives the message that the user sends.The message interacted can include word message, image information, sound Frequency message etc., the present embodiment does not limit this.And the terminal can be according to the use in first user and the user's relation chain The message of interaction between family, generates history intersection record, is interacted in the history intersection record comprising first user with the user Multiple messages.
In the present embodiment, using each user in the user's relation chain as second user, in order to know first use Familiarity between family and the second user, the history which can obtain between first user and the second user are handed over Mutually record, the history intersection record include a plurality of word message that first user interacts with the second user, are gone through according to this History intersection record, it may be determined that relation identity between first user and the second user, this is represented with the relation identity Familiarity between first user and the second user.
Wherein, which can include first flag and second identifier, the familiarity represented by the first flag More than the familiarity represented by the second identifier.So, the relation identity between first user and the second user can be with For first flag or second identifier, if the relation identity between first user and the second user is first flag, represent First user is familiar with the second user, and if the relation identity between first user and the second user is the second mark Know, represent that first user is unfamiliar with the second user.
The word message for including sensitive vocabulary can be sent to known friend in view of the first user, and seldom to being unfamiliar with Friend send the word message for including sensitive vocabulary, which determines that the relation identity can wrap according to the history intersection record Include step 2011:
Step 2011, the terminal determine interacting in first user and the second user according to the history intersection record During preset the frequency of occurrences of sensitive vocabulary, according to the frequency of occurrences, determine between first user and the second user Relation identity.
Wherein, which refers to be considered as indecency, uncultivated vocabulary, which can be by The terminal is determined previously according to dictionary, or the terminal is sent to after being determined by server previously according to dictionary, and is being applied Cheng Zhong, can constantly be updated default sensitive vocabulary, the present embodiment does not limit this.Alternatively, default sensitive word Correspondent Cross indecency, the uncultivated network hot word of network acquisition.
In the interaction of the first user and second user, the frequency of occurrences for presetting sensitivity vocabulary is higher, it is believed that First user and the second user are more familiar, and therefore, which can be according to the friendship in first user and the second user The frequency of occurrences of sensitive vocabulary is preset during mutually, determines the relation identity of first user and the second user.
For example, the terminal can obtain what first user was interacted with the second user according to the history intersection record The total number of word message, and obtain and sensitivity vocabulary is preset in the word message that first user is interacted with the second user Occurrence number, calculates the business between the occurrence number and the total number, the frequency of occurrences as default sensitive vocabulary.Wherein, should The word message that first user is interacted with the second user includes the word message that first user is sent to the second user The word message of first user is sent to the second user.
Wherein, when obtaining the occurrence number of default sensitive vocabulary, which can be handed over the second user Every mutual word message is judged respectively, the occurrence number that sensitive vocabulary is preset in every word message is obtained, by every Occurrence number of the sum of the occurrence number of sensitivity vocabulary as default sensitive vocabulary is preset in word message.And for every word For message, which can obtain the keyword in the word message, using keyword match technology, judge the word message In keyword whether matched with predetermined multiple default sensitive vocabulary, when any keyword in the word message and certain During one default sensitive terminology match, determine comprising a default sensitive vocabulary, i.e., default sensitive word remittance abroad to show in the word message Once.The follow-up terminal can also continue to match to other keywords in the word message, to determine the word message In the default sensitive vocabulary number that includes, that is to say the occurrence number that sensitivity vocabulary is preset in the word message.
The terminal can also obtain the word that first user sends to the second user and disappear according to the history intersection record The total number of breath, and obtain and sensitivity vocabulary is preset in the word message that first user sends to the second user go out occurrence Number, calculates the business between the occurrence number and the total number, the frequency of occurrences as default sensitive vocabulary.
Wherein, when obtaining the occurrence number of default sensitive vocabulary, the second user can be sent to first user Every word message judged respectively, obtain the occurrence number that sensitive vocabulary is preset in every word message, will be per provision Occurrence number of the sum of the occurrence number of sensitivity vocabulary as default sensitive vocabulary is preset in word message.
After the frequency of occurrences for determining default sensitive vocabulary, which may determine that the frequency of occurrences of the default sensitive vocabulary is It is no to be more than the first predetermined threshold value, if the frequency of occurrences is more than the first predetermined threshold value, represent first user and the second user Often interaction includes the word message of default sensitive vocabulary, which is familiar with the second user, then by this first Relation identity between user and the second user is determined as the first flag.If the frequency of occurrences is first default no more than this Threshold value, represents that first user seldom interacts the word message for including default sensitive vocabulary, first user with the second user It is unfamiliar with the second user, then the relation identity between first user and the second user is determined as the second identifier. Wherein, which can be by pre- in each user interaction process in first user and the user's relation chain Determined if the frequency of occurrences of sensitive vocabulary carries out statistics, can be that first user presets with the plurality of user in interaction The average value of the frequency of occurrences of sensitive vocabulary, first predetermined threshold value can be 0.2,0.4 or other numerical value, the present embodiment pair This is not limited.
In addition, if first user is due to the reason such as input speed is too fast or input operation is unskilled, and often to When the second user is sent comprising presetting the message of sensitive vocabulary, but not being familiar with the second user actually, first use Family is after it have sent the word message comprising default sensitive vocabulary to the second user, it is likely that can resend new word and disappear Breath, corrects the preceding default sensitive vocabulary once sent.For this reason, the terminal determines the relation according to the history intersection record Mark can include step 2012:
Step 2012, the terminal determine interacting in first user and the second user according to the history intersection record During preset the frequency of occurrences and correction of frequency of sensitive vocabulary, according to the frequency of occurrences and the correction of frequency, determine this first Relation identity between user and the second user.
Wherein, which is used to represent first user when interacting with the second user, to default sensitivity The correction of frequency of vocabulary.When first user sends word message to the second user, which can detect first use The behavior of default sensitive vocabulary is corrected at family, obtains the correct frequency of first user, and calculates first user to second use The occurrence number of sensitive vocabulary is preset in the word message that family is sent, calculates the business between the correct frequency and the occurrence number, Correction of frequency as default sensitive vocabulary.Wherein, the step of calculating the occurrence number of default sensitive vocabulary and above-mentioned steps 2011 is similar, and details are not described herein.
When the first user sends word message to second user, default sensitive vocabulary is corrected in order to detect the first user Behavior, the every word message sent for first user to the second user, the terminal may determine that in the word message Whether comprising default sensitive vocabulary, if obtaining and being sent out after the word message comprising default sensitive vocabulary in the word message Whether the word message for the preset number sent, judge to include in the word message of the preset number similar to the default sensitive vocabulary Normal vocabulary, if including the normal vocabulary similar to the default sensitive vocabulary in the word message of the preset number, represent First user has resend the normal word similar to the default sensitive vocabulary after it have sent the default sensitive vocabulary Converge, the purpose for sending the normal vocabulary is to correct the default sensitive vocabulary, that is to say first user to default quick Feel vocabulary to correct once.Using aforesaid way, the behavior that first user corrects default sensitive vocabulary can be gone out with repeated detection, really The correct frequency of fixed first user.
Wherein, which refers to the vocabulary in addition to default sensitive vocabulary, and the preset number is advance by the terminal Determine, can be the numerical value such as 1,2,3, the present embodiment does not limit this.
In the present embodiment, by taking Chinese vocabulary as an example, when two different vocabulary phonetics are identical, it is believed that two vocabulary phases Seemingly.Then whether the terminal includes the normal vocabulary similar to the default sensitive vocabulary in the word message for judge the preset number When, the phonetic of the default sensitive vocabulary can be obtained, and scanned in the word message of the preset number, judge that this is default Whether comprising the phonetic vocabulary identical with the phonetic of the default sensitivity vocabulary in the word message of number, if comprising judging Whether the vocabulary is default sensitive vocabulary, if the vocabulary is not default sensitive vocabulary, determines the word message of the preset number In include the normal vocabulary similar to the default sensitive vocabulary.
Alternatively, by taking English glossary as an example, the English alphabet included in two vocabulary is identical, but English alphabet puts in order When different, it is believed that two vocabulary are similar.Then whether the terminal includes and this in the word message for judge the preset number During the similar normal vocabulary of default sensitivity vocabulary, it can be scanned in the word message of the preset number, judge that this is default But English alphabet identical with the English alphabet of the default sensitive vocabulary whether is included in the word message of number to put in order difference Vocabulary, if comprising judging whether the vocabulary is default sensitive vocabulary, if the vocabulary is not default sensitive vocabulary, really The normal vocabulary similar to the default sensitive vocabulary is included in the word message of the fixed preset number.
After the frequency of occurrences and the correction of frequency that determine default sensitive vocabulary, which judges whether the frequency of occurrences is more than the One predetermined threshold value, if the frequency of occurrences is not more than the first predetermined threshold value, represents that first user seldom hands over the second user The word message of default sensitive vocabulary is mutually included, which is unfamiliar with the second user, then directly by first user Relation identity between the second user is determined as the second identifier.If the frequency of occurrences is more than first predetermined threshold value, Represent that first user often interacts the word message for including default sensitive vocabulary with the second user, then judge the correction of frequency Whether the second predetermined threshold value is more than.If the correction of frequency is more than second predetermined threshold value, represent first user to this second After user have sent the word message comprising default sensitive vocabulary, often the default sensitive vocabulary is corrected, this first User is unfamiliar with the second user, then the relation identity between first user and the second user is determined as second mark Know.And if the correction of frequency is not more than second predetermined threshold value, represent that first user often interacts bag with the second user Word message containing default sensitive vocabulary, and seldom the default sensitive vocabulary of transmission is corrected, i.e., first user is with being somebody's turn to do Second user is familiar with, then the relation identity between first user and the second user is determined as the first flag.Wherein, should Second predetermined threshold value can be by presetting sensitivity in each user interaction process in first user and the user's relation chain The correction of frequency of vocabulary carries out statistics and determines, can be that first user presets sensitive word with the plurality of user in interaction The average value of the correction of frequency of remittance, second predetermined threshold value can be that 0.5,0.6 or other numerical value, the present embodiment do not do this Limit.
For example, first user is F with the frequency of occurrences in the interaction of the second user, presetting sensitivity vocabulary, entangle Positive frequency is C, which is 0.2, which is 0.5, it is determined that can be included during the relation identity Several situations below:
(1) F≤0.2, it is second identifier to determine the relation identity between the first user and second user;
(2)F>0.2:
(2-1) C≤0.5, it is first flag to determine the relation identity between the first user and second user;
(2-2)C>0.5, it is second identifier to determine the relation identity between the first user and second user.
After determining the relation identity between first user and each user, the terminal can store first user with it is every Relation identity between a user, in follow-up interaction, the terminal can according to first user and each user it Between relation identity, the word message for being sent to corresponding user to first user handles.
It should be noted that the present embodiment is only said exemplified by the relation identity is included first flag and second identifier It is bright, it that is to say and the relation identity between first user and friend is divided into first flag and second identifier.And in fact, should Relation identity can also include multiple marks, you can the relation identity between the first user and friend is divided into multiple marks Know, each mark represents different familiarities, more so as to which the familiarity between the first user and friend is divided into A gradient, details are not described herein.
In step 202, which shows the instant session interface of the first user and second user, in instant session circle In face, the word message that the first user is sent to the second user is obtained.
When the first user will send message to second user, the terminal can show the first user and second user i.e. When session interface, which includes input field and delivery option, which can input in input field Word message, and delivery option is clicked on, indicate that the word message is sent to the second user by the terminal.Then when the terminal detects During to the clicking operation of the delivery option, can in the instant session interface, obtain first user to be sent to this The word message of two users.
In step 203, which judges whether the word message includes default sensitive vocabulary, if so, performing step 204, if not, performing step 205.
For the ease of being corrected to the default sensitive vocabulary in word message, the terminal first judge be in the word message It is no including default sensitive vocabulary, if comprising default sensitive vocabulary in the word message, the terminal obtain first user with Relation identity between the second user, according to the relation identity between first user and the second user, disappears the word Breath is handled, if not including default sensitive vocabulary in the word message, which directly sends to the second user should Word message, realizes the quick transmission of word message.
In step 204, which obtains the relation identity between first user and the second user, judges the relation Identify whether as first flag, if so, step 205 is performed, if not, performing step 206.
When default sensitive vocabulary is included in the word message, which obtains fixed first user and second use Relation identity between family, judges whether the relation identity is first flag, if the relation identity is first flag, representing should First user is familiar with the second user, which can send default sensitive vocabulary to the second user, then in order to full Foot first user quickly sends the demand of word message, which directly sends the word message to the second user. If the relation identity is not first flag, i.e., when the relation identity is second identifier, represent first user and second use Family is unfamiliar with, and is not easy to send default sensitive vocabulary to the second user, then the terminal will not send this article to the second user Word message, but sensitive vocabulary notice is carried out to first user.
It should be noted that in the present embodiment, which first determines first user with each being used in the user's relation chain Relation identity between family, when first user will be sent in the word message of the second user comprising default sensitive vocabulary When, then obtain the relation identity between fixed first user and the second user.And in practical applications, the terminal is also Can be when definite first user will be sent in the word message of the second user comprising default sensitive vocabulary, further according to this The history intersection record of first user and the second user determines the relation identity, i.e., the step 201 can also step 203 it After perform, the present embodiment does not limit this.
In step 205, which sends the word message to the second user, terminates.
The terminal can specify application of function by this, and based on first user identifier, this article is sent to the webserver Word message, when which receives the word message, sends the word to the terminal where second user mark and disappears Breath, the terminal where second user mark show this article in the instant session interface of the second user and first user Word message, second user can check the word message.
Wherein, second user mark is used to determine the second user, can be the account of the second user, pet name etc., The present embodiment does not limit this.The webserver specifies application of function to associate with this, and it is for managing that this, which specifies application of function, Terminal contact people's in application, webserver can be base station server is managed, when which is social networking application, The webserver can be social networking application server etc., and the present embodiment does not limit this.
The present embodiment only exemplified by not performing any operation after the terminal sends to the second user word message into Row explanation, in fact, after the terminal sends the word message to the second user, can also continue to disappear to second user transmission Breath, and the terminal can also receive the message of second user transmission, and second use is shown in the instant session interface The message that family is sent, details are not described herein.
In step 206, the terminal-pair first user carries out sensitive vocabulary notice.
When it is second identifier to determine the relation identity between first user and the second user, which can be to this First user carries out sensitive vocabulary notice, prompts in first user word message comprising sensitive vocabulary, it is right to ask whether The default sensitive vocabulary is corrected.
The terminal can be with display reminding window, which includes at least prompt message, delivery option and correct option In one, which is used to prompt to check the prompting message comprising sensitive vocabulary, first user in the word message Afterwards, it may be determined that whether the default sensitive vocabulary is corrected, if without being corrected to the default sensitive vocabulary, should First user can confirm that the delivery option, when the terminal detects the confirmation operation to the delivery option, to second use Family sends the word message.If to be corrected to the default sensitive vocabulary, which can confirm that the correction option, When the terminal detects the confirmation operation to the correction option, the prompt window is closed, which can be instant at this In session interface, the word message inputted is corrected, the delivery option in the instant session interface is clicked on after correction, then The terminal obtains the word message after first user corrects.At this time, the terminal can directly to the second user send this Word message after one user correction, can continue to perform above-mentioned steps 203-206, this reality to the word message after the correction Example is applied not limit this.
It should be noted that the present embodiment is only illustrated so that the terminal performs above-mentioned steps as an example, in practical application, The terminal can install this and specify application of function and specified input method application, which can be based on the login of the first user identifier should Application of function is specified, application of function is specified by this, the customer relationship chain of the first user is obtained, shows first user and second The instant session interface of user, and application of function is specified by this, interacted with second user, generate history intersection record.
This specifies application of function to specify input method application open interface to this, this specifies input method application can be with stepping on Record the first user identifier binding for specifying application of function.Then this is specified input method application to call and specifies application of function with this Between interface, obtain the history intersection record of first user and the second user, according to the history intersection record, determining should Relation identity between first user and the second user.This is specified input method application may call upon and specifies application of function with this Between interface, the first user of capture will be sent to the word message of the second user in the instant session interface, work as this article Word message does not include default sensitive vocabulary, alternatively, the word message package include default sensitive vocabulary and first user with this second When relation identity between user is first flag, this specifies input method application to specify function should to this by the interface Message is verified with transmission, specifies application of function to be based on first user identifier by this, the word is sent to the second user Message.And when the word message package includes default sensitive vocabulary and relation identity between first user and the second user is the During two marks, this specifies input method application display reminding window, and sensitive vocabulary notice is carried out to first user, when first use Family confirmation sends the word message or after first user corrects the word message, this specifies input method application logical The interface is crossed, specifies application of function to send to this and is verified message, specifies application of function to be based on first user identifier by this, The word message is sent to the second user.
It should be noted that the present embodiment is only carried out so that the first user sends the scene of word message to second user as an example Illustrating, the first terminal used by a user determines the relation identity between the first user and second user, according to the relation identity, The word message that second user is sent to the first user is handled.And in practical applications, second user can also be to First user sends word message, then terminal used in second user can determine the pass between second user and the first user System's mark, according to relation identity, the word message that the first user is sent to second user is handled.Wherein, first use The relation identity that terminal used in family determines can be identical with the relation identity that terminal used in second user determines, also may be used With difference, the present embodiment does not limit this.
The word message to be sent can only be corrected according to the input habit of sender in correlation technique, not In view of the relation between sender and recipient.And in the present embodiment, it is contemplated that the relation between sender and recipient, with Relation identity represents the familiarity between sender and recipient, and according to the relation identity to the word message to be sent Handled, more disclosure satisfy that the demand of sender, improve user experience.
Method provided in this embodiment, by predefining relation identity between the first user and second user, when obtaining The word message of second user will be sent to by getting the first user, and when in the word message comprising default sensitive vocabulary, obtain Relation identity between first user and second user, according to the relation identity, is handled the word message.It take into account Familiarity between first user and second user, according to the familiarity, decides whether to entangle the word message Just.Can meet the first user to the needs of friend quickly sends word message is familiar with, can also meet to be unfamiliar with friend hair The demand that the word message sent is corrected.
The word message for including sensitive vocabulary can be sent to known friend in view of the first user, and seldom to being unfamiliar with Friend send the custom of the word message comprising sensitive vocabulary, and first user have sent bag to unfamiliar friend After word message containing default sensitive vocabulary, the custom that the preceding default sensitive vocabulary once sent can be corrected, according to this First user determines relation mark with presetting the frequency of occurrences and the correction of frequency of sensitive vocabulary in the interaction of the second user Know, be more suitable for the input habit of user, definite relation identity, which can more accurately embody, to be familiar between two users Degree.
Fig. 3 is a kind of block diagram of word message processing unit according to an exemplary embodiment.Referring to Fig. 3, the dress Put including message capturing module 301, identifier acquisition module 302 and processing module 303.
Message capturing module 301, in the instant session interface of the first user and second user, obtaining first use Family is sent to the word message of the second user;
Identifier acquisition module 302, for when in the word message comprising default sensitive vocabulary, obtain first user with Relation identity between the second user;
Processing module 303, for according to the relation identity, handling the word message;
Wherein, which is used to represent the familiarity between first user and the second user.
Device provided in this embodiment, by predefining relation identity between the first user and second user, when obtaining The word message of second user will be sent to by getting the first user, and when in the word message comprising default sensitive vocabulary, obtain Relation identity between first user and second user, according to the relation identity, is handled the word message.It take into account Familiarity between first user and second user, according to the familiarity, decides whether to entangle the word message Just.Can meet the first user to the needs of friend quickly sends word message is familiar with, can also meet to be unfamiliar with friend hair The demand that the word message sent is corrected.
In another embodiment, which is first flag or second identifier, is familiar with represented by the first flag Degree is more than the familiarity represented by the second identifier.
In another embodiment, which includes:
First processing units, for when the relation identity is the first flag, sending the word to the second user and disappearing Breath;Alternatively,
Second processing unit, for when the relation identity is the second identifier, sensitive vocabulary to be carried out to first user Prompting.
In another embodiment, which is additionally operable to display reminding window, which includes at least and carry Show information, delivery option and correct one in option, which is used to prompt in the word message comprising sensitive vocabulary; When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Detected alternatively, working as to this When correcting the confirmation operation of option, in the instant session interface, the word message after first user corrects is obtained.
In another embodiment, which further includes:
Determining module, for according to the history intersection record between first user and the second user, determine this first Relation identity between user and the second user.
In another embodiment, which is additionally operable to according to the history intersection record, determine first user with The frequency of occurrences of sensitivity vocabulary is preset in the interaction of the second user;According to the frequency of occurrences, determine first user with Relation identity between the second user.
In another embodiment, which is additionally operable to when the frequency of occurrences is more than the first predetermined threshold value, by this Relation identity between one user and the second user is determined as first flag;When the frequency of occurrences is no more than the first default threshold During value, the relation identity between first user and the second user is determined as second identifier.
In another embodiment, which is additionally operable to according to the history intersection record, determine first user with Preset the frequency of occurrences and correction of frequency of sensitivity vocabulary in the interaction of the second user, the correction of frequency be used to representing this One user with the second user when interacting, to the correction of frequency of default sensitive vocabulary;Entangled according to the frequency of occurrences with this Positive frequency, determines the relation identity between first user and the second user.
In another embodiment, which is additionally operable to when the frequency of occurrences is not more than the first predetermined threshold value, by this Relation identity between first user and the second user is determined as second identifier;When the frequency of occurrences is more than the first default threshold During value, judge whether the correction of frequency is more than the second predetermined threshold value;When the correction of frequency is more than second predetermined threshold value, by this Relation identity between first user and the second user is determined as second identifier;And when the correction of frequency is second pre- no more than this If during threshold value, the relation identity between first user and the second user is determined as first flag.
Above-mentioned all optional technical solutions, can use any combination to form the alternative embodiment of the disclosure, herein no longer Repeat one by one.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:Above-described embodiment provide word message processing unit when handling word message, only more than The division progress of each function module is stated for example, in practical application, can be as needed and by above-mentioned function distribution by difference Function module complete, i.e., the internal structure of terminal is divided into different function modules, with complete it is described above whole or Person's partial function.In addition, the word message processing unit that above-described embodiment provides belongs to word message processing method embodiment Same design, its specific implementation process refer to embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of block diagram of device 400 for word message processing according to an exemplary embodiment.Example Such as, device 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and tablet is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor component 414, and Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, call, data communication, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, and contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia component 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect and the duration and pressure associated with the touch or slide operation.In certain embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio component 410 further includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor component 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor component 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor component 414 can be with 400 1 components of detection device 400 or device Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor component 414 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor component 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application application-specific integrated circuit (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned word message processing side Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-metioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is performed by the processor of terminal When so that terminal is able to carry out a kind of word message processing method, and this method includes:
In the instant session interface of the first user and second user, obtain first user and be sent to described second The word message of user;
When in the word message comprising default sensitive vocabulary, obtain between first user and the second user Relation identity;
According to the relation identity, the word message is handled;
Wherein, the relation identity is used to represent the familiarity between first user and the second user.
In another embodiment, the relation identity is first flag or second identifier, represented by the first flag Familiarity is more than the familiarity represented by the second identifier.
In another embodiment, it is described according to the relation identity, the word message is handled, including:
When the relation identity is the first flag, the word message is sent to the second user;Alternatively,
When the relation identity is the second identifier, sensitive vocabulary notice is carried out to first user.
In another embodiment, it is described when the relation identity is the second identifier, first user is carried out Sensitive vocabulary notice, including:
Display reminding window, the prompt window include at least prompt message, delivery option and correct one in option, The prompt message is used to prompt in the word message comprising sensitive vocabulary;
When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Or Person,
When detecting the confirmation operation to the correction option, in the session interface immediately, described first is obtained Word message after user's correction.
In another embodiment, the method further includes:
According to the history intersection record between first user and the second user, first user and institute are determined State the relation identity between second user.
In another embodiment, the history intersection record according between first user and the second user, Determine the relation identity between first user and the second user, including:
According to the history intersection record, determine to preset in the interaction of first user and the second user The frequency of occurrences of sensitive vocabulary;
According to the frequency of occurrences, the relation identity between first user and the second user is determined.
In another embodiment, it is described according to the frequency of occurrences, determine first user and the second user it Between relation identity, including:
When the frequency of occurrences is more than the first predetermined threshold value, by the pass between first user and the second user It is that mark is determined as first flag;
When the frequency of occurrences is not more than first predetermined threshold value, by first user and the second user it Between relation identity be determined as second identifier.
In another embodiment, the history intersection record according between first user and the second user, Determine the relation identity between first user and the second user, including:
According to the history intersection record, determine to preset in the interaction of first user and the second user The frequency of occurrences and correction of frequency of sensitive vocabulary, the correction of frequency be used for represent first user with the second user When interacting, to the correction of frequency of default sensitive vocabulary;
According to the frequency of occurrences and the correction of frequency, the pass between first user and the second user is determined System's mark.
In another embodiment, it is described according to the frequency of occurrences and the correction of frequency, determine first user with Relation identity between the second user, including:
When the frequency of occurrences is not more than the first predetermined threshold value, by between first user and the second user Relation identity is determined as second identifier;
When the frequency of occurrences is more than first predetermined threshold value, it is default to judge whether the correction of frequency is more than second Threshold value;When the correction of frequency is more than second predetermined threshold value, by between first user and the second user Relation identity is determined as second identifier;And when the correction of frequency is not more than second predetermined threshold value, described first is used Relation identity between family and the second user is determined as first flag.
Above-mentioned all optional technical solutions, can use any combination to form the alternative embodiment of the disclosure, herein no longer Repeat one by one.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (15)

  1. A kind of 1. word message processing method, it is characterised in that the described method includes:
    According to the history intersection record between the first user and second user, determine first user and the second user it Between relation identity;
    In the instant session interface of first user and the second user, acquisition first user is sent to described The word message of second user;
    When in the word message comprising default sensitive vocabulary, the pass between first user and the second user is obtained System's mark;
    According to the relation identity, the word message is handled;
    Wherein, the relation identity is used to represent the familiarity between first user and the second user;
    The history intersection record according between the first user and second user, determines that first user uses with described second Relation identity between family, including:
    According to the history intersection record, determine to preset sensitivity in the interaction of first user and the second user The frequency of occurrences and correction of frequency of vocabulary, the correction of frequency are used to represent that first user carries out with the second user During interaction, to the correction of frequency of default sensitive vocabulary;
    According to the frequency of occurrences and the correction of frequency, the relation mark between first user and the second user is determined Know.
  2. 2. according to the method described in claim 1, it is characterized in that, the relation identity is first flag or second identifier, institute The familiarity represented by first flag is stated more than the familiarity represented by the second identifier.
  3. 3. according to the method described in claim 2, it is characterized in that, described according to the relation identity, to the word message Handled, including:
    When the relation identity is the first flag, the word message is sent to the second user;Alternatively,
    When the relation identity is the second identifier, sensitive vocabulary notice is carried out to first user.
  4. 4. according to the method described in claim 3, it is characterized in that, described when the relation identity is the second identifier, Sensitive vocabulary notice is carried out to first user, including:
    Display reminding window, the prompt window includes at least prompt message, delivery option and corrects one in option, described Prompt message is used to prompt in the word message comprising sensitive vocabulary;
    When detecting the confirmation operation to the delivery option, the word message is sent to the second user;Alternatively,
    When detecting the confirmation operation to the correction option, in the session interface immediately, first user is obtained Word message after correction.
  5. 5. the according to the method described in claim 1, it is characterized in that, history according between the first user and second user Intersection record, determines the relation identity between first user and the second user, including:
    According to the history intersection record, determine to preset sensitivity in the interaction of first user and the second user The frequency of occurrences of vocabulary;
    According to the frequency of occurrences, the relation identity between first user and the second user is determined.
  6. 6. according to the method described in claim 5, it is characterized in that, described according to the frequency of occurrences, determine that described first uses Relation identity between family and the second user, including:
    When the frequency of occurrences is more than the first predetermined threshold value, by the relation mark between first user and the second user Knowledge is determined as first flag;
    When the frequency of occurrences is not more than first predetermined threshold value, by between first user and the second user Relation identity is determined as second identifier.
  7. 7. according to the method described in claim 1, it is characterized in that, described according to the frequency of occurrences and the correction of frequency, Determine the relation identity between first user and the second user, including:
    When the frequency of occurrences is not more than the first predetermined threshold value, by the relation between first user and the second user Mark is determined as second identifier;
    When the frequency of occurrences is more than first predetermined threshold value, judge whether the correction of frequency is more than the second default threshold Value;When the correction of frequency is more than second predetermined threshold value, by the pass between first user and the second user It is that mark is determined as second identifier;And when the correction of frequency is not more than second predetermined threshold value, by first user Relation identity between the second user is determined as first flag.
  8. 8. a kind of word message processing unit, it is characterised in that described device includes:
    Determining module, for according to the history intersection record between the first user and second user, determine first user with Relation identity between the second user;
    Message capturing module, in the instant session interface of first user and the second user, obtaining described the One user is sent to the word message of the second user;
    Identifier acquisition module, for when in the word message comprising default sensitive vocabulary, obtaining first user and institute State the relation identity between second user;
    Processing module, for according to the relation identity, handling the word message;
    Wherein, the relation identity is used to represent the familiarity between first user and the second user;
    The determining module is additionally operable to according to the history intersection record, is determined in first user and the second user The frequency of occurrences and correction of frequency of sensitivity vocabulary are preset in interaction, the correction of frequency is used to represent that first user exists When being interacted with the second user, to the correction of frequency of default sensitive vocabulary;According to the frequency of occurrences and the correction Frequency, determines the relation identity between first user and the second user.
  9. 9. device according to claim 8, it is characterised in that the relation identity is first flag or second identifier, institute The familiarity represented by first flag is stated more than the familiarity represented by the second identifier.
  10. 10. device according to claim 9, it is characterised in that the processing module includes:
    First processing units, for when the relation identity is the first flag, the text to be sent to the second user Word message;Alternatively,
    Second processing unit, for when the relation identity is the second identifier, sensitive word to be carried out to first user Converge and prompt.
  11. 11. device according to claim 10, it is characterised in that the second processing unit is additionally operable to display reminding window Mouthful, the prompt window includes at least prompt message, delivery option and corrects one in option, and the prompt message is used to carry Show in the word message comprising sensitive vocabulary;When detecting the confirmation operation to the delivery option, used to described second Family sends the word message;Alternatively, when detecting the confirmation operation to the correction option, at the session interface immediately In, obtain the word message after first user corrects.
  12. 12. device according to claim 8, it is characterised in that the determining module is additionally operable to be interacted according to the history Record, determines to preset the frequency of occurrences of sensitive vocabulary in the interaction of first user and the second user;According to The frequency of occurrences, determines the relation identity between first user and the second user.
  13. 13. device according to claim 12, it is characterised in that the determining module is additionally operable to when the frequency of occurrences is big When the first predetermined threshold value, the relation identity between first user and the second user is determined as first flag;When When the frequency of occurrences is not more than first predetermined threshold value, by the relation mark between first user and the second user Knowledge is determined as second identifier.
  14. 14. device according to claim 8, it is characterised in that the determining module is additionally operable to work as the frequency of occurrences not During more than the first predetermined threshold value, the relation identity between first user and the second user is determined as second identifier; When the frequency of occurrences is more than first predetermined threshold value, judge whether the correction of frequency is more than the second predetermined threshold value;When When the correction of frequency is more than second predetermined threshold value, by the relation identity between first user and the second user It is determined as second identifier;And when the correction of frequency is not more than second predetermined threshold value, by first user with it is described Relation identity between second user is determined as first flag.
  15. A kind of 15. word message processing unit, it is characterised in that including:
    Processor;For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    According to the history intersection record between the first user and second user, determine first user and the second user it Between relation identity;
    In the instant session interface of first user and the second user, acquisition first user is sent to described The word message of second user;
    When in the word message comprising default sensitive vocabulary, the pass between first user and the second user is obtained System's mark;
    According to the relation identity, the word message is handled;
    Wherein, the relation identity is used to represent the familiarity between first user and the second user;
    The history intersection record according between the first user and second user, determines that first user uses with described second Relation identity between family, including:
    According to the history intersection record, determine to preset sensitivity in the interaction of first user and the second user The frequency of occurrences and correction of frequency of vocabulary, the correction of frequency are used to represent that first user carries out with the second user During interaction, to the correction of frequency of default sensitive vocabulary;
    According to the frequency of occurrences and the correction of frequency, the relation mark between first user and the second user is determined Know.
CN201510369407.6A 2015-06-26 2015-06-26 Word message treating method and apparatus Active CN105095366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510369407.6A CN105095366B (en) 2015-06-26 2015-06-26 Word message treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510369407.6A CN105095366B (en) 2015-06-26 2015-06-26 Word message treating method and apparatus

Publications (2)

Publication Number Publication Date
CN105095366A CN105095366A (en) 2015-11-25
CN105095366B true CN105095366B (en) 2018-05-08

Family

ID=54575803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510369407.6A Active CN105095366B (en) 2015-06-26 2015-06-26 Word message treating method and apparatus

Country Status (1)

Country Link
CN (1) CN105095366B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930697A (en) * 2016-04-11 2016-09-07 厦门幻世网络科技有限公司 Method and device for opening use permission of interactive information
WO2018107580A1 (en) * 2016-12-15 2018-06-21 华为技术有限公司 Information notification method and device
CN110597802A (en) * 2018-05-24 2019-12-20 北京京东尚科信息技术有限公司 Message processing method and device
CN109766441B (en) * 2018-12-28 2021-07-09 奇安信科技集团股份有限公司 Text classification method, device and system
CN111427459B (en) * 2019-01-08 2024-04-02 北京搜狗科技发展有限公司 Method and related device for optimizing input during user communication
CN109617795B (en) * 2019-02-27 2021-08-31 中国联合网络通信集团有限公司 Method and system for sending message
CN110177074B (en) * 2019-04-10 2021-02-12 华为技术有限公司 Method for sending conversation message and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878202A (en) * 2005-06-11 2006-12-13 乐金电子(中国)研究开发中心有限公司 Method for analyzing accepted short message
CN104320766A (en) * 2014-10-16 2015-01-28 小米科技有限责任公司 Spam short message identification method, device and equipment
CN104579933A (en) * 2015-02-03 2015-04-29 上海天奕达电子科技有限公司 User management method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878202A (en) * 2005-06-11 2006-12-13 乐金电子(中国)研究开发中心有限公司 Method for analyzing accepted short message
CN104320766A (en) * 2014-10-16 2015-01-28 小米科技有限责任公司 Spam short message identification method, device and equipment
CN104579933A (en) * 2015-02-03 2015-04-29 上海天奕达电子科技有限公司 User management method and system

Also Published As

Publication number Publication date
CN105095366A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105095366B (en) Word message treating method and apparatus
CN104780155B (en) Apparatus bound method and device
CN104378441B (en) schedule creation method and device
CN106528709A (en) Social information recommendation method and apparatus
CN104731688B (en) Point out the method and device of reading progress
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN106970769A (en) Multi-screen display method and device
CN107219992A (en) Open the method and device of split screen function
CN104899501A (en) Dialog list display method and device and terminal
CN106791092A (en) The searching method and device of contact person
CN106506323A (en) A kind of chat content collating unit and method
WO2017000486A1 (en) Method and device for obtaining search results
CN107071862A (en) Account binding method and device and smart machine
CN105550231B (en) The method, device and equipment of information exchange
CN106130873A (en) Information processing method and device
CN107404429A (en) Circle of friends answering method, device and computer-readable recording medium
CN104539497B (en) Method for connecting network and device
CN104536753B (en) Backlog labeling method and device
CN104219648B (en) Prompt the method and device of charging information
CN106453774A (en) Method and apparatus for displaying contact information
CN105072243B (en) Income prompting method and device
CN107257318A (en) Control method, device and the computer-readable recording medium of electronic equipment
CN107995612A (en) Equipment finding method, device and electronic equipment
CN107360322A (en) Information cuing method and device
CN107295099A (en) PUSH message processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant