CN106921556A - The processing method and server of a kind of chat message - Google Patents
The processing method and server of a kind of chat message Download PDFInfo
- Publication number
- CN106921556A CN106921556A CN201510984846.8A CN201510984846A CN106921556A CN 106921556 A CN106921556 A CN 106921556A CN 201510984846 A CN201510984846 A CN 201510984846A CN 106921556 A CN106921556 A CN 106921556A
- Authority
- CN
- China
- Prior art keywords
- chat message
- score value
- information
- chat
- message
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/212—Monitoring or handling of messages using filtering or selective blocking
Abstract
The invention discloses the processing method and server of a kind of chat message, the method includes:The chat message for receiving each client transmission gives out information;Chat message for being currently received gives out information, and calculates the score value of wherein chat message, when the score value is more than the first predetermined threshold value, filters the chat message and gives out information;Otherwise wherein ID calculate chat message database in corresponding chat message score value summation, when the score value summation is more than the second predetermined threshold value, filters the chat message and give out information;The chat message is given out information and pushes to corresponding each client by the scope of release information in otherwise being given out information according to the chat message.According to this scheme, every chat message is scored, accumulation score is carried out to each user, setting score criteria come weigh chat message be intended to whether proper and user chat behavior it is whether reasonable, the judgement granularity to unreasonable chat behavior has been refined, unreasonable chat behavior more can have accurately and efficiently been filtered.
Description
Technical field
The present invention relates to Internet technical field, and in particular to a kind of processing method of chat message and service
Device.
Background technology
With continuing to develop for Internet technology, by the various platforms in network, forum, using etc. enter
Row chat sessions have turned into one of most common interaction mode of current internet user, at present, are chatted various
In its scene, however it remains substantial amounts of malicious user issue includes advertisement, marketing, holding, verbal attack
Etc. the chat message of improper intention, also there are many using program to send prolonged brush screen information,
The very disruptive normal order of chat scenario, compromises the legitimate interests of other users.
How irrational chat message is accurately and effectively filtered out in the Internet chat interaction scenarios to protect
Hinder the pure property of chat environment, be current problem demanding prompt solution.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least part of to provide one kind
The processing method of chat message that solves the above problems and server.
According to one aspect of the present invention, there is provided a kind of processing method of chat message, wherein, the party
Method includes:
The chat message for receiving each client transmission by data-interface gives out information;Every chat message hair
Cloth message includes:ID, chat message, scope of release information;By the ID and merely
Its information correspondence is saved in chat message database;
Chat message for being currently received gives out information, and calculates chatting during the chat message gives out information
The score value of its information, when the score value of the chat message is more than the first predetermined threshold value, filters the chat message
Give out information;
It is right in calculating chat message database when the score value of the chat message is not less than the first predetermined threshold value
Should in the chat message give out information included ID chat message score value summation, when this point
When value summation is more than the second predetermined threshold value, filters the chat message and give out information;
When the score value summation is not less than the second predetermined threshold value, the hair in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by cloth range information.
Alternatively, the score value of the chat message calculated during the chat message gives out information includes:
Default fisrt feature storehouse, the fisrt feature storehouse includes:Multiple keywords are corresponding with each keyword
Score value;
The keyword in the chat message is obtained, if keyword and fisrt feature storehouse in the chat message
In keyword match, then the score value of the score value of the keyword that will be matched as the chat message.
Alternatively, the keyword obtained in the chat message includes:
The chat message is carried out to simplify treatment, including:The insignificant character in the chat message is filtered,
And/or, analog information conversion is carried out to the chat message;
Word segmentation processing is carried out to simplifying the chat message after treatment, extracting this according to word segmentation processing result chats
The keyword of its information.
Alternatively, the score value of the chat message calculated during the chat message gives out information includes:
Default second feature storehouse, the second feature storehouse includes:Multiple regular expressions and each canonical table
Up to the corresponding score value of formula;
The keyword in the chat message is obtained, if in the content of the chat message and second feature storehouse
Regular expression matches, then the score value of the score value of the regular expression that will be matched as the chat message.
Alternatively, the method is further included:
When the score value summation is more than the second predetermined threshold value, the chat message is given out information included use
Family mark is put into closing list;
Chat message for being currently received gives out information, and judges that the chat message is included in giving out information
ID whether in list is closed, be then, directly to filter the chat message and give out information.
Alternatively, it is described that the chat message gives out information during included ID is put into and closes list
Including:The time is closed according to what the corresponding score value summation of the ID set the ID;
Then the method is further included:For being put into each ID closed in list, should when meeting
ID is corresponding when closing the time, and the ID is deleted from list is closed.
Alternatively, the chat message gives out information and further includes:Issuing time information;
When the score value summation is not less than the second predetermined threshold value, the method is further included:
Obtained from chat message database and given out information included ID corresponding to the chat message
Issuing time information;
The corresponding use of the ID in default measurement period is calculated according to acquired each issuing time information
The average time interval of the chat message that family sends, when the average time interval is less than predetermined time period,
Filter the chat message to give out information, and the user is represented be put into and close list;
When the average time interval is not less than predetermined time period, in being given out information according to the chat message
Scope of release information the chat message given out information push to corresponding each client.
Alternatively, the method is further included:
The chat message report message that client sends, every chat message report are received by data-interface
Message includes:The ID reported, the chat message reported;
Chat message for being currently received reports message, calculates the quilt in chat message report message
The score value of the chat message of report, when the score value of the chat message reported is more than the first predetermined threshold value,
Delete the record of the chat message reported;
When the score value of the chat message reported is not less than the first predetermined threshold value, chat message number is calculated
According to the score value of the chat message for corresponding to the ID reported in chat message report message in storehouse
Summation, when the score value summation is more than the second predetermined threshold value, deletes the record of the chat message reported,
And during the ID reported accordingly is put into closes list.
According to another aspect of the present invention, a kind of processing server of chat message is additionally provided, wherein,
The server includes:
Information receiving unit, the chat message issue for being suitable to receive each client transmission by data-interface disappears
Breath;Every chat message gives out information and includes:ID, chat message, scope of release information;
It is saved in the ID is corresponding with chat message in chat message database;
Information process unit, is suitable to be given out information for the chat message being currently received, and calculates the chat
Information give out information in chat message score value, when the score value of the chat message is more than the first predetermined threshold value
When, filter the chat message and give out information;When the score value of the chat message is not less than the first predetermined threshold value,
The chat of the included ID that given out information corresponding to the chat message in calculating chat message database
The score value summation of information, when the score value summation is more than the second predetermined threshold value, filters chat message issue
Message;When the score value summation is not less than the second predetermined threshold value, in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by scope of release information.
Alternatively, information process unit, is suitable to default fisrt feature storehouse, and the fisrt feature storehouse includes:
Multiple keywords and the corresponding score value of each keyword;The keyword in the chat message is obtained, if should chat
Keyword in its information matches with the keyword in fisrt feature storehouse, then the keyword that will be matched
Score value as the chat message score value.
Alternatively, information process unit, is suitable to the chat message is carried out to simplify treatment, including:Filtering
Insignificant character in the chat message, and/or, analog information conversion is carried out to the chat message;It is right
Simplifying the chat message after treatment carries out word segmentation processing, and the chat message is extracted according to word segmentation processing result
Keyword.
Alternatively, information process unit, is suitable to default second feature storehouse, and the second feature storehouse includes:
Multiple regular expressions and the corresponding score value of each regular expression;The keyword in the chat message is obtained,
If the content of the chat message matches with the regular expression in second feature storehouse, by what is matched
The score value of regular expression as the chat message score value.
Alternatively, information process unit, is further adapted for when the score value summation is more than the second predetermined threshold value,
The chat message is given out information during included ID is put into and closes list;For being currently received
Chat message give out information, judge ID that the chat message includes in giving out information whether in envelope
Prohibit in list, be then, directly to filter the chat message and give out information.
Alternatively, information process unit, is suitable to set the use according to the corresponding score value summation of the ID
What family identified closes the time;
Information process unit, is further adapted for for being put into each ID closed in list, when full
The ID is corresponding for foot when closing the time, and the ID is deleted from list is closed.
Alternatively, the chat message gives out information and further includes:Issuing time information;
Information process unit, is further adapted for when the score value summation is not less than the second predetermined threshold value, from merely
When the issue of the included ID that given out information corresponding to the chat message is obtained in its information database
Between information;ID correspondence in default measurement period is calculated according to acquired each issuing time information
The average time interval of chat message that sends of user, when the average time interval is long less than Preset Time
When spending, filter the chat message and give out information, and the user is represented be put into and close list;When this is flat
When equal time interval is not less than predetermined time period, the scope of release in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by information.
Alternatively, information receiving unit, is further adapted for receiving chatting for client transmission by data-interface
Its information report message, every chat message report message includes:The ID reported, is lifted
The chat message of report;
Information process unit, is further adapted for reporting message for the chat message being currently received, and calculates
The score value of the chat message reported in chat message report message, when the chat message that this is reported
Score value more than the first predetermined threshold value when, delete the record of the chat message reported;When this is reported
Chat message score value not less than the first predetermined threshold value when, calculate chat message database in correspond to should
The score value summation of the chat message of the ID reported in chat message report message, when the score value
When summation is more than the second predetermined threshold value, the record of the chat message reported is deleted, and will quilt accordingly
The ID of report is put into closing list.
From the foregoing, the chat message issue that the technical scheme that the present invention is provided receives client transmission disappears
Breath, calculates the score value of the chat message during the chat message gives out information, and judges that this is chatted according to the score value
Whether its information is rational chat message, and further, also calculating sends the chat message and gives out information
User history chat message score value summation, judge whether the user is just according to the score value summation
Conventional family, judges the irrational chat message of filtering more than, filters improper Client-initiated and chats
Its information.According to this scheme, every chat message is scored, accumulation score is carried out to each user,
Whether whether the intention for setting score criteria to weigh chat message close by the chat behavior of proper and user
Reason, has refined the judgement granularity to unreasonable chat behavior, improves the accuracy of judgement, can be more
Accurately and efficiently filter unreasonable chat behavior.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention
Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow
Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
Fig. 1 shows a kind of flow of the processing method of chat message according to an embodiment of the invention
Figure;
Fig. 2 shows a kind of signal of the processing server of chat message according to an embodiment of the invention
Figure.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without
Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Fig. 1 shows a kind of flow of the processing method of chat message according to an embodiment of the invention
Figure.As shown in figure 1, the method includes:
Step S110:The chat message for receiving each client transmission by data-interface gives out information;Every
Chat message gives out information to be included:ID, chat message, scope of release information;By the use
Family mark is corresponding with chat message to be saved in chat message database.
Wherein, the ID during chat message gives out information indicates the publisher of corresponding chat message,
Chat message is the content of text of issued chat message, and scope of release information indicating goes out corresponding chat
Information is issued on what platform, and indicates the user scope it can be seen that the chat message;For example,
One chat message gives out information and includes:ID:" a ", chat message:" chat and see recently
Book ", scope of release:The user more than 1000 points is integrated in forum b.
Step S120:Chat message for being currently received gives out information, and calculates chat message issue
The score value of the chat message in message, when the score value of the chat message is more than the first predetermined threshold value, filtering
The chat message gives out information.
Wherein, every score value of chat message is used to weigh the reasonability of the chat message, when chat letter
When the score value of breath is more than the first predetermined threshold value, illustrate that the chat message, should for irrational chat message
Filtered.
Step S130:When the score value of the chat message is not less than the first predetermined threshold value, chat message is calculated
In database correspond to the chat message give out information included ID chat message score value it is total
With when the score value summation is more than the second predetermined threshold value, filters the chat message and give out information.
Wherein, given out information included user corresponding to the chat message in the chat message database
The score value summation of the chat message of mark refers to:The all of history chat letter of the corresponding user of the ID
The score value summation of breath, reflects chat behavior of the user within a period of time, when the score value summation from overall
During more than the second predetermined threshold value, illustrate that chat behavior of the user within this period of time is constituted unreasonable existing
As that is, the user is probably improper user, then filter the chat message of user transmission.
Step S140:When the score value summation is not less than the second predetermined threshold value, issued according to the chat message
The chat message is given out information and pushes to corresponding each client by the scope of release information in message.
It can be seen that, the chat message that the method shown in Fig. 1 receives client transmission gives out information, and calculating to chat
Its information give out information in chat message score value, judged according to the score value chat message whether be
Rational chat message, further, also calculates the history for sending the user that the chat message gives out information
The score value summation of chat message, judges whether the user is normal users according to the score value summation, passes through
The irrational chat message of filtering is judged above, filters improper Client-initiated chat message.Foundation
This scheme, is scored to every chat message, and accumulation score is carried out to each user, sets score value mark
Standard come weigh chat message be intended to whether the chat behavior of proper and user whether rationally, it is right to have refined
The judgement granularity of unreasonable chat behavior, improves the accuracy of judgement, being capable of more accurately and efficiently mistake
Filter unreasonable chat behavior.
In one embodiment of the invention, the chat message is calculated described in step S120 to give out information
In the score value of chat message include:Default fisrt feature storehouse, the fisrt feature storehouse includes:It is multiple
Keyword and the corresponding score value of each keyword;The keyword in the chat message is obtained, if the chat is believed
Keyword in breath matches with the keyword in fisrt feature storehouse, then the score value of the keyword that will be matched
As the score value of the chat message.
For example, the related keyword of advertising message is preset in fisrt feature storehouse, and for each keyword sets super
The score value of the first predetermined threshold value is crossed;The then chat in the chat message of user's issue gives out information
When information is advertisement, the keyword of the chat message is obtained, the key of matching is found in fisrt feature storehouse
The score value of word, more than the first predetermined threshold value, filters the chat message.Similarly, based on fisrt feature storehouse,
The improper information such as marketing message, holding information, verbal attack information in chat message can be identified,
And then filtered accordingly, it is ensured that the pure property of the chat message in the various network platforms.
Wherein, the keyword in the above-mentioned acquisition chat message includes:The chat message is carried out to simplify place
Reason, including:The insignificant character in the chat message is filtered, and/or, phase is carried out to the chat message
Like information conversion;Word segmentation processing is carried out to simplifying the chat message after treatment, is carried according to word segmentation processing result
Take out the keyword of the chat message.
In another embodiment of the present invention, chat message issue is calculated described in step S120 to disappear
The score value of the chat message in breath includes:Default second feature storehouse, the second feature storehouse includes:It is many
Individual regular expression and the corresponding score value of each regular expression;The keyword in the chat message is obtained, such as
Really the content of the chat message matches with the regular expression in second feature storehouse, then will be matched just
Then the score value of expression formula as the chat message score value.
For example, presetting the regular expression of common advertising slogan formula in second feature storehouse, and it is each canonical table
Up to formula, the score value more than the first predetermined threshold value is set;In the chat message of user's issue gives out information
Chat message be Common Advertising language formula when, found in second feature storehouse and matched just with the chat message
Then expression formula and corresponding score value is obtained, the chat message is just filtered more than the first predetermined threshold value.Similarly,
Based on second feature storehouse, marketing language formula, holding language formula, the verbal attack in chat message can be identified
The improper information such as language formula, and then filtered accordingly, it is ensured that the chat letter in the various network platforms
The pure property of breath.
Further, in one embodiment of the invention, the method shown in Fig. 1 also includes step S150,
It is divided into the following steps:
Step S151:When the score value summation is more than the second predetermined threshold value, the chat message is given out information
Comprising ID be put into and close list.
Wherein, the corresponding user of all ID closed in list is be identified unreasonable
User, when the score value summation of history chat message of the user within a period of time is more than the second default threshold
Value, it is determined that the user is unreasonable user within this time, puts it into closing list.
Step S152:Chat message for being currently received gives out information, and judges that the chat message is issued
Whether the ID included in message is then, directly to filter chat message issue in list is closed
Message.
Wherein, a score value summation for the history chat message of user is more than the expression higher of the second predetermined threshold value
The unreasonable degree of the chat behavior of the user is higher, then in one embodiment of the invention, step
The chat message the included ID that gives out information is put into close in list and wrapped by described in S151
Include:The time is closed according to what the corresponding score value summation of the ID set the ID;For example, point
The bigger setting of value summation closes that the time is more long, then the method shown in Fig. 1 is further included:For being put into envelope
Prohibit each ID in list, when meeting that the ID is corresponding to close the time, by the user
Mark is deleted from list is closed.
Or, in other embodiments, the use can be set according to the corresponding score value summation of the ID
What family identified lifts a ban condition, for example, this lifts a ban condition can include:Lifted a ban by supplementing with money;User
Identify corresponding score value summation more, then setting it, to lift a ban condition higher.In for being put into and closing list
Each ID, when meeting that the ID is corresponding to lift a ban condition, by the ID from closing
Deleted in list.The present embodiment is unwilling the characteristics of paying a price, sieve according to malicious user under normal circumstances
Select the normal users for accidentally performing irrational chat behavior.
Further, in one embodiment of the invention, the issue of chat message described in step S110
Also include in message:Issuing time information;When in the chat message database correspond to the chat message
When the score value summation of the chat message of the included ID that gives out information is not less than the second predetermined threshold value,
Method shown in Fig. 1 also includes step S160, is divided into the following steps:
Step S161:Obtain to be given out information corresponding to the chat message from chat message database and included
ID issuing time information.
Step S162:User mark in default measurement period is calculated according to acquired each issuing time information
The average time interval of the chat message that corresponding user sends is known, when the average time interval is less than default
During time span, filter the chat message and give out information, and the ID is put into closes list.
Step S163:When the average time interval is not less than predetermined time period, according to the chat message
The chat message is given out information and pushes to corresponding each client by the scope of release information in giving out information.
For example, in playing forum at one, user a carries out long-time brush screen and interferes with other using program
The normal chat interaction of user, by detection, it is found that the score value of the corresponding every chat message of user a does not have
Have more than the first predetermined threshold value, also, user a corresponding all chat messages in preset time period
Score value summation is also not above the second predetermined threshold value, and now, further detection user a is in preset time period
The issuing time of interior corresponding all chat messages, between every chat message that discovery user a is issued
Time interval it is very small, averagely less than predetermined time period, illustrate that the user a carried out is to utilize
Program carries out the malice chat behavior of long-time brush screen, therefore, the ID of the user a is put into envelope
In taboo list, to filter the chat message of user a issues.
Further, in one embodiment of the invention, the method shown in Fig. 1 also includes step S170,
It is divided into the following steps:
Step S171:The chat message report message that client sends is received by data-interface, every is chatted
Its information report message includes:The ID reported, the chat message reported.
Step S172:Chat message for being currently received reports message, calculates chat message report
The score value of the chat message reported in message, when the score value of the chat message reported is more than first
During predetermined threshold value, the record of the chat message reported is deleted.
Step S173:When the score value of the chat message reported is not less than the first predetermined threshold value, calculate
Correspond to the chat of the ID reported in chat message report message in chat message database
The score value summation of information, when the score value summation is more than the second predetermined threshold value, deletes the chat reported
The record of information, and the ID reported accordingly is put into closes list.
It can be seen that, the chat message that the present embodiment is further sent by receiving client reports message to make up
The judgement being likely to occur in scheme mentioned above is omitted, after chat message report message is received, for
Chat message and the corresponding history chat message of corresponding ID in chat message report message are again
Score judge is carried out, to obtain more accurately judged result processed, to existing in the network platform
The improper chat message being missed and unreasonable user filtered, to ensure that other normal users exist
Consumer's Experience in the network platform.
Fig. 2 shows a kind of signal of the processing server of chat message according to an embodiment of the invention
Figure.As shown in Fig. 2 the processing server 200 of the chat message includes:
Information receiving unit 210, is suitable to receive the chat message hair that each client sends by data-interface
Cloth message;Every chat message gives out information and includes:ID, chat message, scope of release letter
Breath;It is saved in the ID is corresponding with chat message in chat message database.
Information process unit 220, is suitable to be given out information for the chat message being currently received, and calculating should
Chat message give out information in chat message score value, when the score value of the chat message is default more than first
During threshold value, filter the chat message and give out information;When the score value of the chat message is not less than the first default threshold
During value, calculate and given out information included ID corresponding to the chat message in chat message database
Chat message score value summation, when the score value summation is more than the second predetermined threshold value, filter the chat letter
Breath gives out information;When the score value summation is not less than the second predetermined threshold value, disappeared according to chat message issue
The chat message is given out information and pushes to corresponding each client by the scope of release information in breath.
It can be seen that, the chat message that the server shown in Fig. 2 receives client transmission gives out information, and calculating should
Chat message give out information in chat message score value, the chat message is judged according to the score value whether
It is rational chat message, further, also calculates and send going through for the user that the chat message gives out information
The score value summation of history chat message, judges whether the user is normal users according to the score value summation, leads to
The irrational chat message of filtering is judged more than crossing, improper Client-initiated chat message is filtered.According to
Scheme, is scored to every chat message accordingly, and accumulation score is carried out to each user, sets score value
Standard come weigh chat message be intended to whether the chat behavior of proper and user whether rationally, refinement
To the judgement granularity of unreasonable chat behavior, the accuracy of judgement is improve, can more accurately and efficiently
Filter unreasonable chat behavior.
In one embodiment of the invention, information process unit 220, are suitable to default fisrt feature storehouse,
The fisrt feature storehouse includes:Multiple keywords and the corresponding score value of each keyword;Obtain chat letter
Keyword in breath, if the keyword in the chat message matches with the keyword in fisrt feature storehouse,
Score value of the score value of the keyword that will then be matched as the chat message.
In one embodiment of the invention, information process unit 220, are suitable to carry out the chat message
Simplify treatment, including:The insignificant character in the chat message is filtered, and/or, to the chat message
Carry out analog information conversion;Word segmentation processing is carried out to simplifying the chat message after treatment, according to word segmentation processing
Result extracts the keyword of the chat message.
In one embodiment of the invention, information process unit 220, are suitable to default second feature storehouse,
The second feature storehouse includes:Multiple regular expressions and the corresponding score value of each regular expression;Obtain
Keyword in the chat message, if the regular expressions in the content of the chat message and second feature storehouse
Formula matches, then the score value of the score value of the regular expression that will be matched as the chat message.
Further, in one embodiment of the invention, information process unit 220, are further adapted for working as and are somebody's turn to do
When score value summation is more than the second predetermined threshold value, the chat message the included ID that gives out information is put
In entering to close list;Chat message for being currently received gives out information, and judges that the chat message is issued
Whether the ID included in message is then, directly to filter chat message issue in list is closed
Message.
In one embodiment of the invention, information process unit 220, are suitable to according to the ID pair
What the score value summation answered set the ID closes the time;Information process unit 220, is further adapted for
For being put into each ID closed in list, when meeting that the ID is corresponding to close the time,
The ID is deleted from list is closed.
Further, in one embodiment of the invention, the chat message also includes in giving out information:
Issuing time information;Information process unit 220, is further adapted for when the score value summation is pre- not less than second
If during threshold value, being obtained from chat message database and being given out information included use corresponding to the chat message
The issuing time information of family mark;Calculated in default measurement period according to acquired each issuing time information
The average time interval of the chat message that the corresponding user of the ID sends, when the average time interval
During less than predetermined time period, filter the chat message and give out information, and the user is represented to be put into close
In list;When the average time interval is not less than predetermined time period, disappeared according to chat message issue
The chat message is given out information and pushes to corresponding each client by the scope of release information in breath.
Further, in one embodiment of the invention, information receiving unit 210, are further adapted for passing through
Data-interface receives the chat message report message that client sends, and is wrapped in every chat message report message
Include:The ID reported, the chat message reported;Information process unit 220, it is right to be further adapted for
Message is reported in the chat message that is currently received, being reported in chat message report message is calculated
The score value of chat message, when the score value of the chat message reported is more than the first predetermined threshold value, deletes
The record of the chat message reported;When the score value of the chat message reported is preset not less than first
During threshold value, the use reported corresponded in chat message report message in chat message database is calculated
The score value summation of the chat message of family mark, when the score value summation is more than the second predetermined threshold value, deleting should
The record of the chat message reported, and the ID reported accordingly is put into closes list.
It should be noted that each embodiment of each embodiment of server shown in Fig. 2 and method shown in Fig. 1
Correspondence is identical, has above been described in detail, and will not be repeated here.
In sum, the chat message that the technical scheme that the present invention is provided receives client transmission gives out information,
The score value of the chat message during the chat message gives out information is calculated, judges that the chat is believed according to the score value
Whether breath is rational chat message, further, also calculates and sends the use that the chat message gives out information
The score value summation of the history chat message at family, judges whether the user is just conventional according to the score value summation
Family, judges the irrational chat message of filtering more than, filters improper Client-initiated chat letter
Breath.According to this scheme, every chat message is scored, accumulation score is carried out to each user, if
Whether whether the chat behavior of proper and user is reasonable for the intention for determining score criteria to weigh chat message,
The judgement granularity to unreasonable chat behavior has been refined, the accuracy of judgement has been improve, can be more accurate
Effectively filter unreasonable chat behavior.
It should be noted that:
Algorithm and display be not solid with any certain computer, virtual bench or miscellaneous equipment provided herein
There is correlation.Various fexible units can also be used together with based on teaching in this.As described above,
It is obvious to construct the structure required by this kind of device.Additionally, the present invention is not also for any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description done to language-specific above is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of without these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes
It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim
The middle more features of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right
It is required that in itself all as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power
In sharp claim, the one of any of embodiment required for protection mode can make in any combination
With.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
Some of some or all parts in a kind of processing server of chat message of the embodiment of the present invention
Or repertoire.The present invention be also implemented as a part for performing method as described herein or
Person whole equipment or program of device (for example, computer program and computer program product).So
Realize that program of the invention can be stored on a computer-readable medium, or can have one or
The form of multiple signals.Such signal can be downloaded from internet website and obtained, or in carrier letter
There is provided on number, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention,
And those skilled in the art can design replacement in fact without departing from the scope of the appended claims
Apply example.In the claims, should not be configured to any reference symbol being located between bracket will to right
The limitation asked.Word "comprising" does not exclude the presence of element or step not listed in the claims.Positioned at unit
Word "a" or "an" before part does not exclude the presence of element as multiple.The present invention can be by means of
Include the hardware of some different elements and realized by means of properly programmed computer.Listing
If in the unit claim of equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.Can be by this
A little words are construed to title.
The invention discloses A1, a kind of processing method of chat message, wherein, the method includes:
The chat message for receiving each client transmission by data-interface gives out information;Every chat message hair
Cloth message includes:ID, chat message, scope of release information;By the ID and merely
Its information correspondence is saved in chat message database;
Chat message for being currently received gives out information, and calculates chatting during the chat message gives out information
The score value of its information, when the score value of the chat message is more than the first predetermined threshold value, filters the chat message
Give out information;
It is right in calculating chat message database when the score value of the chat message is not less than the first predetermined threshold value
Should in the chat message give out information included ID chat message score value summation, when this point
When value summation is more than the second predetermined threshold value, filters the chat message and give out information;
When the score value summation is not less than the second predetermined threshold value, the hair in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by cloth range information.
A2, the method as described in A1, wherein, the chat calculated during the chat message gives out information
The score value of information includes:
Default fisrt feature storehouse, the fisrt feature storehouse includes:Multiple keywords are corresponding with each keyword
Score value;
The keyword in the chat message is obtained, if keyword and fisrt feature storehouse in the chat message
In keyword match, then the score value of the score value of the keyword that will be matched as the chat message.
A3, the method as described in A2, wherein, the keyword obtained in the chat message includes:
The chat message is carried out to simplify treatment, including:The insignificant character in the chat message is filtered,
And/or, analog information conversion is carried out to the chat message;
Word segmentation processing is carried out to simplifying the chat message after treatment, extracting this according to word segmentation processing result chats
The keyword of its information.
A4, the method as described in A1, wherein, the chat calculated during the chat message gives out information
The score value of information includes:
Default second feature storehouse, the second feature storehouse includes:Multiple regular expressions and each canonical table
Up to the corresponding score value of formula;
The keyword in the chat message is obtained, if in the content of the chat message and second feature storehouse
Regular expression matches, then the score value of the score value of the regular expression that will be matched as the chat message.
A5, the method as described in A1, wherein, the method is further included:
When the score value summation is more than the second predetermined threshold value, the chat message is given out information included use
Family mark is put into closing list;
Chat message for being currently received gives out information, and judges that the chat message is included in giving out information
ID whether in list is closed, be then, directly to filter the chat message and give out information.
A6, the method as described in A5, wherein, it is described that the chat message gives out information included use
Family mark is put into closes list and includes:User mark is set according to the corresponding score value summation of the ID
That knows closes the time;
Then the method is further included:For being put into each ID closed in list, should when meeting
ID is corresponding when closing the time, and the ID is deleted from list is closed.
A7, the method as described in A1, wherein, the chat message gives out information and further includes:
Issuing time information;
When the score value summation is not less than the second predetermined threshold value, the method is further included:
Obtained from chat message database and given out information included ID corresponding to the chat message
Issuing time information;
The corresponding use of the ID in default measurement period is calculated according to acquired each issuing time information
The average time interval of the chat message that family sends, when the average time interval is less than predetermined time period,
Filter the chat message to give out information, and the user is represented be put into and close list;
When the average time interval is not less than predetermined time period, in being given out information according to the chat message
Scope of release information the chat message given out information push to corresponding each client.
A8, the method as any one of A1-A7, wherein, the method is further included:
The chat message report message that client sends, every chat message report are received by data-interface
Message includes:The ID reported, the chat message reported;
Chat message for being currently received reports message, calculates the quilt in chat message report message
The score value of the chat message of report, when the score value of the chat message reported is more than the first predetermined threshold value,
Delete the record of the chat message reported;
When the score value of the chat message reported is not less than the first predetermined threshold value, chat message number is calculated
According to the score value of the chat message for corresponding to the ID reported in chat message report message in storehouse
Summation, when the score value summation is more than the second predetermined threshold value, deletes the record of the chat message reported,
And during the ID reported accordingly is put into closes list.
The invention also discloses B9, a kind of processing server of chat message, wherein, the server includes:
Information receiving unit, the chat message issue for being suitable to receive each client transmission by data-interface disappears
Breath;Every chat message gives out information and includes:ID, chat message, scope of release information;
It is saved in the ID is corresponding with chat message in chat message database;
Information process unit, is suitable to be given out information for the chat message being currently received, and calculates the chat
Information give out information in chat message score value, when the score value of the chat message is more than the first predetermined threshold value
When, filter the chat message and give out information;When the score value of the chat message is not less than the first predetermined threshold value,
The chat of the included ID that given out information corresponding to the chat message in calculating chat message database
The score value summation of information, when the score value summation is more than the second predetermined threshold value, filters chat message issue
Message;When the score value summation is not less than the second predetermined threshold value, in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by scope of release information.
B10, the server as described in B9, wherein,
Information process unit, is suitable to default fisrt feature storehouse, and the fisrt feature storehouse includes:Multiple is closed
Key word and the corresponding score value of each keyword;The keyword in the chat message is obtained, if the chat message
In keyword match with the keyword in fisrt feature storehouse, then the score value of the keyword that will be matched is made
It is the score value of the chat message.
B11, the server as described in B10, wherein,
Information process unit, is suitable to the chat message is carried out to simplify treatment, including:Filter chat letter
Insignificant character in breath, and/or, analog information conversion is carried out to the chat message;Process simplifying
Chat message afterwards carries out word segmentation processing, and the keyword of the chat message is extracted according to word segmentation processing result.
B12, the server as described in B9, wherein,
Information process unit, is suitable to default second feature storehouse, and the second feature storehouse includes:Multiple is just
Then expression formula and the corresponding score value of each regular expression;The keyword in the chat message is obtained, if should
The content of chat message matches with the regular expression in second feature storehouse, then the canonical table that will be matched
Up to formula score value as the chat message score value.
B13, the server as described in B9, wherein,
Information process unit, is further adapted for, when the score value summation is more than the second predetermined threshold value, this being chatted
Its information gives out information during included ID is put into and closes list;For the chat being currently received
Information gives out information, and judges whether the ID that the chat message is included in giving out information is closing list
In, it is then, directly to filter the chat message and give out information.
B14, the server as described in B13, wherein,
Information process unit, is suitable to set the ID according to the corresponding score value summation of the ID
Close the time;
Information process unit, is further adapted for for being put into each ID closed in list, when full
The ID is corresponding for foot when closing the time, and the ID is deleted from list is closed.
B15, the server as described in B9, wherein, the chat message gives out information and further includes:
Issuing time information;
Information process unit, is further adapted for when the score value summation is not less than the second predetermined threshold value, from merely
When the issue of the included ID that given out information corresponding to the chat message is obtained in its information database
Between information;ID correspondence in default measurement period is calculated according to acquired each issuing time information
The average time interval of chat message that sends of user, when the average time interval is long less than Preset Time
When spending, filter the chat message and give out information, and the user is represented be put into and close list;When this is flat
When equal time interval is not less than predetermined time period, the scope of release in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by information.
B16, the server as any one of B9-B15, wherein,
Information receiving unit, is further adapted for receiving the chat message act that client sends by data-interface
Report message, every chat message report message includes:The ID reported, the chat reported
Information;
Information process unit, is further adapted for reporting message for the chat message being currently received, and calculates
The score value of the chat message reported in chat message report message, when the chat message that this is reported
Score value more than the first predetermined threshold value when, delete the record of the chat message reported;When this is reported
Chat message score value not less than the first predetermined threshold value when, calculate chat message database in correspond to should
The score value summation of the chat message of the ID reported in chat message report message, when the score value
When summation is more than the second predetermined threshold value, the record of the chat message reported is deleted, and will quilt accordingly
The ID of report is put into closing list.
Claims (10)
1. a kind of processing method of chat message, wherein, the method includes:
The chat message for receiving each client transmission by data-interface gives out information;Every chat message hair
Cloth message includes:ID, chat message, scope of release information;By the ID and merely
Its information correspondence is saved in chat message database;
Chat message for being currently received gives out information, and calculates chatting during the chat message gives out information
The score value of its information, when the score value of the chat message is more than the first predetermined threshold value, filters the chat message
Give out information;
It is right in calculating chat message database when the score value of the chat message is not less than the first predetermined threshold value
Should in the chat message give out information included ID chat message score value summation, when this point
When value summation is more than the second predetermined threshold value, filters the chat message and give out information;
When the score value summation is not less than the second predetermined threshold value, the hair in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by cloth range information.
2. during the method for claim 1, wherein described calculating chat message gives out information
The score value of chat message includes:
Default fisrt feature storehouse, the fisrt feature storehouse includes:Multiple keywords are corresponding with each keyword
Score value;
The keyword in the chat message is obtained, if keyword and fisrt feature storehouse in the chat message
In keyword match, then the score value of the score value of the keyword that will be matched as the chat message.
3. method as claimed in claim 2, wherein, the keyword bag obtained in the chat message
Include:
The chat message is carried out to simplify treatment, including:The insignificant character in the chat message is filtered,
And/or, analog information conversion is carried out to the chat message;
Word segmentation processing is carried out to simplifying the chat message after treatment, extracting this according to word segmentation processing result chats
The keyword of its information.
4. during the method for claim 1, wherein described calculating chat message gives out information
The score value of chat message includes:
Default second feature storehouse, the second feature storehouse includes:Multiple regular expressions and each canonical table
Up to the corresponding score value of formula;
The keyword in the chat message is obtained, if in the content of the chat message and second feature storehouse
Regular expression matches, then the score value of the score value of the regular expression that will be matched as the chat message.
5. the method for claim 1, wherein the method is further included:
When the score value summation is more than the second predetermined threshold value, the chat message is given out information included use
Family mark is put into closing list;
Chat message for being currently received gives out information, and judges that the chat message is included in giving out information
ID whether in list is closed, be then, directly to filter the chat message and give out information.
6. method as claimed in claim 5, wherein, the described chat message gives out information is included
ID be put into and close list and include:The use is set according to the corresponding score value summation of the ID
What family identified closes the time;
Then the method is further included:For being put into each ID closed in list, should when meeting
ID is corresponding when closing the time, and the ID is deleted from list is closed.
7. the method for claim 1, wherein the chat message is further wrapped in giving out information
Include:Issuing time information;
When the score value summation is not less than the second predetermined threshold value, the method is further included:
Obtained from chat message database and given out information included ID corresponding to the chat message
Issuing time information;
The corresponding use of the ID in default measurement period is calculated according to acquired each issuing time information
The average time interval of the chat message that family sends, when the average time interval is less than predetermined time period,
Filter the chat message to give out information, and the user is represented be put into and close list;
When the average time interval is not less than predetermined time period, in being given out information according to the chat message
Scope of release information the chat message given out information push to corresponding each client.
8. the method as any one of claim 1-7, wherein, the method is further included:
The chat message report message that client sends, every chat message report are received by data-interface
Message includes:The ID reported, the chat message reported;
Chat message for being currently received reports message, calculates the quilt in chat message report message
The score value of the chat message of report, when the score value of the chat message reported is more than the first predetermined threshold value,
Delete the record of the chat message reported;
When the score value of the chat message reported is not less than the first predetermined threshold value, chat message number is calculated
According to the score value of the chat message for corresponding to the ID reported in chat message report message in storehouse
Summation, when the score value summation is more than the second predetermined threshold value, deletes the record of the chat message reported,
And during the ID reported accordingly is put into closes list.
9. a kind of processing server of chat message, wherein, the server includes:
Information receiving unit, the chat message issue for being suitable to receive each client transmission by data-interface disappears
Breath;Every chat message gives out information and includes:ID, chat message, scope of release information;
It is saved in the ID is corresponding with chat message in chat message database;
Information process unit, is suitable to be given out information for the chat message being currently received, and calculates the chat
Information give out information in chat message score value, when the score value of the chat message is more than the first predetermined threshold value
When, filter the chat message and give out information;When the score value of the chat message is not less than the first predetermined threshold value,
The chat of the included ID that given out information corresponding to the chat message in calculating chat message database
The score value summation of information, when the score value summation is more than the second predetermined threshold value, filters chat message issue
Message;When the score value summation is not less than the second predetermined threshold value, in being given out information according to the chat message
The chat message is given out information and pushes to corresponding each client by scope of release information.
10. server as claimed in claim 9, wherein,
Information process unit, is suitable to default fisrt feature storehouse, and the fisrt feature storehouse includes:Multiple is closed
Key word and the corresponding score value of each keyword;The keyword in the chat message is obtained, if the chat message
In keyword match with the keyword in fisrt feature storehouse, then the score value of the keyword that will be matched is made
It is the score value of the chat message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510984846.8A CN106921556A (en) | 2015-12-24 | 2015-12-24 | The processing method and server of a kind of chat message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510984846.8A CN106921556A (en) | 2015-12-24 | 2015-12-24 | The processing method and server of a kind of chat message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106921556A true CN106921556A (en) | 2017-07-04 |
Family
ID=59457430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510984846.8A Pending CN106921556A (en) | 2015-12-24 | 2015-12-24 | The processing method and server of a kind of chat message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106921556A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900466A (en) * | 2018-05-30 | 2018-11-27 | 北京五八信息技术有限公司 | Prevent processing method, device, server and the storage medium of fallacious message |
CN108970123A (en) * | 2018-07-16 | 2018-12-11 | 网易(杭州)网络有限公司 | The sending method of interference information and device, electronic equipment in game |
CN110224925A (en) * | 2019-05-22 | 2019-09-10 | 维沃移动通信有限公司 | Message management and mobile terminal |
CN111181835A (en) * | 2019-10-17 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Message monitoring method, system and server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075980A (en) * | 2006-07-26 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for filtering information in telecommunication system |
CN101114286A (en) * | 2006-07-26 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Method and system for filtering chat chamber advertisement |
CN101309280A (en) * | 2008-06-23 | 2008-11-19 | 华为技术有限公司 | Information filtering server, method, system and terminal |
CN101534261A (en) * | 2009-04-10 | 2009-09-16 | 阿里巴巴集团控股有限公司 | A method, device and system of recognizing spam information |
-
2015
- 2015-12-24 CN CN201510984846.8A patent/CN106921556A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075980A (en) * | 2006-07-26 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for filtering information in telecommunication system |
CN101114286A (en) * | 2006-07-26 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Method and system for filtering chat chamber advertisement |
CN101309280A (en) * | 2008-06-23 | 2008-11-19 | 华为技术有限公司 | Information filtering server, method, system and terminal |
CN101534261A (en) * | 2009-04-10 | 2009-09-16 | 阿里巴巴集团控股有限公司 | A method, device and system of recognizing spam information |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900466A (en) * | 2018-05-30 | 2018-11-27 | 北京五八信息技术有限公司 | Prevent processing method, device, server and the storage medium of fallacious message |
CN108970123A (en) * | 2018-07-16 | 2018-12-11 | 网易(杭州)网络有限公司 | The sending method of interference information and device, electronic equipment in game |
CN110224925A (en) * | 2019-05-22 | 2019-09-10 | 维沃移动通信有限公司 | Message management and mobile terminal |
CN111181835A (en) * | 2019-10-17 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Message monitoring method, system and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lam et al. | Involuntary information leakage in social network services | |
Van Bel et al. | Social connectedness: concept and measurement | |
CN105550551B (en) | Cipher processing method and equipment and password prompt method and apparatus | |
CN106921556A (en) | The processing method and server of a kind of chat message | |
WO2019076017A1 (en) | Feedback information processing method and apparatus, terminal device and medium | |
US11157875B2 (en) | Address extraction from a communication | |
CN106302534B (en) | A kind of method and system of detection and processing illegal user | |
CN105516192B (en) | A kind of mail address is safe to identify control method and device | |
KR20100130003A (en) | Apparatus and method for providing online social network service | |
Newton et al. | Making sense of the latest evidence on electronic cigarettes | |
Yang et al. | Anatomy of an AI-powered malicious social botnet | |
CN105721288A (en) | Online accurate communication system and method thereof | |
González-Cabañas et al. | Unique on Facebook: formulation and evidence of (nano) targeting individual users with non-PII data | |
CN109947814A (en) | Method and apparatus for the abnormal data group in detection data set | |
CN108875069A (en) | A kind of marriage and making friend's matching process and device based on telecommunications big data | |
JP6363806B2 (en) | Abuse detection for phone number search | |
US20150019568A1 (en) | Identifying word-of-mouth influencers using topic modeling and interaction and engagement analysis | |
CN105490913B (en) | Instant message processing method and device | |
CN105208094B (en) | A kind of message informing method and messaging systems | |
KR20130091391A (en) | Server and method for recommending contents, and recording medium storing program for executing method of the same in computer | |
Dihyat et al. | Detecting Ideal Instagram Influencer Using Social Network Analysis | |
Tripathi et al. | A study on characterizing the ecosystem of monetizing video spams on youtube platform | |
CN110084577A (en) | Resource payment method and equipment | |
CN104202318A (en) | Method, client and system for keeping away a phishing behavior | |
JP2020135673A (en) | Contribution evaluation system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170704 |