CN110380954B - Data sharing method and device, storage medium and electronic device - Google Patents

Data sharing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN110380954B
CN110380954B CN201910642581.1A CN201910642581A CN110380954B CN 110380954 B CN110380954 B CN 110380954B CN 201910642581 A CN201910642581 A CN 201910642581A CN 110380954 B CN110380954 B CN 110380954B
Authority
CN
China
Prior art keywords
account
target data
account list
list
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910642581.1A
Other languages
Chinese (zh)
Other versions
CN110380954A (en
Inventor
查文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910642581.1A priority Critical patent/CN110380954B/en
Publication of CN110380954A publication Critical patent/CN110380954A/en
Application granted granted Critical
Publication of CN110380954B publication Critical patent/CN110380954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/48Message addressing, e.g. address format or anonymous messages, aliases

Abstract

The invention discloses a data sharing method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application; responding to the sharing instruction to obtain first label information matched with the target data, wherein the first label information is used for indicating the category of the target data; acquiring a second account list having an association relation with a first account requesting to share target data in a sharing instruction; comparing the label information of each account in the second account list with the first label information, and obtaining a first account list according to the comparison result; displaying a first account list on a display interface; acquiring a target account for receiving target data from the first account list; and sharing the target data to the object account. The invention solves the technical problem of low data sharing efficiency in the existing data sharing mode.

Description

Data sharing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a data sharing method and device, a storage medium and an electronic device.
Background
In many terminal applications, a data sharing function is provided for users, so that the users can share concerned data to friends of the users. In the process of performing data sharing by using a sharing account, after data to be shared is selected, a sharing object for receiving the shared data needs to be selected from a friend list associated with the sharing account, for example, as shown in fig. 1 (a) - (c), when an article S is shared in App-1, the sharing object (e.g., account a) needs to be selected first, and then the article S is pushed to the sharing object account a.
However, the sharing objects receiving the sharing data are often arranged in a fixed order in the buddy list, for example, in the order of the initial of the buddy, or in the order of the interaction frequency. That is to say, when data sharing is performed, a sharing object to be pushed needs to be searched in a buddy list configured according to a fixed sequence in a manner of manually turning pages, so that data sharing time is prolonged, and further, the data sharing efficiency is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data sharing method and device, a storage medium and an electronic device, and at least solves the technical problem of low data sharing efficiency in the existing data sharing mode.
According to an aspect of an embodiment of the present invention, a data sharing method is provided, including: acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application; responding to the sharing instruction to acquire first label information matched with the target data from a server, wherein the first label information is used for indicating the category of the target data; acquiring a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information; acquiring a target account for receiving the target data from the first account list; and sharing the target data to the object account.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing method, including: receiving a sharing instruction generated by a client of a first application executing sharing operation on target data; acquiring first label information matched with the target data according to the sharing instruction, wherein the first label information is used for indicating the category of the target data; acquiring a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information; acquiring a target account selected from the first account list and used for receiving the target data; and sharing the target data to the object account.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing method, including: acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application; responding to the sharing instruction to obtain first label information matched with the target data, wherein the first label information is used for indicating the category of the target data; acquiring a second account list having an association relation with a first account requesting to share the target data in the sharing instruction; comparing the label information of each account in the second account list with the first label information, and obtaining a first account list according to a comparison result; displaying the first account list on a display interface; acquiring a target account for receiving the target data from the first account list; and sharing the target data to the object account.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing apparatus, including: the first acquisition unit is used for acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application; a second obtaining unit, configured to obtain, from a server in response to the sharing instruction, first tag information that matches the target data, where the first tag information is used to indicate a category to which the target data belongs; a third obtaining unit, configured to obtain a first account list according to the first tag information, where second tag information of an account in the first account list matches the first tag information; a fourth obtaining unit, configured to obtain, from the first account list, a target account that receives the target data; and the sharing unit is used for sharing the target data to the object account.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing apparatus, including: the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a sharing instruction generated by a client of a first application executing sharing operation on target data; a first obtaining unit, configured to obtain, according to the sharing instruction, first tag information that matches the target data, where the first tag information is used to indicate a category to which the target data belongs; a second obtaining unit, configured to obtain a first account list according to the first tag information, where second tag information of an account in the first account list matches the first tag information; a third obtaining unit, configured to obtain a target account selected from the first account list and used for receiving the target data; and the sharing unit is used for sharing the target data to the object account.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing apparatus, including: the first acquisition unit is used for acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application; the second obtaining unit is used for responding to the sharing instruction to obtain first label information matched with the target data, wherein the first label information is used for indicating the category of the target data; a third obtaining unit, configured to obtain a second account list having an association relationship with a first account requesting to share the target data in the sharing instruction; the comparison unit is used for comparing the label information of each account in the second account list with the first label information and obtaining a first account list according to a comparison result; the display unit is used for displaying the first account list on a display interface; a fourth obtaining unit, configured to obtain, from the first account list, a target account that receives the target data; and the sharing unit is used for sharing the target data to the object account.
As an optional example, the apparatus further includes: a sending unit, configured to send attribute information of target data to a server, so that the server obtains first tag information matched with the target data according to the attribute information, where the attribute information includes at least one of: title of the target data, summary of the target data, link address of the target data.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above data sharing method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data sharing method through the computer program.
In the embodiment of the invention, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, the method comprises the steps of acquiring first label information matched with target data to be shared to acquire a first account list according to the first label information, wherein the second label information of the account in the first account list is matched with the first label information, meanwhile, the first account list is displayed and the object account for receiving the target data is acquired, so that the target data to be shared can be accurately shared to the object account needing the target data, and the object account matched with the shared target data is quickly acquired from the first account list, so that the time for searching the object account from a plurality of accounts is greatly reduced, and the effect of improving the data sharing efficiency is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a data sharing method according to the prior art;
FIG. 2 is a schematic diagram of an application environment of an alternative data sharing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative data sharing method according to an embodiment of the invention;
FIG. 4 is a diagram illustrating an alternative data sharing method according to an embodiment of the invention;
FIG. 5 is a diagram illustrating an alternative data sharing method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an alternative data sharing method according to an embodiment of the present invention;
FIG. 7 is a flow diagram of an alternative data sharing method according to an embodiment of the invention;
FIG. 8 is a flow chart of yet another alternative data sharing method according to an embodiment of the present invention;
FIG. 9 is a flow chart of yet another alternative data sharing method according to an embodiment of the present invention;
FIG. 10 is a flow chart illustrating an alternative data sharing method according to an embodiment of the invention;
FIG. 11 is a diagram illustrating an alternative data sharing method according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating an alternative data sharing method according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating an alternative data sharing apparatus according to an embodiment of the present invention;
FIG. 14 is a diagram illustrating an alternative data sharing apparatus according to an embodiment of the present invention;
FIG. 15 is a diagram illustrating an alternative data sharing apparatus according to an embodiment of the present invention;
fig. 16 is a schematic diagram of an alternative data sharing terminal according to an embodiment of the present invention;
FIG. 17 is a schematic diagram of an alternative data sharing server according to an embodiment of the present invention;
fig. 18 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In an embodiment of the present invention, an embodiment of the foregoing interactive resource pushing method is provided. As an optional implementation manner, the interactive resource pushing method may be but is not limited to be applied to an application environment shown in fig. 2, a first application runs in a terminal 202, after acquiring a sharing instruction generated by performing a sharing operation on target data in a display interface of the first application, the terminal 202 acquires, from a server 206 through a network 204 in response to the sharing instruction, first tag information matched with the target data, where the first tag information is used to indicate a category to which the target data belongs; then, acquiring a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information; and acquiring the object account receiving the target data from the first account list, and sharing the target data to the object account.
In this embodiment, after a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application is acquired, a first tag information matched with the target data to be shared is acquired from a server, so that a first account list is acquired according to the first tag information, wherein a second tag information of an account in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared with an object account needing the target data, but also an object account matched with the shared target data is quickly acquired from the first account list, time for searching the object account from a plurality of accounts is greatly reduced, and an effect of improving data sharing efficiency is achieved.
Optionally, in this embodiment, the terminal may include, but is not limited to, at least one of the following: mobile phones, tablet computers, notebook computers, desktop PCs, digital televisions and other hardware devices for sharing data. The network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, and local area networks. The above is only an example, and the present embodiment is not limited to this.
According to an embodiment of the present invention, a data sharing method is provided, as shown in fig. 3, the method includes:
s302, acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application;
s304, responding to the sharing instruction, and acquiring first label information matched with the target data from the server, wherein the first label information is used for indicating the category of the target data;
s306, acquiring a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information;
s308, acquiring a target account for receiving target data from the first account list;
and S310, sharing the target data to the object account.
Optionally, in this embodiment, the data sharing method may be, but is not limited to, applied to a data sharing process of different applications, for example, the application may include, but is not limited to, at least one of the following: the data sharing method comprises the following steps of video playing application, news application, instant messaging application, shopping application and the like, wherein data sharing can be carried out among different accounts in the same application, and can also be carried out in different applications. The data format of the shared target data may include, but is not limited to, at least one of the following: text, pictures, video, flash animation, and so forth. The above is merely an example, and no limitation is made to other types of embodiments of the present application.
For example, taking the first application as an instant messaging application as an example, taking an article as an example of the target data, after a sharing instruction for performing a sharing operation on the article is obtained, first tag information matched with the article is obtained from the server, for example, the first tag information indicates that the article belongs to an economy class. If the sharing is performed in the instant messaging application, a second account list associated with the first account requesting the sharing in the instant messaging application can be obtained, tag information of the accounts in the second account list is obtained, the tag information is compared with the first tag information, and a first account list matched with the tag information is obtained, wherein tags of the accounts in the first account list are also indicated as economic. And acquiring the object account from the first account list, and pushing the target data to the object account. The above is only an example, and this is not limited in this embodiment.
It should be noted that after a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application is acquired, acquiring first tag information matched with the target data to be shared from a server to acquire a first account list according to the first tag information, where second tag information of an account in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly acquired from the first account list, and thus time for searching the object account from a plurality of accounts is greatly reduced, and an effect of improving data sharing efficiency is achieved.
Optionally, in this embodiment, the first tag information matched with the target data may be, but is not limited to, generated by a server according to attribute information of the acquired target data, where the attribute information includes at least one of: title of the target data, summary of the target data, link address of the target data.
For example, the client of the first application sends a title of the target data, and/or a summary of the target data, and/or a Uniform Resource Locator (URL), etc. to the server. The server can open the corresponding link through the URL and extract the text content in the page indicated by the link. And then, segmenting words of the title, the abstract and the text content in the page, comparing and matching the obtained segmented words with keywords in a word bank obtained in advance through learning, and acquiring first label information of the target data according to a compared result. The matching method may be, but not limited to, an LDA algorithm of text topic clustering provided in the related art, a maximum entropy classifier of text classification, and the like, which is not limited in this embodiment.
Optionally, in this embodiment, the obtaining the first account list according to the first tag information includes: acquiring a second account list having an association relation with a first account requesting to share target data in a sharing instruction; comparing the label information of the account in the second account list with the first label information; and acquiring a first account list according to the comparison result.
It should be noted that, the first account number may include, but is not limited to, at least one of the following: the account used for logging in the first application, the account formed by the terminal identification of the terminal where the first application is located, the account formed by the terminal IP of the terminal where the first application is located, and the like. That is, when data sharing is performed in the same application, an account list having an association relationship, for example, a friend account list of a first account, may be obtained directly by using a login account. When data sharing is performed among different applications, but not limited to, an account formed by a terminal identifier and/or an account formed by a terminal IP may be used to obtain a data interface, which is open for the first application, of the second application for receiving the target data, so as to share the data in the first application to an account list in the second application by calling the data interface, for example, the terminal indicated by the terminal identifier or the terminal IP, and after logging in the second application, a friend account list in the second application. The above is only an example, and this is not limited in this embodiment.
In addition, in this embodiment, the process of acquiring the first account list according to the first tag information may be executed in the client of the first application, that is, after the client acquires the first tag information sent by the server, the client may compare the tag information of the account in the cached second account list with the first tag information, and the client acquires the compared first account list by performing a comparison operation; in addition, the process of acquiring the first account list according to the first tag information may be executed in the server, that is, the server directly compares the tag information of the account in the second account list having an association relationship with the first account with the first tag information, and the client may directly receive the compared first account list sent by the server. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the tag information of the account in the second account list may be, but is not limited to, tag information preconfigured in the client, and may also be, but is not limited to, receiving, by the server, the obtained tag information according to a predetermined period. The above is only an example, and this is not limited in this embodiment.
It should be noted that, in this embodiment, the tag indicated by the first tag information may include, but is not limited to, one or more data tags, and the tag indicated by the tag information of the account in the second account list may include, but is not limited to, one or more account tags. That is to say, each piece of target data may correspond to one or more data tags, and each account may also correspond to one or more account tags, which is not limited in this embodiment.
Optionally, in this embodiment, the comparing the tag information of the account in the second account list with the first tag information may include but is not limited to:
1) and fuzzy comparison, namely performing the following operations on the accounts in the second account list as the current accounts respectively: under the condition that at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type, judging that the label information of the account is matched with the first label information, and taking the account as an account in a first account list;
2) and accurately comparing, namely executing the following operations on the accounts in the second account list as the current accounts respectively: acquiring the number of labels, which are the same as the data labels indicated by the first label information, from the account labels indicated by the label information of the current account; identifying the matching degree between the label information of the current account and the first label information by using the number of labels; and updating a second account list according to the matching degree, wherein the second account list comprises the first account list.
It should be noted that, in this embodiment, the comparison type may be determined according to different tag types, for example, the comparison may be performed according to a technical professional type but not limited to an accurate comparison, and the comparison may be performed according to a hobby interest type but not limited to a fuzzy comparison.
Optionally, in this embodiment, after obtaining the first account list according to the comparison result, the method further includes:
1) and displaying the first account list on a display interface according to a preset sequence.
For example, as shown in fig. 4, it is assumed that a second account list having an association relationship with the first account in the first application App-1 is as shown in fig. 4 (a), and includes an account a, an account B, and an account C, and after comparison, it is determined that the first account list matching the first tag information includes: the account B and the account C may display the first account list on a display interface according to a predetermined sequence, as shown in fig. 4 (B), and if the acquired target account is the account C, the target data C to be shared may be pushed to the account C, as shown in fig. 4 (C). The above is only an example, and this is not limited in this embodiment.
2) And displaying the second account list on a display interface according to the matching degree, wherein the first account list is arranged in the first N digits in the second account list according to the matching degree, and N is a natural number greater than or equal to 1.
For example, as shown in fig. 5, it is assumed that a second account list in the first application App-1, which has an association relationship with the first account, is as shown in fig. 5 (a) and includes account a, account B, and account C, after comparison, the accounts in the second account list may be reordered according to the matching degree calculation, as shown in fig. 5 (B), the updated second account list is displayed on the display interface according to the matching degree, and the display sequence is updated to account B, account C, and account a. Wherein, the first account list matched with the first label information is supposed to include: account B and account C, the first account list is located in the first two digits of the updated second account list. The above is only an example, and this is not limited in this embodiment.
That is to say, in this embodiment, after the first account list is acquired, only the first account list whose tag information matches the first tag information may be, but is not limited to, displayed, and it should be noted that the first account list may be displayed in a predetermined order, for example, arranged according to an initial letter, a use frequency, a latest use time, or the like, which is not limited in this embodiment. In addition, in this embodiment, after the first account list is acquired, the second account list may also be displayed according to, but not limited to, the matching degree, where the first account list is located in the top N digits of the second account list. In other words, all accounts in the second account list are displayed, but the first account list matched with the first label information is displayed at the top N digits according to the matching degree, so that the target account can be acquired quickly.
According to the embodiment provided by the application, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, the first tag information matched with the target data to be shared is acquired from the server, so that the first account list is acquired according to the first tag information, wherein the second tag information of the accounts in the first account list is matched with the first tag information, so that the target data to be shared can be accurately shared to the target account needing the target data, the target account matched with the shared target data is quickly acquired from the first account list, the time for searching the target account from a plurality of accounts is greatly reduced, and the effect of improving the efficiency of data sharing is achieved.
As an optional scheme, the obtaining the first account list according to the first tag information includes:
s1, acquiring a second account list having an association relation with a first account requesting to share target data in the sharing instruction;
s2, comparing the label information of the account in the second account list with the first label information;
and S3, acquiring a first account list according to the comparison result.
It should be noted that, in this embodiment, the second account list may be, but is not limited to, an account list in the first application, where the account list has an association relationship with the first account; but not limited to, the account list may also be an account list having an association relationship with the first account in the second application associated with the first application.
Specifically, in the case that the application App-1 internally shares the target data, the second account list may be, but is not limited to, a second account list having an association relationship with the first account in the first application, for example, the second account list in the application App-1 includes: account A, account B and account C; the step of obtaining the first account list through comparison comprises the following steps: and the account B and the account C select an object account (account C) from the first account list to share the target data. In addition, in the case of sharing target data in the first application App-1 to the second application App-2, the second account list may also be, but is not limited to, a second account list having an association relationship with the first account in the second application, for example, as shown in fig. 6 (a) - (c), jump from the application App-1 to the application App-2, and acquire the second account list having an association relationship with the first account in the application App-2, where the second account list includes: account A, account B and account C; the step of obtaining the first account list through comparison comprises the following steps: and the account B and the account C select an object account (account C) from the first account list to share the target data.
Optionally, in this embodiment, the comparing the tag information of the account in the second account list with the first tag information includes: fuzzy comparison and accurate comparison. The fuzzy comparison is used for indicating that at least one pair of labels belonging to the same category exists in the account label and the data label, so that the account identified by the account label can be judged to be matched with the target data identified by the data label, and the account can be used as the account in the first account list. And the accurate comparison is used for indicating that the number of the labels belonging to the same label in the account labels and the data labels is obtained, and determining the matching degree of the labels according to the number of the labels of the same label so as to obtain the account in the first account list according to the matching degree. For example, the account number with the matching degree greater than the predetermined threshold in the second account number list is taken as the account number in the first account number list.
According to the embodiment provided by the application, after the second account list having the association relation with the first account requesting to share the target data in the sharing instruction is obtained, the first account list is obtained according to the comparison result by comparing the tag information of the accounts in the second account list with the first tag information. Therefore, in the data sharing process, the first account list matched with the target data can be acquired, and the target data can be accurately shared to the object accounts which are included in the first account list and used for receiving the target data by accurately providing the first account list needing the target data.
As an optional scheme, the comparing the tag information of the account in the second account list with the first tag information includes:
s1, traversing all accounts in the second account list, and taking each account in the second account list as a current account in turn to perform the following operations:
s11, under the condition that at least one account label indicated by the label information of the current account is matched with at least one data label indicated by the first label information, judging that the label information of the current account is matched with the first label information;
and S12, taking the current account as the account in the first account list.
Optionally, in this embodiment, the matching of the at least one account label indicated by the label information of the current account and the at least one data label indicated by the first label information may include, but is not limited to: at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type; furthermore, the matching of the at least one account label indicated by the label information of the current account with the at least one data label indicated by the first label information may include, but is not limited to: at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information are labels of the same label.
It should be noted that, in this embodiment, the tag indicated by the first tag information may include, but is not limited to, one or more data tags, and the tag indicated by the tag information of the account in the second account list may include, but is not limited to, one or more account tags. That is to say, each piece of target data may correspond to one or more data tags, and each account may also correspond to one or more account tags, which is not limited in this embodiment.
That is to say, in this embodiment, when comparing the tag information of the account in the second account list with the first tag information, fuzzy comparison may be adopted, and at least one pair of tags belonging to the same tag type or at least one pair of tags being the same tag is obtained from the multiple tags indicated by the tag information, so that it can be determined that the tag information of the account matches the first tag information, and the account can be used as the account in the first account list, so as to be displayed in the display interface, thereby facilitating the user to quickly select the target account for receiving the target data, and achieving the effect of improving the efficiency of data sharing.
According to the embodiment provided by the application, through comparison of the tag information, under the condition that at least one account tag indicated by the tag information of the current account is matched with at least one data tag indicated by the first tag information, the tag information of the current account is judged to be matched with the first tag information, and then the current account is used as the account in the first account list, so that the purpose that the first account list matched with the target data and used for receiving is rapidly obtained through fuzzy comparison of the tag information is achieved, and the object account used for receiving the target data is accurately and rapidly obtained from the first account list.
As an optional scheme, the comparing the tag information of the account in the second account list with the first tag information includes:
s1, traversing all accounts in the second account list, and taking each account in the second account list as a current account in turn to perform the following operations:
s11, acquiring the label quantity of the label matched with the data label indicated by the first label information from the account label indicated by the label information of the current account;
s12, identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
and S2, updating a second account list according to the matching degree, wherein the second account list comprises the first account list.
Optionally, in this embodiment, in the matching determination process, a tag that is the same as the data tag indicated by the first tag information in the account tags indicated by the tag information of the current account is determined as a matching tag, and the number of tags in the matching tag is obtained to be used for identifying the matching degree. And acquiring the account in the first account list according to the matching degree. Therefore, the purpose of accurately comparing the label information of the account and the first label information of the target data is achieved.
It should be noted that, in this embodiment, after the matching degree identified by the number of tags is obtained, accounts in the second account list, of which the matching degree is greater than the predetermined threshold, may be, but is not limited to, taken as accounts in the first account list, where the accounts in the first account list are part of the accounts in the second account list.
Optionally, in this embodiment, the first account list may be, but is not limited to, separately acquired to display the first account list in a display interface, where the accounts in the first account list may be, but is not limited to, displayed according to a matching degree, and may also be, but is not limited to, displayed according to a default order. This is not limited in this embodiment.
Optionally, in this embodiment, the arrangement order of all accounts in the second account list may also be updated according to the matching degree, but is not limited to this, where the accounts in the first account list that match the target data are arranged in the top N digits of the second account list. That is, in the second account list, other accounts that do not match the target data may also be displayed in the display interface, and the display order is after the accounts in the first account list. This is not limited in this embodiment.
Through the embodiment provided by the application, through comparing the tag information, the tag quantity of the tag matched with the data tag indicated by the first tag information is acquired from the account tag indicated by the tag information of the current account, the matching degree between the tag information of the current account and the first tag information is identified by using the tag quantity, so that the purpose of quickly acquiring the first account list matched with the target data and used for receiving is achieved through accurately comparing the tag information according to the matching degree, and the purpose of accurately and quickly acquiring the target account used for receiving the target data from the first account list is further achieved.
As an optional scheme, after the obtaining the first account list according to the comparison result, the method further includes:
and S1, displaying the first account list on the display interface according to a preset sequence.
Specifically, referring to fig. 4, it is assumed that a second account list having an association relationship with the first account in the first application App-1 is as shown in fig. 4 (a), and includes an account a, an account B, and an account C, and after comparison, it is determined that the first account list matching the first tag information includes: the account B and the account C may display the first account list on a display interface according to a predetermined sequence, as shown in fig. 4 (B), and if the acquired target account is the account C, the target data C to be shared may be pushed to the account C, as shown in fig. 4 (C).
According to the embodiment provided by the application, the first account list matched with the target data is directly displayed, so that the searching time of searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
As an optional scheme, after obtaining the first account list according to the comparison result, the method includes:
and S1, displaying a second account list on the display interface according to the matching degree, wherein the first account list is arranged in the first N digits in the second account list according to the matching degree, and N is a natural number greater than or equal to 1.
Specifically, as shown in fig. 5, it is assumed that a second account list having an association relationship with the first account in the first application App-1 is as shown in fig. 5 (a), and includes an account a, an account B, and an account C, after comparison, the accounts in the second account list may be reordered according to the matching degree, as shown in fig. 5 (B), the updated second account list is displayed on the display interface according to the matching degree, and the display sequence is updated to the account B, the account C, and the account a. Wherein, the first account list matched with the first label information is supposed to include: account B and account C, the first account list is located in the first two digits of the updated second account list.
According to the embodiment provided by the application, the arrangement sequence of the second account list is updated, so that the first account list matched with the target data can be displayed in the first N digits of the second account list, the search time for searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
According to an embodiment of the present invention, there is also provided a data sharing method, as shown in fig. 7, the method including:
s702, receiving a sharing instruction generated by a client of a first application executing a sharing operation on target data;
s704, acquiring first label information matched with the target data according to the sharing instruction, wherein the first label information is used for indicating the category of the target data;
s706, acquiring a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information;
s708, acquiring a target account selected from the first account list and used for receiving target data;
and S710, sharing the target data to the object account.
Optionally, in this embodiment, the data sharing method may be, but is not limited to, applied to a data sharing process of different applications, for example, the application may include, but is not limited to, at least one of the following: the data sharing method comprises the following steps of video playing application, news application, instant messaging application, shopping application and the like, wherein data sharing can be carried out among different accounts in the same application, and can also be carried out in different applications. The data format of the shared target data may include, but is not limited to, at least one of the following: text, pictures, video, flash animation, and so forth. The above is merely an example, and no limitation is made to other types of embodiments of the present application.
For example, taking the first application as an instant messaging application as an example, taking an article as an example of the target data, after a sharing instruction for performing a sharing operation on the article is obtained, first tag information matched with the article is obtained from the server, for example, the first tag information indicates that the article belongs to an economy class. If the sharing is performed in the instant messaging application, a second account list associated with the first account requesting the sharing in the instant messaging application can be obtained, tag information of the accounts in the second account list is obtained, the tag information is compared with the first tag information, and a first account list matched with the tag information is obtained, wherein tags of the accounts in the first account list are also indicated as economic. And acquiring the object account from the first account list, and pushing the target data to the object account. The above is only an example, and this is not limited in this embodiment.
It should be noted that after a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application is acquired, acquiring first tag information matched with the target data to be shared from a server to acquire a first account list according to the first tag information, where second tag information of an account in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly acquired from the first account list, and thus time for searching the object account from a plurality of accounts is greatly reduced, and an effect of improving data sharing efficiency is achieved.
Optionally, in this embodiment, the first tag information matched with the target data may be, but is not limited to, generated by a server according to attribute information of the acquired target data, where the attribute information includes at least one of: title of the target data, summary of the target data, link address of the target data.
For example, the client of the first application sends a title of the target data, and/or a summary of the target data, and/or a Uniform Resource Locator (URL), etc. to the server. The server can open the corresponding link through the URL and extract the text content in the page indicated by the link. And then, segmenting words of the title, the abstract and the text content in the page, comparing and matching the obtained segmented words with keywords in a word bank obtained in advance through learning, and acquiring first label information of the target data according to a compared result. The matching method may be, but not limited to, an LDA algorithm of text topic clustering provided in the related art, a maximum entropy classifier of text classification, and the like, which is not limited in this embodiment.
It should be noted that, in this embodiment, the target data may be, but is not limited to, one or more data tags matched according to a keyword library in a word library, for example, if an article S is supposed to be shared, the server analyzing and obtaining tag information corresponding to the article S includes:
label 1 matching degree 10 points
Label 2 matching degree 8 points
3 degree of matching of label 5 points
Further, assuming that the matching degree is greater than 6 points as the label indicated by the first label information, it is determined from the above that the label indicated by the first label information of the article S includes: and the server can further send the label indicated by the first label information to the client to match with the label information of the second account list so as to accurately acquire the first account list for receiving the target data, so that the effect of quickly and accurately acquiring the object account for receiving the target data is achieved, and repeated searching is avoided.
Optionally, in this embodiment, the obtaining the first account list according to the first tag information includes: acquiring a second account list having an association relation with a first account requesting to share target data in a sharing instruction; comparing the label information of the account in the second account list with the first label information; and acquiring a first account list according to the comparison result.
It should be noted that, in this embodiment, the tag information of the account in the second account list may be, but is not limited to, tag information preconfigured in the client, and may also be, but is not limited to, tag information sent to the client by the server according to a predetermined cycle. The server may determine, but is not limited to, tag information of the accounts in the second account list according to at least one of the following data of the accounts: data sharing history, data access history, and the like. That is, the application preference of the account is analyzed by collecting the historical data of the account, so that the purpose of accurately matching the corresponding label for the account is achieved.
Optionally, in this embodiment, the process of obtaining the first account list according to the first tag information may be executed in the server, that is, the tag information of the account in the second account list having an association relationship with the first account is directly compared with the first tag information in the server, and the client may directly receive the first account list obtained after comparison sent by the server.
For example, as shown in steps S802 to S812 in fig. 8, a client of a first application in the terminal 802 sends a sharing instruction for sharing target data, the server 804 obtains first tag information matched with the target data according to the sharing instruction, then obtains a first account list from a second account list having an association relationship with a first account according to the first tag information, and sends the first account list to the client of the first application in the terminal 802, and the terminal 802 displays the first account list on a display interface and obtains a target account from the first account list, so as to share the target data to the target account through the server 804. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the process of obtaining the first account list according to the first tag information may be executed in a client of the first application, that is, after obtaining the first tag information sent by the server in the client, the client may compare the cached tag information of the account in the second account list with the first tag information, and the client performs a comparison operation to obtain the compared first account list.
For example, as shown in steps S902-S912 in fig. 9, a client of a first application in the terminal 802 sends a sharing instruction for sharing target data, the server 804 acquires first tag information matched with the target data according to the sharing instruction, then sends the first tag information to the terminal 802, and the terminal 802 acquires a first account list from a second account list having an association relationship with a first account according to the first tag information, displays the first account list on a display interface, and acquires a target account from the first account list, so as to implement sharing of the target data to the target account through the server 804. The above is only an example, and this is not limited in this embodiment.
It should be noted that the target data may be shared by the server 804 to the same application or different applications in the terminal 802. That is, when data sharing is performed in the same application, an account list having an association relationship, for example, a friend account list of a first account, may be obtained directly by using a login account. When data sharing is performed among different applications, but not limited to, an account formed by a terminal identifier and/or an account formed by a terminal IP may be used to obtain a data interface, which is open for the first application, of the second application for receiving the target data, so as to share the data in the first application to an account list in the second application by calling the data interface, for example, the terminal indicated by the terminal identifier or the terminal IP, and after logging in the second application, a friend account list in the second application. The above is only an example, and this is not limited in this embodiment.
According to the embodiment provided by the application, after a sharing instruction generated by a client of a first application executing a sharing operation on target data is received, first tag information matched with the target data is obtained according to the sharing instruction, wherein the first tag information is used for indicating the type of the target data, so that a first account list is obtained according to the first tag information, and second tag information of accounts in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly obtained from the first account list, the time for searching the object account from a plurality of accounts is greatly reduced, and the effect of improving the data sharing efficiency is achieved.
As an optional implementation, the obtaining the first account list according to the first tag information includes:
s1, acquiring a second account list in the first application, wherein the second account list has an association relationship with a first account requesting to share target data in a sharing instruction;
s2, comparing the label information of the account in the second account list with the first label information;
and S3, acquiring a first account list according to the comparison result.
Specifically, with reference to fig. 4 for explanation, in the case that the application App-1 internally shares the target data, it is assumed that a second account list in the first application App-1, which has an association relationship with the first account, is as shown in fig. 4 (a), and includes an account a, an account B, and an account C, and after comparison, it is determined that the first account list matched with the first tag information includes: the account B and the account C may display the first account list on a display interface according to a predetermined sequence, as shown in fig. 4 (B), and if the acquired target account is the account C, the target data C to be shared may be pushed to the account C, as shown in fig. 4 (C).
According to the embodiment provided by the application, the first account list matched with the target data is directly displayed, so that the searching time of searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
As an optional implementation, the obtaining the first account list according to the first tag information includes:
s1, acquiring a third account list in a second application and having an association relation with a first account requesting to share target data in a sharing instruction, wherein the second application is used for receiving the target data, and the first application and the second application are associated applications;
s2, comparing the label information of the account in the third account list with the first label information;
and S3, acquiring a first account list according to the comparison result.
Specifically, as described with reference to fig. 6, in a case that target data in the first application App-1 is shared to the second application App-2, the second account list may also be, but is not limited to, a second account list having an association relationship with the first account in the second application, for example, as shown in fig. 6 (a) - (c), jump from the application App-1 to the application App-2, and obtain the second account list having an association relationship with the first account in the application App-2, where the second account list includes: account A, account B and account C; the step of obtaining the first account list through comparison comprises the following steps: and the account B and the account C select an object account (account C) from the first account list to share the target data.
According to the embodiment provided by the application, after the account list having the association relation with the first account requesting to share the target data in the sharing instruction is obtained, the first account list is obtained according to the comparison result by comparing the tag information of the accounts in the account list with the first tag information. Therefore, in the data sharing process, the first account list matched with the target data can be acquired, and the target data can be accurately shared to the object accounts which are included in the first account list and used for receiving the target data by accurately providing the first account list needing the target data.
As an optional scheme, comparing the tag information of the account in the account list with the first tag information includes:
s1, traversing all accounts in the account list, and taking each account in the account list as a current account in turn to execute the following operations:
s12, under the condition that at least one account label indicated by the label information of the current account is matched with at least one data label indicated by the first label information, judging that the label information of the current account is matched with the first label information;
and S14, taking the current account as the account in the first account list.
Optionally, in this embodiment, the matching of the at least one account label indicated by the label information of the current account and the at least one data label indicated by the first label information may include, but is not limited to: at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type; furthermore, the matching of the at least one account label indicated by the label information of the current account with the at least one data label indicated by the first label information may include, but is not limited to: at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information are labels of the same label.
It should be noted that, in this embodiment, the tag indicated by the first tag information may include, but is not limited to, one or more data tags, and the tag indicated by the tag information of the account in the second account list may include, but is not limited to, one or more account tags. That is to say, each piece of target data may correspond to one or more data tags, and each account may also correspond to one or more account tags, which is not limited in this embodiment.
That is to say, in this embodiment, when comparing the tag information of the account in the second account list with the first tag information, fuzzy comparison may be adopted, and at least one pair of tags belonging to the same tag type or at least one pair of tags being the same tag is obtained from the multiple tags indicated by the tag information, so that it can be determined that the tag information of the account matches the first tag information, and the account can be used as the account in the first account list, so as to be displayed in the display interface, thereby facilitating the user to quickly select the target account for receiving the target data, and achieving the effect of improving the efficiency of data sharing.
According to the embodiment provided by the application, through comparison of the tag information, under the condition that at least one account tag indicated by the tag information of the current account is matched with at least one data tag indicated by the first tag information, the tag information of the current account is judged to be matched with the first tag information, and then the current account is used as the account in the first account list, so that the purpose that the first account list matched with the target data and used for receiving is rapidly obtained through fuzzy comparison of the tag information is achieved, and the object account used for receiving the target data is accurately and rapidly obtained from the first account list.
As an optional scheme, comparing the tag information of the account in the account list with the first tag information includes:
s1, traversing all accounts in the account list, and taking each account in the account list as a current account in turn to execute the following operations:
s12, acquiring the label quantity of the label matched with the data label indicated by the first label information from the account label indicated by the label information of the current account;
s14, identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
and S2, updating an account list according to the matching degree, wherein the account list comprises a first account list.
Optionally, in this embodiment, in the matching determination process, a tag that is the same as the data tag indicated by the first tag information in the account tags indicated by the tag information of the current account is determined as a matching tag, and the number of tags in the matching tag is obtained to be used for identifying the matching degree. And acquiring the account in the first account list according to the matching degree. Therefore, the purpose of accurately comparing the label information of the account and the first label information of the target data is achieved.
It should be noted that, in this embodiment, after the matching degree identified by the number of tags is obtained, accounts in the second account list, of which the matching degree is greater than the predetermined threshold, may be, but is not limited to, taken as accounts in the first account list, where the accounts in the first account list are part of the accounts in the second account list.
Optionally, in this embodiment, the first account list may be, but is not limited to, separately acquired to display the first account list in a display interface, where the accounts in the first account list may be, but is not limited to, displayed according to a matching degree, and may also be, but is not limited to, displayed according to a default order. This is not limited in this embodiment.
Optionally, in this embodiment, the arrangement order of all accounts in the second account list may also be updated according to the matching degree, but is not limited to this, where the accounts in the first account list that match the target data are arranged in the top N digits of the second account list. That is, in the second account list, other accounts that do not match the target data may also be displayed in the display interface, and the display order is after the accounts in the first account list. This is not limited in this embodiment.
Through the embodiment provided by the application, through comparing the tag information, the tag quantity of the tag matched with the data tag indicated by the first tag information is acquired from the account tag indicated by the tag information of the current account, the matching degree between the tag information of the current account and the first tag information is identified by using the tag quantity, so that the purpose of quickly acquiring the first account list matched with the target data and used for receiving is achieved through accurately comparing the tag information according to the matching degree, and the purpose of accurately and quickly acquiring the target account used for receiving the target data from the first account list is further achieved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing method, optionally, as shown in fig. 10, the data sharing method includes:
s1002, acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application;
s1004, responding to the sharing instruction to acquire first tag information matched with the target data, wherein the first tag information is used for indicating the category of the target data;
s1006, acquiring a second account list having an association relationship with the first account requesting to share the target data in the sharing instruction;
s1008, comparing the tag information of each account in the second account list with the first tag information, and obtaining a first account list according to a comparison result;
s1010, displaying the first account list on a display interface;
s1012, acquiring a target account for receiving the target data from the first account list;
and S1014, sharing the target data to the object account.
Optionally, in this embodiment, the data sharing method may be, but is not limited to, applied to a data sharing process of different applications, for example, the application may include, but is not limited to, at least one of the following: the data sharing method comprises the following steps of video playing application, news application, instant messaging application, shopping application and the like, wherein data sharing can be carried out among different accounts in the same application, and can also be carried out in different applications. The data format of the shared target data may include, but is not limited to, at least one of the following: text, pictures, video, flash animation, and so forth. The above is merely an example, and no limitation is made to other types of embodiments of the present application.
For example, taking the first application as an instant messaging application as an example, taking an article as an example of the target data, after a sharing instruction for performing a sharing operation on the article is obtained, first tag information matched with the article is obtained from the server, for example, the first tag information indicates that the article belongs to an economy class. If the sharing is performed in the instant messaging application, a second account list associated with the first account requesting the sharing in the instant messaging application can be obtained, tag information of the accounts in the second account list is obtained, the tag information is compared with the first tag information, and a first account list matched with the tag information is obtained, wherein tags of the accounts in the first account list are also indicated as economic. And displaying the first account list on a display interface, acquiring the object account from the first account list, and pushing the target data to the object account. The above is only an example, and this is not limited in this embodiment.
It should be noted that, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, the method comprises the steps of acquiring first label information matched with target data to be shared from a server to acquire a first account list according to the first label information, wherein the second label information of the account in the first account list is matched with the first label information, by the method of displaying the first account list and acquiring the object account for receiving the target data, not only can the target data to be shared be accurately shared to the object account needing the target data, and the object account matched with the shared target data is quickly acquired from the first account list, so that the time for searching the object account from a plurality of accounts is greatly reduced, and the effect of improving the data sharing efficiency is realized.
Optionally, in this scheme, when the first account list is displayed, the first account list may be displayed according to a predetermined order. For example, the accounts in the first account list are sorted according to the initial letter and then displayed, or the accounts in the first account list are displayed according to the use frequency, or the accounts in the first account list are sorted according to the latest use time.
For example, taking the example of sorting by initial letters, if the accounts "xiaoming", "susu" and "dachun" are included in the first account list, the result of sorting by initial letters may be as shown in fig. 11, where three accounts in the first account list are displayed in the sorting order of initial letters in fig. 11. By using the display method, the accounts in the first account list can be flexibly displayed, and the user can be helped to find the object account of the data to be shared as soon as possible, so that the display efficiency of the first account list is improved, and the efficiency of the data sharing process is further improved.
Optionally, the following method may be adopted in the present scheme for determining the first account list: taking the accounts in the second account list as current accounts respectively to execute the following operations: and under the condition that at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type, judging that the label information of the current account is matched with the first label information, and taking the current account as an account in a first account list.
That is to say, in this scheme, after the second account list is acquired, the label information of each account in the second account list is acquired. The tag information may include a plurality of tags. And comparing the label information of the account with the first label information, and if the same label exists, considering the account corresponding to the label information as the first account. Therefore, the first account list is selected from the second account list through the method. At least one account label of the selected accounts in the first account list is the same as the label in the first label information.
Optionally, in this scheme, when the first account list is displayed, a second account list may also be displayed, and the first account list is arranged in the first N digits of the second account list, where N is a natural number greater than or equal to 1. That is, for the selected first account list, accounts with a high possibility of being shared with the target data exist, and other accounts in the second account list also have a possibility of being shared with the target data. So that the second account list needs to be displayed. In addition, the first account list is displayed in the first N digits of the second account list, so that the first account list is more obviously displayed, and the data sharing efficiency is improved. For example, as shown in fig. 12, the accounts "minired" and "xianhua" are accounts in the first account list, and "tassel" is an account in the second account list. In addition to displaying "minired" and "floret", it is also necessary to display "tassel" which is located behind "minired" and "floret".
Optionally, in this scheme, when the first account list is displayed, the display order of the accounts in the first account list may be determined according to the matching degree between the account labels of the accounts in the first account list and the first label information. For example, a first account list with a high matching degree is displayed in the first N digits of a second account list, where N is a positive integer.
Optionally, in this scheme, before the second account list is displayed, the following operations may be performed by taking the accounts in the second account list as current accounts respectively: acquiring the number of labels, which are the same as the data labels indicated by the first label information, from the account labels indicated by the label information of the current account; and identifying the matching degree between the label information of the current account and the first label information by using the number of the labels. By the method, the matching degree between each account label information in the second account list and the first label information can be obtained. And displaying each account in the second account list according to the matching degree. By the method, the displayed accounts are higher in association between the account which is earlier and the first label information, so that a user can quickly select the target account, and the data sharing efficiency is improved.
Optionally, in this scheme, before the responding to the sharing instruction to obtain the first tag information matched with the target data, the method further includes: sending attribute information of the target data to the server so that the server acquires the first tag information matched with the target data according to the attribute information, wherein the attribute information comprises at least one of the following: and responding to the sharing instruction in the scheme to acquire first label information matched with the target data from a server.
Optionally, for other examples in the present scheme, reference may be made to examples in the foregoing method embodiments, which are not described herein again.
By the embodiment, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, acquiring first label information matched with target data to be shared from a server to acquire a first account list according to the first label information, wherein the second label information of the account in the first account list is matched with the first label information, meanwhile, by a method of displaying the first account list and acquiring the subject account for receiving the target data, therefore, not only can target data to be shared be accurately shared to the object account needing the target data, and the object account matched with the shared target data is quickly acquired from the first account list, so that the time for searching the object account from a plurality of accounts is greatly reduced, and the data sharing efficiency is improved.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing apparatus for implementing the data sharing method, as shown in fig. 13, the apparatus includes:
1) a first obtaining unit 1302, configured to obtain a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application;
2) a second obtaining unit 1304, configured to obtain, from the server in response to the sharing instruction, first tag information that matches the target data, where the first tag information is used to indicate a category to which the target data belongs;
3) a third obtaining unit 1306, configured to obtain a first account list according to the first tag information, where second tag information of an account in the first account list matches the first tag information;
4) a fourth obtaining unit 1308, configured to obtain a target account for receiving the target data from the first account list;
5) the sharing unit 1310 is configured to share the target data with the object account.
Optionally, in this embodiment, the data sharing apparatus may be applied to, but not limited to, a data sharing process of different applications, for example, the applications may include, but are not limited to, at least one of the following: the data sharing method comprises the following steps of video playing application, news application, instant messaging application, shopping application and the like, wherein data sharing can be carried out among different accounts in the same application, and can also be carried out in different applications. The data format of the shared target data may include, but is not limited to, at least one of the following: text, pictures, video, flash animation, and so forth. The above is merely an example, and no limitation is made to other types of embodiments of the present application.
For example, taking the first application as an instant messaging application as an example, taking an article as an example of the target data, after a sharing instruction for performing a sharing operation on the article is obtained, first tag information matched with the article is obtained from the server, for example, the first tag information indicates that the article belongs to an economy class. If the sharing is performed in the instant messaging application, a second account list associated with the first account requesting the sharing in the instant messaging application can be obtained, tag information of the accounts in the second account list is obtained, the tag information is compared with the first tag information, and a first account list matched with the tag information is obtained, wherein tags of the accounts in the first account list are also indicated as economic. And acquiring the object account from the first account list, and pushing the target data to the object account. The above is only an example, and this is not limited in this embodiment.
It should be noted that after a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application is acquired, acquiring first tag information matched with the target data to be shared from a server to acquire a first account list according to the first tag information, where second tag information of an account in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly acquired from the first account list, and thus time for searching the object account from a plurality of accounts is greatly reduced, and an effect of improving data sharing efficiency is achieved.
According to the embodiment provided by the application, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, the first tag information matched with the target data to be shared is acquired from the server, so that the first account list is acquired according to the first tag information, wherein the second tag information of the accounts in the first account list is matched with the first tag information, so that the target data to be shared can be accurately shared to the target account needing the target data, the target account matched with the shared target data is quickly acquired from the first account list, the time for searching the target account from a plurality of accounts is greatly reduced, and the effect of improving the efficiency of data sharing is achieved.
As an alternative, the third obtaining unit 1306 includes:
1) the first acquisition module is used for acquiring a second account list which has an association relation with a first account requesting to share target data in the sharing instruction;
2) the first comparison module is used for comparing the label information of the account in the second account list with the first label information;
3) and the second acquisition module is used for acquiring the first account list according to the comparison result.
According to the embodiment provided by the application, after the second account list having the association relation with the first account requesting to share the target data in the sharing instruction is obtained, the first account list is obtained according to the comparison result by comparing the tag information of the accounts in the second account list with the first tag information. Therefore, in the data sharing process, the first account list matched with the target data can be acquired, and the target data can be accurately shared to the object accounts which are included in the first account list and used for receiving the target data by accurately providing the first account list needing the target data.
As an alternative, the first comparison module comprises:
1) the first processing sub-module is configured to traverse all the accounts in the second account list, and perform the following operations with each account in the second account list as a current account in sequence: under the condition that at least one account label indicated by the label information of the current account is matched with at least one data label indicated by the first label information, judging that the label information of the current account is matched with the first label information; and taking the current account as an account in the first account list.
According to the embodiment provided by the application, through comparison of the tag information, under the condition that at least one account tag indicated by the tag information of the current account is matched with at least one data tag indicated by the first tag information, the tag information of the current account is judged to be matched with the first tag information, and then the current account is used as the account in the first account list, so that the purpose that the first account list matched with the target data and used for receiving is rapidly obtained through fuzzy comparison of the tag information is achieved, and the object account used for receiving the target data is accurately and rapidly obtained from the first account list.
As an alternative, the first comparison module comprises:
1) the first processing sub-module is configured to traverse all the accounts in the second account list, and perform the following operations with each account in the second account list as a current account in sequence: acquiring the label quantity of labels matched with the data labels indicated by the first label information from account labels indicated by the label information of the current account; identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
2) and the updating submodule is used for updating a second account list according to the matching degree, wherein the second account list comprises the first account list.
Through the embodiment provided by the application, through comparing the tag information, the tag quantity of the tag matched with the data tag indicated by the first tag information is acquired from the account tag indicated by the tag information of the current account, the matching degree between the tag information of the current account and the first tag information is identified by using the tag quantity, so that the purpose of quickly acquiring the first account list matched with the target data and used for receiving is achieved through accurately comparing the tag information according to the matching degree, and the purpose of accurately and quickly acquiring the target account used for receiving the target data from the first account list is further achieved.
As an optional scheme, the method further comprises the following steps:
1) and the first display module is used for displaying the first account list on the display interface according to a preset sequence after the first account list is acquired according to the comparison result.
According to the embodiment provided by the application, the first account list matched with the target data is directly displayed, so that the searching time of searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
As an alternative, the method comprises the following steps:
1) and the second display module is used for displaying the second account list on the display interface according to the matching degree after the first account list is obtained according to the comparison result, wherein the first account list is arranged in the first N digits in the second account list according to the matching degree, and N is a natural number greater than or equal to 1.
According to the embodiment provided by the application, the arrangement sequence of the second account list is updated, so that the first account list matched with the target data can be displayed in the first N digits of the second account list, the search time for searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
According to an embodiment of the present invention, there is also provided a data sharing apparatus, as shown in fig. 14, the apparatus including:
1) a receiving unit 1402, configured to receive a sharing instruction generated by a client of a first application executing a sharing operation on target data;
2) a first obtaining unit 1404, configured to obtain, according to the sharing instruction, first tag information matched with the target data, where the first tag information is used to indicate a category to which the target data belongs;
3) a second obtaining unit 1406, configured to obtain a first account list according to the first tag information, where second tag information of an account in the first account list matches the first tag information;
4) a third acquiring unit 1408, configured to acquire a target account selected from the first account list and used for receiving the target data;
5) the sharing unit 1410 is configured to share the target data with the object account.
Optionally, in this embodiment, the data sharing apparatus may be applied to, but not limited to, a data sharing process of different applications, for example, the applications may include, but are not limited to, at least one of the following: the data sharing method comprises the following steps of video playing application, news application, instant messaging application, shopping application and the like, wherein data sharing can be carried out among different accounts in the same application, and can also be carried out in different applications. The data format of the shared target data may include, but is not limited to, at least one of the following: text, pictures, video, flash animation, and so forth. The above is merely an example, and no limitation is made to other types of embodiments of the present application.
For example, taking the first application as an instant messaging application as an example, taking an article as an example of the target data, after a sharing instruction for performing a sharing operation on the article is obtained, first tag information matched with the article is obtained from the server, for example, the first tag information indicates that the article belongs to an economy class. If the sharing is performed in the instant messaging application, a second account list associated with the first account requesting the sharing in the instant messaging application can be obtained, tag information of the accounts in the second account list is obtained, the tag information is compared with the first tag information, and a first account list matched with the tag information is obtained, wherein tags of the accounts in the first account list are also indicated as economic. And acquiring the object account from the first account list, and pushing the target data to the object account. The above is only an example, and this is not limited in this embodiment.
It should be noted that after a sharing instruction generated by performing a sharing operation on target data in a display interface of a first application is acquired, acquiring first tag information matched with the target data to be shared from a server to acquire a first account list according to the first tag information, where second tag information of an account in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly acquired from the first account list, and thus time for searching the object account from a plurality of accounts is greatly reduced, and an effect of improving data sharing efficiency is achieved.
According to the embodiment provided by the application, after a sharing instruction generated by a client of a first application executing a sharing operation on target data is received, first tag information matched with the target data is obtained according to the sharing instruction, wherein the first tag information is used for indicating the type of the target data, so that a first account list is obtained according to the first tag information, and second tag information of accounts in the first account list is matched with the first tag information, so that not only can the target data to be shared be accurately shared to an object account needing the target data, but also an object account matched with the shared target data is quickly obtained from the first account list, the time for searching the object account from a plurality of accounts is greatly reduced, and the effect of improving the data sharing efficiency is achieved.
As an optional solution, the second obtaining unit includes:
1) the first acquisition module is used for acquiring a second account list which has an association relationship with a first account requesting to share target data in a sharing instruction in a first application;
2) the first comparison module is used for comparing the label information of the account in the second account list with the first label information;
3) and the second acquisition module is used for acquiring the first account list according to the comparison result.
According to the embodiment provided by the application, the first account list matched with the target data is directly displayed, so that the searching time of searching the object account for receiving the target data by turning pages in the related technology is reduced, and the efficiency of data sharing is improved by directly selecting the object account from the first account list.
As an optional solution, the second obtaining unit includes:
1) the third obtaining module is used for obtaining a third account list in a second application, wherein the third account list has an association relationship with a first account requesting to share target data in a sharing instruction, the second application is used for receiving the target data, and the first application and the second application are associated applications;
2) the second comparison module is used for comparing the label information of the account in the third account list with the first label information;
3) and the fourth acquisition module is used for acquiring the first account list according to the comparison result.
According to the embodiment provided by the application, after the account list having the association relation with the first account requesting to share the target data in the sharing instruction is obtained, the first account list is obtained according to the comparison result by comparing the tag information of the accounts in the account list with the first tag information. Therefore, in the data sharing process, the first account list matched with the target data can be acquired, and the target data can be accurately shared to the object accounts which are included in the first account list and used for receiving the target data by accurately providing the first account list needing the target data.
As an optional scheme, the second obtaining unit compares the tag information of the account in the account list with the first tag information by the following steps:
s1, traversing all accounts in the account list, and taking each account in the account list as a current account in turn to execute the following operations:
s12, under the condition that at least one account label indicated by the label information of the current account is matched with at least one data label indicated by the first label information, judging that the label information of the current account is matched with the first label information;
and S14, taking the current account as the account in the first account list.
According to the embodiment provided by the application, through comparison of the tag information, under the condition that at least one account tag indicated by the tag information of the current account is matched with at least one data tag indicated by the first tag information, the tag information of the current account is judged to be matched with the first tag information, and then the current account is used as the account in the first account list, so that the purpose that the first account list matched with the target data and used for receiving is rapidly obtained through fuzzy comparison of the tag information is achieved, and the object account used for receiving the target data is accurately and rapidly obtained from the first account list.
As an optional scheme, the second obtaining unit compares the tag information of the account in the account list with the first tag information by the following steps:
s1, traversing all accounts in the account list, and taking each account in the account list as a current account in turn to execute the following operations:
s12, acquiring the label quantity of the label matched with the data label indicated by the first label information from the account label indicated by the label information of the current account;
s14, identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
and S2, updating an account list according to the matching degree, wherein the account list comprises a first account list.
Through the embodiment provided by the application, through comparing the tag information, the tag quantity of the tag matched with the data tag indicated by the first tag information is acquired from the account tag indicated by the tag information of the current account, the matching degree between the tag information of the current account and the first tag information is identified by using the tag quantity, so that the purpose of quickly acquiring the first account list matched with the target data and used for receiving is achieved through accurately comparing the tag information according to the matching degree, and the purpose of accurately and quickly acquiring the target account used for receiving the target data from the first account list is further achieved.
According to another aspect of the embodiments of the present invention, there is also provided a data sharing apparatus, optionally, as shown in fig. 15, the data sharing apparatus includes:
(1) a first obtaining unit 1502 configured to obtain a sharing instruction generated by executing a sharing operation on target data in a display interface of a first application;
(2) a second obtaining unit 1504, configured to obtain, in response to the sharing instruction, first tag information that matches the target data, where the first tag information is used to indicate a category to which the target data belongs;
(3) a third obtaining unit 1506, configured to obtain a second account list having an association relationship with the first account requesting to share the target data in the sharing instruction;
(4) a comparing unit 1508, configured to compare the tag information of each account in the second account list with the first tag information, and obtain a first account list according to a comparison result;
(5) a display unit 1510, configured to display the first account list on a display interface;
(6) a fourth obtaining unit 1512, configured to obtain, from the first account list, a target account that receives the target data;
(7) a sharing unit 1514, configured to share the target data with the subject account.
Optionally, in this scheme, when the first account list is displayed, the first account list may be displayed according to a predetermined order. For example, the accounts in the first account list are sorted according to the initial letter and then displayed, or the accounts in the first account list are displayed according to the use frequency, or the accounts in the first account list are sorted according to the latest use time.
For example, taking the example of sorting by initial letters, if the accounts "xiaoming", "susu" and "dachun" are included in the first account list, the result of sorting by initial letters may be as shown in fig. 11, where three accounts in the first account list are displayed in the sorting order of initial letters in fig. 11. By using the display method, the accounts in the first account list can be flexibly displayed, and the user can be helped to find the object account of the data to be shared as soon as possible, so that the display efficiency of the first account list is improved, and the efficiency of the data sharing process is further improved.
Optionally, the following method may be adopted in the present scheme for determining the first account list: taking the accounts in the second account list as current accounts respectively to execute the following operations: and under the condition that at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type, judging that the label information of the current account is matched with the first label information, and taking the current account as an account in a first account list.
That is to say, in this scheme, after the second account list is acquired, the label information of each account in the second account list is acquired. The tag information may include a plurality of tags. And comparing the label information of the account with the first label information, and if the same label exists, considering the account corresponding to the label information as the first account. Therefore, the first account list is selected from the second account list through the method. At least one account label of the selected accounts in the first account list is the same as the label in the first label information.
Optionally, in this scheme, when the first account list is displayed, a second account list may also be displayed, and the first account list is arranged in the first N digits of the second account list, where N is a natural number greater than or equal to 1. That is, for the selected first account list, accounts with a high possibility of being shared with the target data exist, and other accounts in the second account list also have a possibility of being shared with the target data. So that the second account list needs to be displayed. In addition, the first account list is displayed in the first N digits of the second account list, so that the first account list is more obviously displayed, and the data sharing efficiency is improved. For example, as shown in fig. 12, the accounts "minired" and "xianhua" are accounts in the first account list, and "tassel" is an account in the second account list. In addition to displaying "minired" and "floret", it is also necessary to display "tassel" which is located behind "minired" and "floret".
Optionally, in this scheme, when the first account list is displayed, the display order of the accounts in the first account list may be determined according to the matching degree between the account labels of the accounts in the first account list and the first label information. For example, a first account list with a high matching degree is displayed in the first N digits of a second account list, where N is a positive integer.
Optionally, in this scheme, before the second account list is displayed, the following operations may be performed by taking the accounts in the second account list as current accounts respectively: acquiring the number of labels, which are the same as the data labels indicated by the first label information, from the account labels indicated by the label information of the current account; and identifying the matching degree between the label information of the current account and the first label information by using the number of the labels. By the method, the matching degree between each account label information in the second account list and the first label information can be obtained. And displaying each account in the second account list according to the matching degree. By the method, the displayed accounts are higher in association between the account which is earlier and the first label information, so that a user can quickly select the target account, and the data sharing efficiency is improved.
Optionally, in this scheme, before the obtaining, from the server, the first tag information matched with the target data in response to the sharing instruction, the method further includes: sending attribute information of the target data to the server so that the server acquires the first tag information matched with the target data according to the attribute information, wherein the attribute information comprises at least one of the following: a title of the target data, a summary of the target data, and a link address of the target data.
Optionally, for other examples in the present scheme, reference may be made to examples in the foregoing method embodiments, which are not described herein again.
By the embodiment, after the sharing instruction generated by executing the sharing operation on the target data in the display interface of the first application is acquired, acquiring first label information matched with target data to be shared from a server to acquire a first account list according to the first label information, wherein the second label information of the account in the first account list is matched with the first label information, meanwhile, by a method of displaying the first account list and acquiring the subject account for receiving the target data, therefore, not only can target data to be shared be accurately shared to the object account needing the target data, and the object account matched with the shared target data is quickly acquired from the first account list, so that the time for searching the object account from a plurality of accounts is greatly reduced, and the data sharing efficiency is improved.
According to an embodiment of the present invention, there is also provided a data sharing terminal for implementing the data sharing method, as shown in fig. 16, the terminal includes:
1) the communication interface 1602 is configured to obtain a sharing instruction generated by executing a sharing operation on target data in a display interface of a first application; the method comprises the steps that first label information matched with target data is obtained from a server in response to a sharing instruction, wherein the first label information is used for indicating the category of the target data;
2) a processor 1604, connected to the communication interface 1602, and configured to obtain a first account list according to the first tag information, where second tag information of the accounts in the first account list matches the first tag information;
the communication interface 1602 is further configured to obtain a target account for receiving the target data from the first account list; the method also comprises the steps of sharing target data to the object account;
3) the memory 1606, connected to the communication interface 1602 and the processor 1604, is configured to store the first tag information and the first account list.
According to an embodiment of the present invention, there is also provided a data sharing server for implementing the data sharing method, as shown in fig. 17, the server includes:
1) a communication interface 1702 configured to receive a sharing instruction generated by a client of a first application executing a sharing operation on target data;
2) the processor 1704 is connected with the communication interface 1702 and configured to obtain first tag information matched with the target data according to the sharing instruction, wherein the first tag information is used for indicating the category to which the target data belongs; the method further comprises the steps of obtaining a first account list according to the first label information, wherein second label information of the accounts in the first account list is matched with the first label information;
a communication interface 1702 further configured to acquire a target account selected from the first account list for receiving the target data; and the target data is shared to the object account.
3) The memory 1706, coupled to the communication interface 1702 and the processor 1704, is configured to store the first tag information and the first account list.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the data sharing method, as shown in fig. 18, the electronic apparatus includes a memory 1802 and a processor 1804, the memory 1802 stores therein a computer program, and the processor 1804 is configured to execute the steps in any one of the method embodiments described above through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a sharing instruction generated by executing sharing operation on target data in the display interface of the first application;
s2, responding to the sharing instruction, and acquiring first label information matched with the target data from a server, wherein the first label information is used for indicating the category to which the target data belongs;
s3, acquiring a second account list having an association relationship with the first account requesting to share the target data in the sharing instruction;
s4, comparing the label information of each account in the second account list with the first label information, and obtaining a first account list according to the comparison result;
s5, displaying the first account list on a display interface;
s6, acquiring the object account for receiving the target data from the first account list;
and S7, sharing the target data to the object account.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 18 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 18 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 18, or have a different configuration than shown in FIG. 18.
The memory 1802 may be used to store software programs and modules, such as program instructions/modules corresponding to the data sharing method and apparatus in the embodiments of the present invention, and the processor 1804 executes the software programs and modules stored in the memory 1802, so as to execute various functional applications and data processing, that is, implement the data sharing method. The memory 1802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1802 can further include memory located remotely from the processor 1804, which can be connected to the terminals over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1802 may be specifically but not limited to be used for storing information such as a first account list and a second account list. As an example, as shown in fig. 18, the memory 1802 may include, but is not limited to, a first obtaining unit 1502, a second obtaining unit 1504, a third obtaining unit 1506, a comparing unit 1508, a fourth obtaining unit 1510, and a sharing unit 1512 in the data sharing apparatus. In addition, the data sharing device may further include, but is not limited to, other module units in the data sharing device, which is not described in detail in this example.
Optionally, the transmitting device 1806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1806 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1808, configured to display the second account list and the first account list; and a connection bus 1810 for connecting the respective module components in the above-described electronic apparatus.
Embodiments of the present invention also provide a computer-readable storage medium. Alternatively, in this embodiment, the computer-readable storage medium may be located in at least one network device of a plurality of network devices in a network.
Optionally, in the present embodiment, a computer-readable storage medium is configured to store program codes for performing the following steps:
s1, acquiring a sharing instruction generated by executing sharing operation on target data in the display interface of the first application;
s2, responding to the sharing instruction, and acquiring first label information matched with the target data from the server, wherein the first label information is used for indicating the category of the target data;
s3, acquiring a first account list according to the first label information, wherein the second label information of the accounts in the first account list is matched with the first label information;
s4, acquiring a target account for receiving target data from the first account list;
and S5, sharing the target data to the object account.
Or, alternatively, in the present embodiment, a computer-readable storage medium is configured to store program codes for performing the steps of:
s1, receiving a sharing instruction generated by the client of the first application executing the sharing operation on the target data;
s2, acquiring first label information matched with the target data according to the sharing instruction, wherein the first label information is used for indicating the category of the target data;
s3, acquiring a first account list according to the first label information, wherein the second label information of the accounts in the first account list is matched with the first label information;
s4, acquiring a target account selected from the first account list and used for receiving target data;
and S5, sharing the target data to the object account.
Or, alternatively, in the present embodiment, a computer-readable storage medium is configured to store program codes for performing the steps of:
s1, acquiring a sharing instruction generated by executing sharing operation on target data in the display interface of the first application;
s2, responding to the sharing instruction, and acquiring first label information matched with the target data from a server, wherein the first label information is used for indicating the category to which the target data belongs;
s3, acquiring a second account list having an association relationship with the first account requesting to share the target data in the sharing instruction;
s4, comparing the label information of each account in the second account list with the first label information, and obtaining a first account list according to the comparison result;
s5, displaying the first account list on a display interface;
s6, acquiring the object account for receiving the target data from the first account list;
and S7, sharing the target data to the object account.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for sharing data, comprising:
acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application;
responding to the sharing instruction to obtain first label information matched with the target data, wherein the first label information is used for indicating the category of the target data;
acquiring a second account list having an association relation with a first account requesting to share the target data in the sharing instruction;
comparing the label information of each account in the second account list with the first label information, and obtaining a first account list according to a comparison result;
displaying a first account list arranged according to the initial letters or the use frequency or the latest use time on a display interface; or displaying the second account list on the display interface, wherein the second account list comprises the first account list, the first account list is arranged at the top N positions in the second account list, and N is a positive integer;
acquiring a target account for receiving the target data from the first account list;
sharing the target data to the object account;
wherein the obtaining of the first tag information matched with the target data in response to the sharing instruction includes: and sending the uniform resource symbol of the target data to a server so that the server acquires the linked text content corresponding to the uniform resource symbol, segmenting words of the text content, comparing the segmentation result with the keywords obtained by pre-learning, and acquiring the first label information according to the comparison result.
2. The method according to claim 1, wherein the comparing the tag information of each account in the second account list with the first tag information, and obtaining the first account list according to the comparison result comprises:
taking the accounts in the second account list as current accounts respectively to execute the following operations: and under the condition that at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type, judging that the label information of the current account is matched with the first label information, and taking the current account as an account in a first account list.
3. The method of claim 1, wherein displaying the second list of accounts on the display interface comprises:
and displaying the accounts in the first account list in the first N digits of the second account list according to the matching degree.
4. The method of claim 1,
before the second account list is displayed on a display interface, the method further includes: and respectively taking the accounts in the second account list as current accounts to execute the following operations: acquiring the number of labels, which are the same as the data labels indicated by the first label information, from the account labels indicated by the label information of the current account; identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
the displaying the second account list on the display interface includes: and displaying the second account list according to the matching degree.
5. The method according to any one of claims 1 to 4, further comprising, before the obtaining the first tag information matching the target data in response to the sharing instruction:
sending attribute information of the target data to a server so that the server acquires the first label information matched with the target data according to the attribute information, wherein the attribute information comprises at least one of the following items: a title of the target data, a summary of the target data, and a link address of the target data.
6. A data sharing apparatus, comprising:
the first acquisition unit is used for acquiring a sharing instruction generated by executing sharing operation on target data in a display interface of a first application;
the second obtaining unit is used for responding to the sharing instruction to obtain first label information matched with the target data, wherein the first label information is used for indicating the category of the target data;
a third obtaining unit, configured to obtain a second account list having an association relationship with a first account requesting to share the target data in the sharing instruction;
the comparison unit is used for comparing the label information of each account in the second account list with the first label information and obtaining a first account list according to a comparison result;
the display unit comprises a first display module and a second display module, wherein the first display module is used for displaying a first account list which is arranged according to the first letter, the use frequency, the latest use time and the like on the display interface; or a second display module, configured to display the second account list on the display interface, where the second account list includes the first account list, the first account list is arranged in the first N digits of the second account list, and N is a positive integer;
a fourth obtaining unit, configured to obtain, from the first account list, a target account that receives the target data;
the sharing unit is used for sharing the target data to the object account;
wherein the apparatus is further configured to: and sending the uniform resource symbol of the target data to a server so that the server acquires the linked text content corresponding to the uniform resource symbol, segmenting words of the text content, comparing the segmentation result with the keywords obtained by pre-learning, and acquiring the first label information according to the comparison result.
7. The apparatus of claim 6, wherein the alignment unit comprises:
a first execution module, configured to respectively use the accounts in the second account list as current accounts to perform the following operations: and under the condition that at least one account label indicated by the label information of the current account and at least one data label indicated by the first label information belong to labels of the same label type, judging that the label information of the current account is matched with the first label information, and taking the current account as an account in a first account list.
8. The apparatus of claim 7, wherein the second display module comprises:
and the first display sub-module is used for displaying the accounts in the first account list in the first N digits of the second account list according to the matching degree.
9. The apparatus of claim 7,
the display unit further includes: a second execution module, configured to, before the second account list is displayed on the display interface, take the accounts in the second account list as current accounts respectively to execute the following operations: acquiring the number of labels, which are the same as the data labels indicated by the first label information, from the account labels indicated by the label information of the current account; identifying the matching degree between the label information of the current account and the first label information by using the number of labels;
the second display module includes: and the second display sub-module is used for displaying the second account list according to the matching degree.
10. A computer-readable storage medium, in which a computer program is stored, which computer program, when running, performs the method of any one of claims 1 to 5.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN201910642581.1A 2017-04-12 2017-04-12 Data sharing method and device, storage medium and electronic device Active CN110380954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642581.1A CN110380954B (en) 2017-04-12 2017-04-12 Data sharing method and device, storage medium and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710238292.6A CN107147560A (en) 2017-04-12 2017-04-12 Data sharing method and device
CN201910642581.1A CN110380954B (en) 2017-04-12 2017-04-12 Data sharing method and device, storage medium and electronic device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710238292.6A Division CN107147560A (en) 2017-04-12 2017-04-12 Data sharing method and device

Publications (2)

Publication Number Publication Date
CN110380954A CN110380954A (en) 2019-10-25
CN110380954B true CN110380954B (en) 2021-01-15

Family

ID=59773519

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910642581.1A Active CN110380954B (en) 2017-04-12 2017-04-12 Data sharing method and device, storage medium and electronic device
CN201710238292.6A Pending CN107147560A (en) 2017-04-12 2017-04-12 Data sharing method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710238292.6A Pending CN107147560A (en) 2017-04-12 2017-04-12 Data sharing method and device

Country Status (2)

Country Link
CN (2) CN110380954B (en)
WO (1) WO2018188460A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110380954B (en) * 2017-04-12 2021-01-15 腾讯科技(深圳)有限公司 Data sharing method and device, storage medium and electronic device
CN108551419A (en) * 2018-03-19 2018-09-18 联想(北京)有限公司 A kind of information processing method and device
CN108616448B (en) * 2018-04-26 2020-04-14 维沃移动通信有限公司 Information sharing path recommendation method and mobile terminal
CN108664288A (en) * 2018-05-14 2018-10-16 维沃移动通信有限公司 A kind of image interception method and mobile terminal
CN109245989A (en) * 2018-08-15 2019-01-18 咪咕动漫有限公司 A kind of processing method, device and computer readable storage medium shared based on information
CN110609816B (en) * 2019-08-30 2022-12-20 维沃移动通信有限公司 Information sharing method, information sharing device and terminal
CN111143421A (en) * 2019-12-26 2020-05-12 杭州数梦工场科技有限公司 Data sharing method and device, electronic equipment and storage medium
CN111429200B (en) * 2020-02-24 2023-04-28 浙江口碑网络技术有限公司 Content association method and device, storage medium and computer equipment
CN111740896B (en) * 2020-07-07 2023-07-25 腾讯科技(深圳)有限公司 Content sharing control method and device, electronic equipment and storage medium
CN114358098A (en) * 2020-09-30 2022-04-15 京东方科技集团股份有限公司 Information sharing method and device, electronic equipment and readable storage medium
CN112399216B (en) * 2020-10-27 2023-05-09 维沃移动通信(杭州)有限公司 Resource sharing method and device and electronic equipment
CN114895991A (en) * 2021-02-05 2022-08-12 华为技术有限公司 Content sharing method and electronic equipment
CN113285940B (en) * 2021-05-17 2023-09-19 深圳Tcl新技术有限公司 Equipment connection method and device
CN112994997B (en) * 2021-05-21 2022-07-29 深圳传音控股股份有限公司 Processing method, processing apparatus, and storage medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9111255B2 (en) * 2010-08-31 2015-08-18 Nokia Technologies Oy Methods, apparatuses and computer program products for determining shared friends of individuals
US20120158499A1 (en) * 2010-12-21 2012-06-21 Google Inc. Providing Advertisements on a Social Network
CN103002013B (en) * 2012-11-06 2016-12-21 深圳中兴网信科技有限公司 Social order programme and social method for ordering song
CN103970972B (en) * 2013-01-31 2018-08-17 中国移动通信集团公司 Movable information treating method and apparatus
CN104144196A (en) * 2013-07-05 2014-11-12 腾讯科技(深圳)有限公司 Webpage information sharing method, device and server
CN103577537B (en) * 2013-09-24 2016-08-17 上海交通大学 Multiplex paring similarity towards images share website picture determines method
US9940664B2 (en) * 2013-12-30 2018-04-10 Tencent Technology (Shenzhen) Company Limited Information input method, account information input method and terminal
CN103914559A (en) * 2014-04-14 2014-07-09 小米科技有限责任公司 Network user screening method and network user screening device
CN104317932B (en) * 2014-10-31 2018-04-27 小米科技有限责任公司 Method for picture sharing and device
CN105591763B (en) * 2014-11-18 2019-05-21 华为终端(东莞)有限公司 A kind of method and terminal for distributing photo
US10876953B2 (en) * 2015-07-15 2020-12-29 Becton, Dickinson And Company System and method for label selection
CN105282010B (en) * 2015-09-14 2019-04-23 小米科技有限责任公司 Processing method, device and the server that information is shared
CN105721283B (en) * 2016-01-26 2020-03-17 北京小米移动软件有限公司 Method, device and equipment for sending screenshot message
CN105872593A (en) * 2016-03-21 2016-08-17 乐视网信息技术(北京)股份有限公司 Barrage pushing method and device
CN106055538B (en) * 2016-05-26 2019-03-08 达而观信息科技(上海)有限公司 The automatic abstracting method of the text label that topic model and semantic analysis combine
CN106446191B (en) * 2016-09-30 2019-11-05 浙江工业大学 A kind of multiple features network flow row label prediction technique returned based on Logistic
CN110380954B (en) * 2017-04-12 2021-01-15 腾讯科技(深圳)有限公司 Data sharing method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN107147560A (en) 2017-09-08
CN110380954A (en) 2019-10-25
WO2018188460A1 (en) 2018-10-18

Similar Documents

Publication Publication Date Title
CN110380954B (en) Data sharing method and device, storage medium and electronic device
CN108021929B (en) Big data-based mobile terminal e-commerce user portrait establishing and analyzing method and system
CN109840793B (en) Promotion information pushing method and device, storage medium and electronic device
CN107506495B (en) Information pushing method and device
CN107426328B (en) Information pushing method and device
US20140095308A1 (en) Advertisement distribution apparatus and advertisement distribution method
CN110020162B (en) User identification method and device
CN110276060B (en) Data processing method and device
CN107995285B (en) Information display method, device, server and readable storage medium
KR102269061B1 (en) System for recommending providing integrated contents using usage information recognition of applications
CN103455587B (en) Obtain and push the method and device of content, receive the method and device for pushing content
CN107590267A (en) Information-pushing method and device, terminal and readable storage medium storing program for executing based on picture
CN109829073B (en) Image searching method and device
CN113382301A (en) Video processing method, storage medium and processor
CN107562847B (en) Information processing method and related product
CN111241400B (en) Information searching method and device
CN106899755B (en) Information sharing method, information sharing device and terminal
CN110750707A (en) Keyword recommendation method and device and electronic equipment
CN110910178A (en) Method and device for generating advertisement
US20160210335A1 (en) Server and service searching method of the server
CN103716419B (en) The domain name processing method and system of a kind of cross-terminal
CN112182460A (en) Resource pushing method and device, storage medium and electronic device
CN109032683B (en) Configuration data processing method and device
CN108304425B (en) Image-text information recommendation method, device and system
CN106330979B (en) Router login method and device

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
GR01 Patent grant
GR01 Patent grant