When it is implemented, the name of the enterprise can be referred to as domain name in the network linking resource of an enterprise, into
And determine that the keyword of the network linking resource of the enterprise is the title of the enterprise, in the feelings for collecting the enterprise network link resources
Under condition, collection label can be the title of the enterprise.
In practical application, in the case where the session segment includes link resources type, and the link resources type
Corresponding link resources are www.123.com, which is the network linking resource of B enterprise, as example, to determining institute
The keyword for stating the resource for including in session segment is described, right in the case where determining link resources is www.123.com
The domain name answered is B enterprise, " B enterprise " is determined as the keyword of the link resources, then the resource that session segment includes
Keyword is " B enterprise ".
In the case that resource type in the session segment includes link resources type, by obtaining link resources
Keyword of the domain name as the link resources for including in the session segment, the meeting can more accurately be determined by realizing
The keyword for the link resources for including in words segment, and the process of the collection label in the subsequent determination resource to be processed
In, the selection of more collection labels can be provided for the communication user.
In one or more embodiments of the present embodiment, include the case where video resource type in the resource type
Under, the selection and the matched algorithm of the resource type extract the keyword for the resource for including in the session segment, wrap
It includes:
Obtain the video image of adjacent two frame in the corresponding video resource of the video resource type;
The difference of the gray level image of the video image of adjacent two frame is calculated, and judges whether the difference is greater than first
Predetermined movement threshold value and less than the second predetermined movement threshold value;
If so, identifying type of action belonging to the object moved in the video resource, and the type of sports is determined
Keyword for the resource for including in the session segment;
If it is not, it is without any processing, or can be according to the chat in instant communication applications about video resource
Content determines the keyword of the video resource, and then determines the keyword for the resource for including in the session segment.
Specifically, in the case that the resource type in the session segment comprising resource includes video resource type, it is first
The video image of adjacent two frame in the corresponding video resource of the video resource type is first obtained, then calculates adjacent two frames video
The gray level image difference of image judges whether to be greater than the first predetermined movement threshold value and less than the second predetermined movement according to the difference
Threshold value, the first predetermined movement threshold value are to judge that whether object occurs movement in the video resource, and it is default to be greater than described first
Movement threshold then illustrates the object of which movement in video resource, and the second predetermined movement threshold value is to judge object in the video resource
Whether another object is become, and it is another then to illustrate that the object in video resource is unchanged as less than the second predetermined movement threshold value
A object;Illustrate that video provides if the difference is greater than the first predetermined movement threshold value and less than the second predetermined movement threshold value based on this
It is that an object is moving in source, then the affiliated type of sports of the object of the movement is identified, using the type of sports as described in
The keyword for the resource for including in session segment if the difference is less than or equal to first movement threshold, or is greater than
Second movement threshold, illustrate the object in video resource do not move or video in visual angle change from an object
For the visual angle of another object, then the type of object can be identified, using the type of the object as in the session segment
The keyword for the resource for including.
Wherein, the first predetermined movement threshold value is less than the second predetermined movement threshold value, and described first is default
Movement threshold and the second predetermined movement threshold value are set according to practical application scene, and the application does not do any limit herein
It is fixed.
Herein, the keyword for the corresponding video resource of video resource type for including in it can not determine the session segment
In the case where, the video in the session segment included money can be referred to as according to the name for the communication user for sending the video resource
The keyword in source;In addition to this it is possible to use phone number, remarks title of communication user for sending video resource etc. as institute
The keyword for stating the video resource for including in session segment does not do any restriction to this application.
In practical application, in the case where the session segment includes video resource type, the video resource type pair
The video resource answered is the video of one section of people running, as example, the resource for including in the determination session segment
Keyword is described, and obtains and appoints two adjacent frame video images in this section of video resource, determines two adjacent frames according to calculating
The gray level image difference of video image is greater than the first predetermined movement threshold value and less than the second predetermined movement threshold value, identifies that this section regards
The affiliated type of sports of moving object is running in frequency resource, and " running " is determined as to the keyword of this section of video resource, then can
The keyword for the resource that words segment includes is " running ".
In the case that resource type in the session segment includes video resource type, by obtaining video resource
The video pictures of adjacent two frame, judge whether the gray scale difference value of adjacent two frame video image is greater than the first predetermined movement threshold value
And it is less than the second predetermined movement threshold value, if so, the affiliated type of sports of moving object in the video resource is true
It is set to the keyword of the video resource in the session segment included, realizing can more accurately determine in the session segment
The keyword for the video resource for including, and during the collection label of the subsequent determination resource to be processed, Neng Gouwei
The communication user provides the selection of more collection labels.
On the basis of the above-mentioned keyword for extracting the resource to be collected in the session segment, further, this
In one or more embodiments of embodiment, by determining resource to be extracted associated with the resource to be collected, for institute
Resource type matching algorithm belonging to resource to be extracted is stated, and then determines the keyword of resource to be collected, concrete implementation mode
It is as described below:
According to described wait collect the session segment belonging to resource, determine in the session segment with described wait collect money
The associated resource to be extracted in source;
According to resource type belonging to the resource to be extracted, selection and the matched algorithm of the resource type to it is described to
It extracts resource and extracts the keyword;
Using the keyword of the resource to be extracted of extraction as the keyword of the resource to be collected.
Specifically, determine the resource to be extracted associated with the resource to be collected in the session segment, it is described
Resource to be extracted can be communication user in instant messaging application to the description content of the resource to be collected either
The session content linked up between communication user;Based on this, according to resource type belonging to the resource to be extracted, selection with it is described
The matched algorithm of the resource type of resource to be extracted extracts keyword to the resource to be extracted, by the key of extraction
Keyword of the word as the resource to be collected.
It herein, include picture resource, textual resources, link resources, video money in the resource type of the resource to be extracted
In the case where the resource types such as source, the process of the keyword of the resource to be extracted is extracted, may refer to above-mentioned in the session
Resource in segment includes the process that the resource types such as picture resource, textual resources, link resources, video resource extract keyword
Description content, the application do not repeating herein.
On the basis of the above-mentioned keyword for extracting the resource to be collected in the session segment, further, this
In one or more embodiments of embodiment, in the case where in the session segment only including resource to be collected, institute is determined
The keyword of resource to be collected is stated, concrete implementation mode is as described below:
According to described wait collect the session segment belonging to resource, determine that the session segment is the resource to be collected
In the case where, determine the resource type of the resource to be collected;
Resource type based on the resource to be collected is selected with the matched algorithm of the resource type to described wait collect
Resource extracts keyword, the keyword as the resource to be collected.
Specifically, in the case where only including the resource to be collected in the session segment, it is first determined described due-in
The resource type of hiding resource is finally mentioned according to matched algorithm further according to the resource type matching algorithm of the resource to be collected
Take the keyword of the resource to be collected as the keyword of the resource to be collected.
It herein, is the resource types such as picture resource, textual resources, link resources or video resource in the resource to be collected
In the case where, the process of the keyword of the resource to be collected is extracted, may refer to the above-mentioned resource in the session segment
The description content of the process of keyword is extracted including resource types such as picture resource, textual resources, link resources, video resources,
The application is not repeating herein.
During extracting the resource to be collected in the session segment, can include according in the session segment
Resource type matching algorithm, and then the keyword for extracting the resource for including in the session segment is realized, by the session
Keyword of the keyword for the resource for including in segment as the resource to be collected is realized described logical in the process
Interrogate user collection resource to be collected be any type resource in the case where, can automatically generate with it is described resource matched wait collect
Keyword, and the collection label as resource to be collected described in subsequent collection improves the experience effect of the communication user.
On the basis of the keyword of the resource to be collected described in the above-mentioned determination, further, one or more of the present embodiment
In a embodiment, determine the keyword of the resource to be collected there are it is multiple in the case where, need according to communication use
The selection instruction at family selects a keyword as the keyword of the resource to be collected, and concrete implementation mode is as described below:
The keyword of the resource to be collected there are it is multiple in the case where, calculate the word frequency of each keyword;
According to each keyword word frequency from high to low sequential selection setting number keyword construct keyword set;
According to the selection instruction of the communication user, select the keyword for including in the keyword set as it is described to
Collect the keyword of resource.
Specifically, the keyword of the resource to be collected there are it is multiple in the case where, it is understood that there may be some keywords with
The incidence relation of the resource to be collected is not strong enough, in the case, by calculating the word frequency of each keyword, and will calculate word
Keyword after frequency is ranked up according to the size sequence from high to low of word frequency, with successively since the highest keyword of word frequency
The mode successively decreased selects the keyword building keyword set of setting number, will set number present in the keyword set
Keyword be pushed to the communication user, in the case where the communication user collects the resource to be collected, according to institute
The selection instruction for stating communication user, select in the keyword set there are at least one keyword as described wait collect money
The keyword in source.
In practical application, in case where the resource to be collected of communication user collection is textual resources, to for institute
The process for stating resource selection keyword to be collected is described, wherein communication user collection resource text resource to be collected be
One article about football, the keyword extracted include " football ", " score ", " time ", " football report ", " home court ",
" visiting field ", " coach " and " sportsman " respectively obtains " football " word by calculating the frequency of each keyword in the football article
Frequency is 0.2, and " score " word frequency is 0.25, and " time " word frequency is 0.1, and " football report " word frequency is 0.6, and " home court " word frequency is 0.3,
" visiting field " word frequency is 0.3, and " coach " word frequency is 0.28, and " sportsman " word frequency is 0.29, is carried out according to the size of word frequency to keyword
Sequence, key sequence after sequence is " football report ", " home court ", " home court ", " sportsman ", " coach ", " score ", " enough
Ball ", " time " select 3 keyword building keyword sets, then keyword set is combined into (football report, home court, visiting field), will
This 3 keywords are pushed to the communication user for collecting the football article, and according to the selection instruction of communication user, have selected " foot
Keyword of the ball report " as the football article.
In the resource to be collected there are in the case where multiple keywords, can select to set according to the word frequency of each keyword
Fixed number purpose keyword constructs keyword set, is pushed to the communication user, realizing can provide for the communication user
More selections allow the communication user to select one or more keywords as described in the keyword set
The keyword of resource to be collected can deepen the communication and use during the resource to be collected of communication user selection
Memory of the family to the keyword of the resource to be collected.
The resource to be collected described in the above-mentioned determination is there are on the basis of multiple keywords, further, the one of the present embodiment
In a or multiple embodiments, before the word frequency for calculating each keyword, need to construct keyword character library, concrete implementation side
Formula is as described below:
The keyword of the resource to be collected there are it is multiple in the case where, multiple keys based on the resource to be collected
Word creates keyword character library;
Calculate the word frequency for each keyword for including in the keyword character library.
Specifically, the keyword of the resource to be collected there are it is multiple in the case where, based on the resource to be collected
Multiple keywords create keyword character library, and the keyword character library can be the database for storing the keyword, or number
According to dictionary, then calculate the word frequency of each keyword in the keyword character library;Based on this, the keyword character library it is preferred
The mode for storing keyword is stored by keyword dictionary, by the way that the multiple keyword is created keyword dictionary,
Convenient use in the follow-up process, and real-time dilatation can be carried out, memory space is distributed automatically.
Step 106: using the keyword as the collection label of the resource to be collected, the resource to be collected being carried out
Collection.
Specifically, on the basis of by the keyword of resource to be collected described in above-mentioned determination, it further, will be described due-in
Collection label of the keyword of resource as the collection resource to be collected is hidden, in the case where collecting the resource to be collected,
The collection label and the resource to be collected are collected together, and be collected in instant messaging application it is described to
Collect the collection label of the mark of resource.
The resource to be collected described in the above-mentioned determination passes through the selection of the communication user there are in the case where multiple keywords
Instruction, on the basis of selecting keyword of the keyword as the resource to be collected in the keyword set, further,
In one or more embodiments of the present embodiment, collection label is selected according to selection instruction, specific implementation is as described below:
Select the keyword for including in the keyword set as the resource to be collected according to the selection instruction
Label is collected, the resource to be collected is collected.
Specifically, selecting the keyword for including in the keyword set to make according to the selection instruction of the communication user
For the collection label of the resource to be collected, the resource to be collected is collected.
It in addition to this, include simultaneously textual resources, picture resource, video resource, link resources etc. in the session segment
In the case where more resources, and the corresponding keyword of determining each resource determines in the case where failing, can be according to session piece
The session content of communication user described in section determines that the keyword of resource to be collected avoids communication user from receiving in the case
The case where hiding is described when collecting resource, no available collection label occurs.
Also, in the case where the communication user collects the resource to be collected, if recommending the communication user
Needed for collection label has no the communication user, the communication user can be in the collection for collecting the resource to be collected
In, it carries out manual editing and collects label, the collection label as the resource to be collected.
It is still one about football with the textual resources of the resource to be collected of above-mentioned communication user collection in practical application
For article, the process collected to selection collection label to the resource to be collected is described, wherein keyword set
For (football report, home court, visiting field), the selection instruction of communication user is to select " football report " as the key of the football article
Word, then during collecting the football article, communication user selects the collection label of " football report " as the football article,
The football article is collected.
During collecting the resource to be collected, multiple collection marks to be selected can be provided for the communication user
Label, the communication user can choose and wait collect resource matched collection label as the collection for collecting the resource to be collected
Label collects the resource to be collected, and has deepened communication user collection collection mark when collecting resource
The memory of label.
On the basis of collecting to the resource to be collected, further, the one or more of the present embodiment implement
In mode, in the case where the communication user needs to cache the resource to be collected, specific implementation is as described below:
Resource to be collected described in the collection label will be carried to store to network data base;
In the case where the communication user inquires the resource to be collected, taken according to the inquiry instruction of the communication user
The collection label of band is matched in the network data base;
The resource to be collected of the collection tag match carried in the network data base with the inquiry instruction is delayed
It deposits.
Specifically, the resource to be collected for carrying the collection label is stored to network data base, the network data
Library is the database that collection function in instant messaging application stores resource to be collected, and is based on this, the communication user is logical
In the case where crossing collection label and inquire resource to be collected in instant messaging application, collection label that communication user is provided
Matched with the collection label in network data base, by the resource to be collected of the collection tag match provided with communication user into
Row caching, then the resource to be collected cached is needed for the communication user.
Resource collecting method in instant messaging provided by the present application collects the feelings of the resource to be collected in communication user
Under condition, keyword is extracted according to the session content in instant messaging application, using the keyword of extraction as described wait collect
The collection label of resource, and there are multiple keywords, it can be pushed for the communication user multiple wait select
Collection label at least one collection in multiple collection labels to be selected is selected according to the selection instruction of the communication user
Label is providing multiple collection labels to be selected as the collection label for collecting the resource to be collected for the communication user
In the case where, the process of a selection collection label is increased for the communication user, can deepen communication user to the receipts
The memory for hiding label, improves the experience effect of communication user, by automatically generating collection label to the resource to be collected,
The collection label is collected when collecting resource and collecting together to described, facilitates and is searched in the communication user
When collecting resource, according to collection label can search resource to be collected, improve communication user search for or browse it is due-in
Hide efficiency when resource.
Following combination attached drawings 2 and attached drawing 3, with the resource collecting method in instant messaging provided by the present application in collection picture
For the application of resource, the resource collecting method in the instant messaging is further described.Wherein, Fig. 3 shows this
The processing schematic for applying for the resource collection process in a kind of instant messaging of embodiment offer, specifically includes Fig. 3 (a) and figure
3(b);The process flow diagram of resource collection process in a kind of instant messaging provided Fig. 2 shows one embodiment of the application, tool
Body step includes step 202 to step 224.
Step 202: the resource to be collected in the session content for determining instant messaging application is instructed according to the collection of user A.
Determined referring to Fig. 3 (a), user A needs the screenshot of associate's list, user B according to the demand of user A,
The screenshot that an associate is sent to user A, after sending screenshot, user B illustrates that picture is associate's name to user A
Single screenshot, the thanks that user A indicates this.
Based on this, user A in order to prevent lose by associate's list screenshot, collects to staff list screenshot, then public
Department's staff list screenshot is resource to be collected.
Step 204: determine that resource to be collected is picture resource type according to the session content of user A and user B, and it is due-in
The hiding associated resource to be extracted of resource is textual resources type.
Step 206: word segmentation processing being carried out to textual resources, obtains multiple keywords of textual resources.
It being determined referring to Fig. 3 (a), textual resources include: " the staff list screenshot an of company is sent to me ", " it is good, it asks
Wait ", " you check down that this is the staff list screenshot of company ", " good, having what problem, I is looking for you, thanks " and " no
It is courteous ".
Based on this, word segmentation processing is carried out to textual resources, the keyword for obtaining textual resources includes: " company ", " personnel's name
It is single ", " screenshot " and " problem ".
Step 208: calculating the keyword score of multiple keywords of textual resources.
Specifically, the keyword of textual resources includes: " company ", " staff list ", " screenshot " and " problem ".
Based on this, the keyword score of " company " is 0.4, and the keyword score of " staff list " is 0.8, the pass of " screenshot "
Keyword scoring is 0.5, and the keyword score of " problem " is 0.1.
Step 210: selecting keyword of the highest keyword of keyword score as resource to be extracted.
Specifically, the keyword score that the keyword score of textual resources is " company " is 0.4, the key of " staff list "
Word scoring is 0.8, and the keyword score of " screenshot " is 0.5, and the keyword score of " problem " is 0.1.
Based on this, the highest keyword of keyword score is " staff list ", then is determined as " staff list " to be extracted
The keyword of resource.
Step 212: identification picture resource determines in picture resource comprising text information.
Determined referring to Fig. 3 (a), picture resource be associate's list screenshot (in instant communication applications, transmission
Format size list picture size as shown in Fig. 3 (a) of picture, when opening the staff list picture, it will show whole
The content of picture), wherein text information includes name: first ... phone: 123 ... departments: Human Resources Department ..., by picture
Resource opens the details that will show company other staff, and the application is no longer described in detail herein.
Step 214: being analyzed and processed by text information of the semantic analysis algorithm to picture resource, obtain text information
Keyword.
Specifically, being analyzed and processed by semantic analysis algorithm to text information, the keyword packet of text information is obtained
It includes: " name ", " phone " and " department ".
Step 216: using the keyword of text information as the keyword of resource to be collected.
Specifically, resource to be collected is picture resource, the keyword of picture resource is " name ", " phone " and " department ".
Based on this, the keyword of resource to be collected includes: " name ", " phone " and " department ".
Step 218: the keyword of acquisition being integrated, and calculates the word frequency of each keyword.
Specifically, the keyword after integration includes: " staff list ", " name ", " phone " and " department ".
Based on this, the word frequency of each keyword is calculated separately, the word frequency of " staff list " is 0.7, and the word frequency of " name " is
0.5, the word frequency of " phone " is 0.4, and the word frequency of " department " is 0.2.
Step 220: successively selecting three keywords as collection mark to be selected since the word frequency of keyword is highest
Label.
Specifically, determining that highest three keywords of word frequency are " staff list ", " surname according to the word frequency of each keyword
Name " and " phone ".
Based on this, " staff list ", " name " and " phone " is pushed to user A for it as collection label to be selected
Selection.Referring to Fig. 3 (b), after user A submits collection instruction, illustrated in the conversation page of instant communication applications three to
The collection label of selection.
Step 222: according to the selection instruction of user A, selecting the collection label of " staff list " as resource to be collected.
Specifically, the selection instruction according to user A in instant communication applications, has selected three to collect in label wait select
" staff list ", as the collection label of associate's list screenshot.
Step 224: the resource to be collected for carrying collection label " staff list " is collected.
Resource collecting method in instant messaging provided by the present application, in the case where user collects resource to be collected, root
According to instant messaging apply in session content extract keyword, using the keyword of extraction as the collection label of resource to be collected,
And there are multiple keywords, multiple collection labels to be selected can be pushed for user, according to the choosing of user
Instruction is selected, at least one in multiple collection labels to be selected is selected to collect label as the collection mark for collecting resource to be collected
Label increase the mistake that label is collected in a selection in the case where providing multiple collection labels to be selected for user for user
Journey can deepen memory of the user to collection label, improve the experience effect of communication user, automatic by treating collection resource
Collection label is generated, collection label is collected together when treating collection resource and being collected, facilitates and is searched in user
When collecting resource, according to collection label can search resource to be collected, improve communication user search for or browse it is due-in
Hide efficiency when resource.
It is corresponding with above method embodiment, present invention also provides the resource holding device fo embodiment in instant messaging,
Fig. 4 shows the structural schematic diagram of the resource holding device fo in a kind of instant messaging of one embodiment of the application offer.Such as Fig. 4 institute
Show, which includes:
It determines resource module 402 to be collected, is configured as instructing determining instant messaging application according to the collection of communication user
Session content in resource to be collected;
Keyword module 404 is extracted, the meeting affiliated in the session content according to the resource to be collected is configured as
Segment is talked about, the keyword of the resource to be collected is extracted in the session segment;
Resource module 406 to be collected is collected, is configured as using the keyword as the collection mark of the resource to be collected
Label, collect the resource to be collected.
In an optional embodiment, the extraction keyword module 404, comprising:
First determines resource type unit, is configured as according to described wait collect the session segment belonging to resource, really
The corresponding resource type of resource for including in the fixed session segment;
Keyword unit is extracted, selection and the matched algorithm of the resource type is configured as, extracts the session segment
In include resource keyword;
First determines keyword unit, is configured as the keyword for the resource for including in the session segment as described in
The keyword of resource to be collected.
In an optional embodiment, in the case where the resource type includes textual resources type, the extraction is closed
Keyword unit, comprising:
Word segmentation processing submodule is configured as carrying out word segmentation processing to the corresponding textual resources of the textual resources type,
Obtain multiple keywords of the textual resources;
Keyword score submodule is calculated, the multiple keywords for being configured as calculating the textual resources are provided in the text
Keyword score in source;
First determines keyword submodule, is configured as the key of the highest textual resources of the keyword score
Keyword of the word as the resource for including in the session segment.
In an optional embodiment, in the case where the resource type includes picture resource type, the extraction is closed
Keyword unit, comprising:
It identifies submodule, is configured as identifying the corresponding picture resource of the picture resource type, according to identification
As a result whether judge in the picture resource comprising text information;
If so, text information submodule is extracted in operation;
The extraction text information submodule, is configured as extracting the text information from the picture resource, and lead to
It crosses semantic analysis algorithm to be analyzed and processed the text information, obtains the keyword of the text information;
Second determines keyword submodule, is configured as using the keyword of the text information as in the session segment
The keyword for the resource for including;
In an optional embodiment, in the case where the resource type includes link resources type, the extraction is closed
Keyword unit, comprising:
It determines domain name submodule, is configured as determining institute according to the corresponding link resources of the link resources type
State the domain name of link resources;
Third determines keyword submodule, is configured as using the domain name as the money for including in the session segment
The keyword in source.
In an optional embodiment, in the case where the resource type includes video resource type, the extraction is closed
Keyword unit, comprising:
Video image submodule is obtained, is configured as obtaining adjacent two in the corresponding video resource of the video resource type
The video image of frame;
Calculating difference submodule is configured as calculating the difference of the gray level image of the video image of adjacent two frame, and
Judge whether the difference is greater than the first predetermined movement threshold value and less than the second predetermined movement threshold value;
If so, operation the 4th determines keyword submodule;
Described 4th determines keyword submodule, is configured as identifying belonging to the object moved in the video resource and moving
Make type, and the keyword for the resource that the type of sports is determined as in the session segment including.
In an optional embodiment, the extraction keyword module 404, comprising:
It determines resource unit to be extracted, is configured as being determined according to described wait collect the session segment belonging to resource
Resource to be extracted associated with the resource to be collected in the session segment;
Selection algorithm unit is configured as the resource type according to belonging to the resource to be extracted, selection and the resource
The algorithm of type matching extracts the keyword to the resource to be extracted;
Second determines keyword unit, is configured as the keyword for the resource to be extracted that will be extracted as described due-in
Hide the keyword of resource.
In an optional embodiment, the extraction keyword module 404, comprising:
Second determines resource type unit, is configured as according to described wait collect the session segment belonging to resource, really
The fixed session segment be it is described wait collect resource in the case where, determine the resource type of the resource to be collected;
Third determines keyword unit, is configured as resource type selection and the resource based on the resource to be collected
The algorithm of type matching extracts keyword to the resource to be collected, the keyword as the resource to be collected.
Resource holding device fo in an optional embodiment, in the instant messaging, further includes:
Calculate word frequency module, be configured as the keyword of the resource to be collected there are it is multiple in the case where, calculate every
The word frequency of a keyword;
Construct keyword set module, be configured as according to each keyword word frequency from high to low sequential selection setting
The keyword of number constructs keyword set;
Keyword module is selected, the selection instruction according to the communication user is configured as, selects the keyword set
In include keyword of the keyword as the resource to be collected.
It is described to collect resource module 406 to be collected and be configured in an optional embodiment:
Select the keyword for including in the keyword set as the resource to be collected according to the selection instruction
Label is collected, the resource to be collected is collected.
In an optional embodiment, the calculating word frequency module, comprising:
Create key word character library unit, be configured as the keyword of the resource to be collected there are it is multiple in the case where,
Multiple keywords based on the resource to be collected create keyword character library;
Word frequency unit is calculated, is configured as calculating the word frequency for each keyword for including in the keyword character library.
Resource holding device fo in an optional embodiment, in the instant messaging, further includes:
Memory module is configured as storing the resource to be collected for carrying the collection label to network data
Library;
Matching module is configured as in the case where the communication user inquires the resource to be collected, according to described logical
The collection label that the inquiry instruction of news user carries matches in the network data base;
Cache module is configured as the collection tag match that will be carried in the network data base with the inquiry instruction
Resource to be collected is cached.
In resource holding device fo in instant messaging provided by the present application, the resource to be collected is collected in communication user
In the case of, keyword is extracted according to the session content in instant messaging application, using the keyword of extraction as described due-in
The collection label of resource is hidden, and there are multiple keywords, can be pushed for the communication user multiple to be selected
The collection label selected selects at least one receipts in multiple collection labels to be selected according to the selection instruction of the communication user
Label is hidden as the collection label for collecting the resource to be collected, is providing multiple collection marks to be selected for the communication user
In the case where label, the process of a selection collection label is increased for the communication user, can deepen communication user to described
The memory for collecting label, improves the experience effect of communication user, by automatically generating collection label to the resource to be collected,
The collection label is collected when collecting resource and collecting together to described, facilitates and is searched in the communication user
Rope when collecting resource, according to collection label can search resource to be collected, improve communication user search for or browse to
Collect efficiency when resource.
The exemplary scheme of resource holding device fo in a kind of above-mentioned instant messaging for the present embodiment.It needs to illustrate
It is the technology of the resource collecting method in the technical solution of the resource holding device fo in the instant messaging and above-mentioned instant messaging
Scheme belongs to same design, the detail content that the technical solution of the resource holding device fo in instant messaging is not described in detail,
Referring to the description of the technical solution of the resource collecting method in above-mentioned instant messaging.
Fig. 5 shows a kind of structural block diagram of the calculating equipment 500 provided according to one embodiment of the application.The calculating equipment
500 component includes but is not limited to memory 510 and processor 520.Processor 520 is connected with memory 510 by bus 530
It connects, database 550 is for saving data.
Calculating equipment 500 further includes access device 540, access device 540 enable calculate equipment 500 via one or
Multiple networks 560 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 540 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of the application, unshowned other component can also in above-mentioned and Fig. 5 of calculating equipment 500
To be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in fig. 5 is merely for the sake of exemplary
Purpose, rather than the limitation to the application range.Those skilled in the art can according to need, and increase or replace other component.
Calculating equipment 500 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 500 can also be mobile or state type
Server.
Wherein, processor 520 is for executing following computer executable instructions:
The resource to be collected in the session content for determining instant messaging application is instructed according to the collection of communication user;
According to the resource to be collected session segment affiliated in the session content, extracted in the session segment
The keyword of the resource to be collected;
Using the keyword as the collection label of the resource to be collected, the resource to be collected is collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine that the resource for including in the session segment is corresponding
Resource type;
Selection and the matched algorithm of the resource type, extract the keyword for the resource for including in the session segment;
Using the keyword for the resource for including in the session segment as the keyword of the resource to be collected.
Optionally, in the case where the resource type includes textual resources type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
Word segmentation processing is carried out to the corresponding textual resources of the textual resources type, obtains multiple passes of the textual resources
Keyword;
Calculate keyword score of the multiple keywords of the textual resources in the textual resources;
Using the keyword of the highest textual resources of the keyword score as the money for including in the session segment
The keyword in source.
Optionally, in the case where the resource type includes picture resource type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
The corresponding picture resource of the picture resource type is identified, the picture resource is judged according to recognition result
In whether include text information;
If so, extracting the text information from the picture resource, and the text is believed by semantic analysis algorithm
Breath is analyzed and processed, and obtains the keyword of the text information;
Using the keyword of the text information as the keyword for the resource for including in the session segment.
Optionally, in the case where the resource type includes link resources type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
According to the corresponding link resources of the link resources type, the domain name of the link resources is determined;
Using the domain name as the keyword for the resource for including in the session segment.
Optionally, in the case where the resource type includes video resource type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
Obtain the video image of adjacent two frame in the corresponding video resource of the video resource type;
The difference of the gray level image of the video image of adjacent two frame is calculated, and judges whether the difference is greater than first
Predetermined movement threshold value and less than the second predetermined movement threshold value;
If so, identifying type of action belonging to the object moved in the video resource, and the type of sports is determined
Keyword for the resource for including in the session segment.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine in the session segment with described wait collect money
The associated resource to be extracted in source;
According to resource type belonging to the resource to be extracted, selection and the matched algorithm of the resource type to it is described to
It extracts resource and extracts the keyword;
Using the keyword of the resource to be extracted of extraction as the keyword of the resource to be collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine that the session segment is the resource to be collected
In the case where, determine the resource type of the resource to be collected;
Resource type based on the resource to be collected is selected with the matched algorithm of the resource type to described wait collect
Resource extracts keyword, the keyword as the resource to be collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
After talking about the keyword instruction execution for extracting the resource to be collected in segment, it is described using the keyword as described in wait collect
The collection label of resource, before carrying out collection instruction execution to the resource to be collected, processor 520 is also used to execute following meter
Calculation machine executable instruction:
The keyword of the resource to be collected there are it is multiple in the case where, calculate the word frequency of each keyword;
According to each keyword word frequency from high to low sequential selection setting number keyword construct keyword set;
According to the selection instruction of the communication user, select the keyword for including in the keyword set as it is described to
Collect the keyword of resource.
Optionally, described using the keyword as the collection label of the resource to be collected, to the resource to be collected
It is collected, comprising:
Select the keyword for including in the keyword set as the resource to be collected according to the selection instruction
Label is collected, the resource to be collected is collected.
Optionally, it is described the keyword of the resource to be collected there are it is multiple in the case where, calculate each keyword
Word frequency, comprising:
The keyword of the resource to be collected there are it is multiple in the case where, multiple keys based on the resource to be collected
Word creates keyword character library;
Calculate the word frequency for each keyword for including in the keyword character library.
Optionally, described using the keyword as the collection label of the resource to be collected, to the resource to be collected
After carrying out collection instruction execution, processor 520 is also used to execute following computer executable instructions:
Resource to be collected described in the collection label will be carried to store to network data base;
In the case where the communication user inquires the resource to be collected, taken according to the inquiry instruction of the communication user
The collection label of band is matched in the network data base;
The resource to be collected of the collection tag match carried in the network data base with the inquiry instruction is delayed
It deposits.
A kind of exemplary scheme of above-mentioned calculating equipment for the present embodiment.It should be noted that the skill of the calculating equipment
The technical solution of resource collecting method in art scheme and above-mentioned instant messaging belongs to same design, calculates the technical side of equipment
The detail content that case is not described in detail may refer to retouching for the technical solution of the resource collecting method in above-mentioned instant messaging
It states.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction
To be used for when being executed by processor:
The resource to be collected in the session content for determining instant messaging application is instructed according to the collection of communication user;
According to the resource to be collected session segment affiliated in the session content, extracted in the session segment
The keyword of the resource to be collected;
Using the keyword as the collection label of the resource to be collected, the resource to be collected is collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine that the resource for including in the session segment is corresponding
Resource type;
Selection and the matched algorithm of the resource type, extract the keyword for the resource for including in the session segment;
Using the keyword for the resource for including in the session segment as the keyword of the resource to be collected.
Optionally, in the case where the resource type includes textual resources type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
Word segmentation processing is carried out to the corresponding textual resources of the textual resources type, obtains multiple passes of the textual resources
Keyword;
Calculate keyword score of the multiple keywords of the textual resources in the textual resources;
Using the keyword of the highest textual resources of the keyword score as the money for including in the session segment
The keyword in source.
Optionally, in the case where the resource type includes picture resource type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
The corresponding picture resource of the picture resource type is identified, the picture resource is judged according to recognition result
In whether include text information;
If so, extracting the text information from the picture resource, and the text is believed by semantic analysis algorithm
Breath is analyzed and processed, and obtains the keyword of the text information;
Using the keyword of the text information as the keyword for the resource for including in the session segment.
Optionally, in the case where the resource type includes link resources type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
According to the corresponding link resources of the link resources type, the domain name of the link resources is determined;
Using the domain name as the keyword for the resource for including in the session segment.
Optionally, in the case where the resource type includes video resource type, the selection and the resource type
Matched algorithm extracts the keyword for the resource for including in the session segment, comprising:
Obtain the video image of adjacent two frame in the corresponding video resource of the video resource type;
The difference of the gray level image of the video image of adjacent two frame is calculated, and judges whether the difference is greater than first
Predetermined movement threshold value and less than the second predetermined movement threshold value;
If so, identifying type of action belonging to the object moved in the video resource, and the type of sports is determined
Keyword for the resource for including in the session segment.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine in the session segment with described wait collect money
The associated resource to be extracted in source;
According to resource type belonging to the resource to be extracted, selection and the matched algorithm of the resource type to it is described to
It extracts resource and extracts the keyword;
Using the keyword of the resource to be extracted of extraction as the keyword of the resource to be collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about the keyword that the resource to be collected is extracted in segment, comprising:
According to described wait collect the session segment belonging to resource, determine that the session segment is the resource to be collected
In the case where, determine the resource type of the resource to be collected;
Resource type based on the resource to be collected is selected with the matched algorithm of the resource type to described wait collect
Resource extracts keyword, the keyword as the resource to be collected.
Optionally, the resource to be collected according to session segment affiliated in the session content, in the meeting
Talk about extracted in segment the resource to be collected keyword step execute after, it is described using the keyword as described in wait collect
The collection label of resource, to the resource to be collected carry out collection step execute before, further includes:
The keyword of the resource to be collected there are it is multiple in the case where, calculate the word frequency of each keyword;
According to each keyword word frequency from high to low sequential selection setting number keyword construct keyword set;
According to the selection instruction of the communication user, select the keyword for including in the keyword set as it is described to
Collect the keyword of resource.
Optionally, described using the keyword as the collection label of the resource to be collected, to the resource to be collected
It is collected, comprising:
Select the keyword for including in the keyword set as the resource to be collected according to the selection instruction
Label is collected, the resource to be collected is collected.
Optionally, it is described the keyword of the resource to be collected there are it is multiple in the case where, calculate each keyword
Word frequency, comprising:
The keyword of the resource to be collected there are it is multiple in the case where, multiple keys based on the resource to be collected
Word creates keyword character library;
Calculate the word frequency for each keyword for including in the keyword character library.
Optionally, described using the keyword as the collection label of the resource to be collected, to the resource to be collected
Carry out collection step execute after, further includes:
Resource to be collected described in the collection label will be carried to store to network data base;
In the case where the communication user inquires the resource to be collected, taken according to the inquiry instruction of the communication user
The collection label of band is matched in the network data base;
The resource to be collected of the collection tag match carried in the network data base with the inquiry instruction is delayed
It deposits.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of resource collecting method in the technical solution of storage media and above-mentioned instant messaging belongs to same design, and storage is situated between
The detail content that the technical solution of matter is not described in detail may refer to the technology of the resource collecting method in above-mentioned instant messaging
The description of scheme.
It is above-mentioned that the application specific embodiment is described.Other embodiments are within the scope of the appended claims.
In some cases, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment
And desired result still may be implemented.In addition, process depicted in the drawing not necessarily require the particular order shown or
Person's consecutive order is just able to achieve desired result.In some embodiments, multitasking and parallel processing are also possible
Or it may be advantageous.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen
It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment
All details are described, are not limited the invention to the specific embodiments described.It obviously, can according to present context
It makes many modifications and variations.The application chooses and specifically describes these embodiments, is the original in order to preferably explain the application
Reason and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only authorized
The limitation of sharp claim and its full scope and equivalent.