Content association method, system, device, electronic device and storage medium
By obtaining the title of the target document and determining the conjunctions in the specified document and displaying these conjunctions, the document association problem is solved and the user experience and document processing efficiency is improved.
Patent Information
- Application Number
- CN202110472315.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-04-29
AI Technical Summary
The prior art is difficult to effectively associate relevant content in documents written by users, making it difficult for users to summarize and master document content.
By obtaining the title of the target document as pending content, determine the entity words in the specified document that are related to it but do not appear in the target document, and display these conjunctions so that the user can understand the correlation between documents.
It realizes the effective connection between documents and other documents, improves user experience and document processing client usage stickiness, and helps users to master document content more easily.
Smart Images

Figure CN113204578B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of document processing technology, and in particular to a content association method, system, device, electronic device and storage medium. Background Art
[0002] Users usually edit documents through a document processing client, wherein the document content is edited according to the actual needs of the user. For example, if the document content is the note content during the learning process, in this case, a document is a note.
[0003] Usually, the contents of some documents of the same user are related. Therefore, if the user knows which contents of other documents of the user are related to the documents written by the user, it will be easier for the user to summarize and grasp the contents of the documents.
[0004] Based on this, how to effectively associate documents with relevant content in other documents is an urgent problem to be solved. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a content association method, system, device, electronic device and storage medium to effectively associate a document with related content in other documents. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a content association method, which is applied to an electronic device, and the method includes:
[0007] Get the title in the target document as the content to be processed;
[0008] Determine the associated words about the content to be processed in each designated document; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0009] For the target document, the determined associated words are displayed.
[0010] Optionally, after the step of displaying the determined associated words for the target document, the method further comprises:
[0011] Acquire target content as new content to be processed, and execute the step of determining associated words corresponding to the content to be processed in each designated document;
[0012] The target content is the displayed associated words.
[0013] Optionally, any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
[0014] Optionally, the method for searching the associated words of the content to be processed in each designated document includes:
[0015] From multiple documents, determine each designated document;
[0016] For each of the designated documents, extract entity words from a content block of the document containing the content to be processed, and establish a corresponding relationship between the extracted entity words and a document identifier of the document;
[0017] Based on the corresponding relationship, the entity word corresponding to the document identifier of the target document is determined from the extracted entity words, and the determined entity words are eliminated to obtain associated words about the content to be processed.
[0018] Optionally, obtaining the title of the target document of the user as the content to be processed includes:
[0019] When a first content association operation on a title of a target document of a user is detected, the title in the target document is obtained as content to be processed.
[0020] Optionally, the acquiring of target content as new content to be processed includes:
[0021] When a second content association operation for the target content is detected, the target content is acquired as new content to be processed.
[0022] In a second aspect, an embodiment of the present invention provides a content association system, the system comprising: a document processing client and a predetermined server;
[0023] The document processing client is used to obtain the title in the target document as the content to be processed, construct a content association request carrying the content to be processed, and send the content association request to a predetermined server;
[0024] The predetermined server is used to search for associated words related to the content to be processed in each designated document after receiving the content association request, and feed back the found associated words to the document processing client; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0025] The document processing client is further used to receive the associated words fed back by the predetermined server, and display the determined associated words for the target document.
[0026] Optionally, the document processing client is further configured to, after the step of displaying the determined associated words for the target document, obtain target content as new content to be processed, and execute the step of constructing a content association request carrying the content to be processed;
[0027] The target content is the displayed associated words.
[0028] Optionally, any to-be-processed content belonging to the target content is displayed in association with the corresponding associated words in a predetermined multi-level display manner.
[0029] Optionally, the predetermined server searches for associated words related to the content to be processed in each designated document, including:
[0030] From multiple documents, determine each designated document;
[0031] For each of the designated documents, extract entity words from a content block of the document containing the content to be processed, and establish a corresponding relationship between the extracted entity words and a document identifier of the document;
[0032] Based on the corresponding relationship, the entity word corresponding to the document identifier of the target document is determined from the extracted entity words, and the determined entity words are eliminated to obtain associated words about the content to be processed.
[0033] In a third aspect, an embodiment of the present invention provides a content association device, which is applied to an electronic device, and the device includes:
[0034] The acquisition module is used to obtain the title in the target document as the content to be processed;
[0035] A determination module, used to determine the associated words in each designated document related to the content to be processed; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0036] The display module is used to display the determined associated words for the target document.
[0037] Optionally, the acquisition module is further configured to acquire target content as new content to be processed and trigger the determination module after the step of displaying the determined associated words for the target document;
[0038] The target content is the displayed associated words.
[0039] Optionally, any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
[0040] Optionally, the method for searching the associated words of the content to be processed in each designated document includes:
[0041] From multiple documents, determine each designated document;
[0042] For each of the designated documents, extract entity words from a content block of the document containing the content to be processed, and establish a corresponding relationship between the extracted entity words and a document identifier of the document;
[0043] Based on the corresponding relationship, the entity word corresponding to the document identifier of the target document is determined from the extracted entity words, and the determined entity words are eliminated to obtain associated words about the content to be processed.
[0044] In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0045] Memory, used to store computer programs;
[0046] The processor is used to implement the method steps provided in the first aspect when executing the program stored in the memory.
[0047] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps provided in the first aspect are implemented.
[0048] An embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of any of the above-mentioned content association methods.
[0049] In the solution provided by the embodiment of the present invention, considering that the title of the target document can better represent the content recorded in the target document, the title of the target document is used as the association basis; and considering that entity words can represent words with specific meanings and the content in the same content block has a strong correlation, after determining the content to be processed as the association basis, the associated words about the content to be processed in each specified document, that is, the relevant content of the target document in other documents, can be determined; and the determined associated words are displayed for the target document. It can be seen that through this solution, the document can be effectively associated with the relevant content in other documents.
[0050] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0052] Figure 1 A flow chart of a content association method provided by an embodiment of the present invention;
[0053] Figure 2 Another flow chart of the content association method provided by an embodiment of the present invention;
[0054] Figure 3 Another flow chart of the content association method provided by the embodiment of the present invention;
[0055] FIG4( a ) shows a schematic diagram of an interface using a dot as a predetermined identification symbol;
[0056] FIG4( b ) exemplarily shows a schematic diagram of a graph menu in a document processing client;
[0057] Figure 4(c)-Figure 4(f) A schematic diagram of an exemplary tab interface displayed through a diagram menu;
[0058] FIG4( g ) shows a schematic diagram of the interaction between the terminal device, the reservation service end and the intelligent processing end;
[0059] Figure 5 A schematic diagram of the structure of a content association system provided by an embodiment of the present invention;
[0060] Figure 6 A schematic diagram of the structure of a content association device provided by an embodiment of the present invention;
[0061] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.
[0063] In order to achieve the purpose of effectively associating a document with related content in other documents, embodiments of the present invention provide a content association method, system, device, electronic device, and storage medium.
[0064] The following first introduces the content association method provided by the embodiment of the present invention.
[0065] The content association method provided in the embodiment of the present invention is applied to an electronic device. In a specific application, the electronic device may be a terminal device, such as a smart phone, a tablet computer, a laptop computer, etc. Of course, the electronic device is not limited to a terminal device, for example, the electronic device may also be a server, which is also reasonable.
[0066] Furthermore, the functional software implementing the content association method provided in the embodiment of the present invention may be a content association device running in an electronic device. If the electronic device is a terminal device, the content association device may be a functional module of a document processing client running in the terminal device; and if the electronic device is a server, the content association device may be a functional module of a predetermined server running in the server, and the predetermined server is a server corresponding to the document processing client on the user side.
[0067] Among them, users usually edit the document content through a document processing client, and the document content is edited according to the actual needs of the user. Exemplarily, the document processing client can be a special log client for recording notes / logs edited by users. It should be emphasized that any client for document editing that has content association requirements can be used as the document processing client described in the embodiment of the present invention. In addition, the document processing client can be a client in the form of an APP (Application) or a client in the form of a web page. The embodiment of the present invention does not limit the specific form of the client. Usually, the contents of some documents of the same user are related. Then, for the documents written by the user, if it is known which contents of the user's other documents are related, it can make it easier for the user to summarize and master the knowledge points.
[0068] In order to effectively associate a document with related content in other documents, thereby improving the user experience and stickiness of the document processing client, the content association method provided in the embodiment of the present invention may include the following steps:
[0069] Get the title in the target document as the content to be processed;
[0070] Determine the associated words related to the content to be processed in each designated document; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0071] For the target document, the determined associated words are displayed.
[0072] In the solution provided by the embodiment of the present invention, considering that the title of the target document can better represent the content recorded in the target document, the title of the target document is used as the association basis; and considering that entity words can represent words with specific meanings and the content located in the same content block has a strong correlation, after determining the content to be processed as the association basis, the associated words about the content to be processed in each designated document, that is, the relevant content of the target document in other documents, can be determined; and the determined associated words are displayed for the target document. It can be seen that through this solution, the document can be effectively associated with the relevant content in other documents.
[0073] The content association method provided by the embodiment of the present invention is introduced below with reference to the accompanying drawings.
[0074] like Figure 1 As shown, a content association method provided by an embodiment of the present invention may include the following steps:
[0075] S101, obtaining the title in the target document as the content to be processed;
[0076] Considering that the title of the target document can better represent the content recorded in the target document, if the target document needs to be effectively associated with the relevant content in other documents of the user, the title of the target document can be used as the association basis to perform the subsequent processing association process. Among them, the target document is any document of any user to be associated with the content.
[0077] Optionally, in one implementation, obtaining the title in the target document as the content to be processed may include:
[0078] When a first content association operation for a title of a target document is detected, obtaining the title in the target document as content to be processed;
[0079] The first content association operation is initiated by the user in the display interface of the target document.
[0080] In this implementation, if the electronic device detects the first content association operation on the title of the target document issued by the user to which the target document belongs, it indicates that the user wants to associate the target document with other documents. Therefore, the title in the target document, that is, the title on which the content association operation is performed, can be obtained as the content to be processed. The triggering display method of the display interface of the target document is not limited by the embodiment of the present invention; the display interface of the target document can be the document interface of the target document, or the tab interface of the target document, etc.
[0081] Exemplarily, the first content-related operation may be a selection operation of the exploration mark corresponding to the title in the target document. The exploration mark may be displayed in association with the title in the target document, for example, displayed on any of the upper, lower, left, or right sides of the title in the target document. Furthermore, the exploration mark may be a mark that is continuously displayed from the start of the display of the display interface, or it may be displayed when a specified operation on the title of the target document is detected. For example, if the target document is displayed on a computer or other device that performs document operations via a mouse, the exploration mark may be displayed in the display interface of the target document when the mouse is detected hovering over the title. If the target document is displayed on a smartphone or other device that performs document operations via touch operations, the exploration mark may be displayed in the display interface of the target document when a long press operation, double-click operation, etc., on the title of the target document is detected.
[0082] Exemplarily, the first content-associated operation may also be: performing a predetermined operation on the title in the target document itself. For example, if the target document is displayed on a device such as a smartphone that performs document operations through touch operations, the first content-associated operation may be a long press operation, a double-click operation, etc. on the title of the target document.
[0083] The above-mentioned specific contents of the first content association operation are merely examples and should not constitute a limitation on the embodiments of the present invention.
[0084] Optionally, in another implementation, obtaining the title of the target document as the content to be processed may include: when detecting that the display interface of the target document is displayed, or when detecting that the user edits the target document, obtaining the title of the target document. In this implementation, the user does not need to perform any operation, and the electronic device triggers the content association for the target document by itself.
[0085] It should be emphasized that the above-mentioned specific implementation method of obtaining the title of the user's target document is only an example and should not constitute a limitation on the embodiments of the present invention.
[0086] S102, determining associated words in each designated document related to the content to be processed;
[0087] Among them, the designated document is a document containing the content to be processed, and the associated word is an entity word that belongs to the same content block as the content to be processed and does not appear in the target document. That is to say, the entity words in each designated document that belong to the same content block as the content to be processed and do not appear in the target document are determined as associated words about the processed content. It should be noted that each document contains at least one content block. Exemplarily, each content block can be a paragraph; or, each content block is a text block of the document content with a predetermined identifier as the starting content. For example: in the interface shown in Figure 4(a), a dot is used as the predetermined identification symbol, and each content block uses a dot as the starting content. Three content blocks are shown in Figure 4(a).
[0088] Moreover, entity words are words that represent physical things, including nouns and pronouns, and the categories of entity words can include multiple types, such as: names of people, places, names of organizations, and other proper nouns, etc. Based on the introduction of entity words, considering that entity words can represent words with specific meanings and the contents in the same content block have a strong correlation, therefore, after determining the content to be processed as the basis for association, the associated words about the content to be processed in each specified document can be determined. Among them, the number of entity words found that belong to the same content block as the content to be processed and do not appear in the target document can be at least one, and the number of associated words about the content to be processed can be at least one.
[0089] In order to better reflect the relevance, in an optional implementation, the associated word can be an entity word of a specified category that belongs to the same content block as the content to be processed and does not appear in the target document. Exemplarily, the specified category can include: one or more of: names of people, places, names of organizations, and other proper nouns, and the specified category can be set according to actual conditions, which is not limited in the embodiment of the present invention.
[0090] In addition, if the electronic device is a terminal device, considering that the predetermined server stores all the user's documents and considering the device performance, the electronic device can determine the associated words about the content to be processed in each designated document with the assistance of the predetermined server, specifically: send a content association request carrying the content to be processed to the predetermined server, so that after receiving the content association request, the predetermined server searches for the associated words about the content to be processed from each designated document and feeds back to the electronic device. If the electronic device is a terminal device, if the processing performance of the electronic device is better, or the electronic device locally stores multiple documents of the user, or the network performance between the electronic device and the predetermined server is better, at this time, the electronic device can determine the associated words about the content to be processed in each designated document without the assistance of the predetermined server, specifically: search for the associated words about the content to be processed from each designated document to obtain the associated words about the content to be processed.
[0091] If the electronic device is a server, at this time, the electronic device can search for associated words about the content to be processed from each designated document, and send the obtained associated words to the document processing client, so that the document processing client displays the determined associated words for the target document.
[0092] It should be noted that, whether the electronic device is a terminal device or a server, the method for searching the associated words of the content to be processed in each designated document can be the same. For the sake of clarity of the scheme and layout, the following is an exemplary introduction to the method for searching the associated words of the content to be processed in each designated document.
[0093] S103, displaying the determined associated words for the target document.
[0094] Optionally, in one implementation, for the target document, displaying the determined associated words may include: displaying the determined associated words in the display interface of the target document. In this implementation, the determined associated words may be displayed at a predetermined position in the display interface of the target document. Exemplarily, the determined associated words are displayed after the document content in the display interface of the target document, or the determined associated words are displayed at a position between the title and the document content in the display interface of the target document, but it is certainly not limited thereto. In addition, the associated words displayed in the display interface of the target document may be set to a predetermined color, bold, italic, etc., to achieve a highlighting effect. Optionally, in another implementation, for the target document, displaying the determined associated words may include: displaying the determined associated words in a newly created document of the electronic device for the target document, or in any other document selected by the user. Wherein, the title of the target document and the determined associated words may be displayed correspondingly in the newly created document or any other document. Thus, through the content recorded in the newly created document or any other document, it can be learned that the relevant content of the target document may be the determined associated word.
[0095] The above-mentioned specific implementation method of determining the associated words for the target document is merely an example and should not constitute a limitation on the embodiments of the present invention.
[0096] In the solution provided by the embodiment of the present invention, considering that the title of the target document can better represent the content recorded in the target document, the title of the target document is used as the association basis; and considering that entity words can represent words with specific meanings and the content located in the same content block has a strong correlation, after determining the content to be processed as the association basis, the associated words about the content to be processed in each designated document, that is, the relevant content of the target document in other documents, can be determined; and the determined associated words are displayed for the target document. It can be seen that through this solution, the document can be effectively associated with the relevant content in other documents.
[0097] Based on any of the above embodiments, the displayed associated words can be further explored to obtain deeper associated content with the target document. Figure 2 As shown, the content association method may further include:
[0098] S104, obtaining the target content as new content to be processed, and returning to execute step S102;
[0099] The target content is the displayed associated words.
[0100] In order to obtain the deeper related content with the target document, after the determined related words are displayed for the target document, the target content can be obtained to trigger a new round of content association operation. Moreover, after the determined related words about the target content are displayed for the target document, the related words about the target content can still continue to be used as the target content, thereby obtaining new content to be processed, and continuing to execute steps S102-S103.
[0101] Optionally, in an implementation manner, obtaining target content as new content to be processed may include:
[0102] When a second content-associated operation on the target content is detected, the target content is acquired as new content to be processed.
[0103] In this implementation, if the electronic device detects that the user to which the target user belongs issues a second content association operation on the target content, it indicates that the user wishes to continue the association exploration, and therefore the target content can be obtained as new content to be processed.
[0104] Exemplarily, the second content-related operation may be a selection operation on the exploration mark corresponding to the target content. The exploration mark may be displayed in association with the target content, for example, displayed on any of the upper, lower, left, or right sides of the target content. Furthermore, the exploration mark may be a mark that is continuously displayed from the moment the target content starts to be displayed, or it may be displayed when a specified operation on the target content is detected. For example, if the target document is displayed on a computer or other device that performs document operations via a mouse, the exploration mark may be displayed when it detects that the mouse is hovering over the target content; and if the target document is displayed on a smartphone or other device that performs document operations via touch operations, the exploration mark may be displayed when a long press operation, double-click operation, etc., on the target content is detected.
[0105] Exemplarily, the second content-associated operation may be: performing a predetermined operation on the target content itself. For example, if the target document is displayed on a device such as a smartphone that performs document operations through touch operations, the second content-associated operation may be a long press operation, a double-click operation, etc. on the target content.
[0106] The specific contents of the second content association operation described above are merely examples and should not limit the embodiments of the present invention.
[0107] Optionally, in another implementation, obtaining the target content as new content to be processed may include: obtaining the target content when detecting that the target content is displayed. In this implementation, the user does not need to perform any operation, and the electronic device triggers the content association for the target content by itself. It is understandable that in this implementation, every time a new associated word is displayed, the new associated word can be used as a new content to be processed, and when no associated word of the new content to be processed is detected, the continued exploration of the associated word will stop.
[0108] It should be emphasized that the above-mentioned acquisition of target content, as a specific implementation method of new content to be processed, is only an example and should not constitute a limitation on the embodiments of the present invention.
[0109] In addition, in order to intuitively reflect the relationship between the target content and the associated words corresponding to the target content, that is, to determine the associated words corresponding to the target content based on the target content, optionally, any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined hierarchical display manner. For example, in a predetermined multi-level display manner, the associated words of the target content are displayed as the next-level content of the target content.
[0110] In this embodiment, the document can be effectively associated with related content in other documents; and because the associated words can be further explored, deeper associated content with the target document can be obtained, thereby further improving the user experience.
[0111] In order to make the scheme and layout clear, the following is an exemplary introduction to the method of searching for associated words related to the content to be processed in each specified document.
[0112] Optionally, in one implementation, each designated document may include the target document;
[0113] Accordingly, the method for searching for the associated words of the content to be processed in each designated document may include steps AC:
[0114] Step A, determining each designated document from a plurality of documents;
[0115] Among them, the multiple documents are all documents of the user to whom the target document belongs. The specific implementation method of whether any document contains the content to be processed can be the same as the implementation method of identifying whether the text content contains specified content in the prior art, and the embodiment of the present invention will not elaborate on this.
[0116] Step B, for each document in each designated document, extracting entity words from the content block of the document containing the content to be processed, and establishing a corresponding relationship between the extracted entity words and the document identifier of the document;
[0117] After determining each designated document, the content block containing the content to be processed can be determined for each of the designated documents, and entity words can be extracted from the content block containing the content to be processed of the document, and a corresponding relationship between the extracted entity words and the document identifier of the document can be established. The document identifier of any document is used to uniquely identify the document, and the document identifier of any document can be the title of the document, or it can be a digital identifier generated by a predetermined server or document processing client based on a preset digital identifier generation algorithm, which is reasonable.
[0118] Exemplarily, the step of extracting entity words from the content block of the document containing the content to be processed may include:
[0119] The content block of the document containing the processed title is input into a pre-trained language model to perform character-level encoding on the content block. The encoded text information is then classified through a CRF (conditional random field) algorithm to obtain the entity category of each character in the content block. Adjacent characters of the same category are concatenated to obtain the entity category of each word. Based on the entity category of each word, the required entity words in the content block are obtained.
[0120] Among them, CRF is a sequence labeling algorithm that can be used for tasks such as part-of-speech tagging, word segmentation, named entity recognition, etc. It can be understood that if the associated word is an entity word of a specified category, then based on the entity category of each word, the entity word of the specified category can be selected from multiple words to obtain the required entity words in the content block.
[0121] Step C, based on the corresponding relationship, determine the entity word corresponding to the document identifier of the target document from the extracted entity words, and remove the determined entity words to obtain the associated words about the content to be processed.
[0122] Through this implementation, associated words related to the content to be processed can be found from each designated document.
[0123] Optionally, in one implementation, each designated document may not include the target document;
[0124] Accordingly, the method for searching for the associated words of the content to be processed in each designated document may include step DE:
[0125] Step D: Determine documents containing to-be-processed content other than the target document from the multiple documents to obtain designated documents; wherein the multiple documents are all documents of the user to whom the target document belongs.
[0126] Step C, for each document in each designated document, extracting entity words from a content block of the document containing the content to be processed;
[0127] Step E, for each entity word extracted, identify whether the entity word appears in the target document, if it appears, delete the entity word; and determine the remaining entity words as associated words about the content to be processed. The method of identifying whether any entity word appears in the target document can be the same as the implementation method of identifying whether the text content contains specified content in the prior art, and the specific implementation method of the embodiment of the present invention will not be repeated.
[0128] It should be emphasized that the above-mentioned method of searching for the associated words of the content to be processed in each designated document is only an example and should not be construed as limiting the embodiment of the present invention.
[0129] The content association method provided by the embodiment of the present invention is introduced below in conjunction with a specific embodiment.
[0130] Among them, Figure 3 As shown, a content association method provided by an embodiment of the present invention may include the following steps:
[0131] S301, when the terminal device detects a selection operation on the exploration identifier corresponding to the title of the target document, the terminal device obtains the title in the target document as content to be processed;
[0132] The selection operation is initiated by the user in the display interface of the target document.
[0133] For the sake of clarity, the specific implementation of S301 is exemplarily introduced below in combination with the interactive operation between the user and the electronic device:
[0134] When receiving a display instruction for a graph menu from a user, the user's graph menu is displayed, wherein each graph node in the graph menu can represent one of the user's multiple documents, and each graph node can be identified by the title of the represented document; exemplarily, FIG4(b) shows the content of the graph menu, which contains graph nodes, each of which represents a document and is identified by the title of the document. In addition, the graph nodes of the associated documents can be connected, such as the graph nodes marked with title 6, title 7 and title 8 are connected; wherein, a predetermined association analysis method can be used to analyze whether the documents are associated, exemplarily, by analyzing whether the titles have the same content, to analyze whether the documents are associated; or by analyzing whether they belong to the same field, to analyze whether the documents are associated, and the field of each document can be specified by the user when creating the document, such as: literature field, mathematics field, etc.
[0135] When a selection operation given by the user on a graph node is detected, the document content of the target document represented by the graph node is displayed through a tab interface; illustratively, FIG4(c) shows the tab interface of the document indicated by Title 1;
[0136] When the mouse is detected hovering over the title in the tab interface, an exploration mark appears at the designated associated position of the title; if a selection operation is detected for the exploration mark, the title in the target document is obtained as the content to be processed. For example, FIG4(d) shows that the "explore" mark is displayed on the right side of Title 1. The user clicks the "explore" mark to trigger the content association processing of the log shown in Title 1. At this time, Title 1 is the content to be processed.
[0137] S302, after acquiring the content to be processed, the terminal device constructs a content association request carrying the content to be processed and the document identifier of the target document, and sends the constructed content association request to a predetermined server;
[0138] Accordingly, when the reservation server receives the content association request, the response process to the content association request is as follows:
[0139] Determine, from the documents of the user to which the target document belongs, each designated document containing the content to be processed, wherein each designated document contains the target document;
[0140] For each document in each designated document, entity words are extracted from a content block of the document containing the content to be processed, and a corresponding relationship between the extracted entity words and a document identifier of the document is established;
[0141] Obtain the document identifier of the target document, and based on the corresponding relationship, determine the entity word corresponding to the document identifier of the target document from the extracted entity words, remove the determined entity words, obtain the associated words about the content to be processed, and feed back the obtained associated words to the terminal device.
[0142] Exemplarily, as shown in FIG4(g), the predetermined server can pass the content block containing the content to be processed to the intelligent processing end through the request interface provided by the intelligent processing end, and the intelligent processing end identifies the entity words in the content block and feeds back to the predetermined server; then, the predetermined server selects entity words that do not appear in the target document from the received entity words, obtains associated words, and feeds back to the terminal device, so that the terminal device displays the associated words. Exemplarily, the predetermined server can send an entity word recognition request carrying a content block to the intelligent processing end, and the content block carried in the entity word recognition request is the content block containing the content to be processed; and after receiving the entity word recognition request, the intelligent processing end can extract the content block from the entity word recognition request, identify the entity words from the content block, and feed back the response result carrying each entity word to the predetermined server, so as to carry the identified entity words in batches and feed back to the predetermined server.
[0143] S303, the terminal device receives the associated words fed back by the predetermined server, and displays the received associated words in the display interface of the target document.
[0144] If the user issues a selection operation on the target document's tab interface: a selection operation on the exploration mark corresponding to the target document's title, the determined associated words are displayed on the target document's tab interface. For example, FIG4(e) shows a schematic diagram of displaying each associated word after the document content displayed on the tab interface.
[0145] S304: When the terminal device detects a selection operation on the exploration identifier corresponding to the target content, the terminal device obtains the target content as new content to be processed, and returns to S302.
[0146] The target content is any associated word in the display interface of the target document. Exemplarily, FIG4(f) shows a method for displaying associated words about the target content, wherein the target content is associated word 1, and the associated words about the target content are associated words 11 and associated words 12, and associated words 11 and associated words 12 are displayed as the next level content of associated word 1.
[0147] In this embodiment, the document can be effectively associated with related content in other documents; and because the associated words can be further explored, deeper associated content with the target document can be obtained, thereby further improving the user experience.
[0148] Based on the above method embodiment, the present invention also provides a content association system. Figure 5 As shown, a content association system may include: a document processing client 510 and a reservation server 520;
[0149] The document processing client 510 is used to obtain the title in the target document as the content to be processed, construct a content association request carrying the content to be processed, and send the content association request to the predetermined server 520;
[0150] The predetermined server 520 is used to search for associated words related to the content to be processed in each designated document after receiving the content association request, and feed back the found associated words to the document processing client; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0151] The document processing client 530 is further configured to receive the associated words fed back by the predetermined server, and display the determined associated words for the target document.
[0152] Optionally, in another embodiment of the present invention, the document processing client 510 is also used to obtain target content as new content to be processed after displaying the determined associated words for the target document, and execute the step of constructing a content association request carrying the content to be processed; wherein the target content is the displayed associated words.
[0153] Optionally, in another embodiment of the present invention, any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
[0154] Optionally, in another embodiment of the present invention, the predetermined server 520 searches for associated words related to the content to be processed in each designated document, including:
[0155] From multiple documents, determine each designated document;
[0156] For each of the designated documents, extract entity words from a content block of the document containing the content to be processed, and establish a corresponding relationship between the extracted entity words and a document identifier of the document;
[0157] Based on the corresponding relationship, the entity word corresponding to the document identifier of the target document is determined from the extracted entity words, and the determined entity words are eliminated to obtain associated words about the content to be processed.
[0158] Optionally, in another embodiment of the present invention, the document processing client 510 obtains the title in the target document as the content to be processed, including:
[0159] When a first content association operation on a title of a target document is detected, the title in the target document is obtained as content to be processed.
[0160] Optionally, in another embodiment of the present invention, the document processing client 510 obtains the target content in the display interface as new content to be processed, including:
[0161] When a second content-associated operation on the target content is detected, the target content is acquired as new content to be processed.
[0162] The specific implementation of each step executed by the above-mentioned document processing client 510 and the reservation server 520 can refer to the corresponding steps in the above-mentioned method embodiment, and will not be repeated here.
[0163] Based on the above method embodiment, the present invention also provides a content association device. Figure 6 As shown, the content association device may include:
[0164] The acquisition module 610 is used to acquire the title in the target document as the content to be processed;
[0165] The determination module 620 is used to determine the associated words related to the content to be processed in each designated document; wherein the designated document is a document containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document;
[0166] The display module 630 is used to display the determined associated words for the target document.
[0167] Optionally, in another embodiment of the present invention, the acquisition module 610 is further configured to acquire target content as new content to be processed and trigger the determination module after displaying the determined associated words for the target document;
[0168] The target content is the displayed associated words.
[0169] Optionally, in another embodiment of the present invention, any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
[0170] Optionally, in another embodiment of the present invention, the method of searching for associated words related to the content to be processed in each designated document includes:
[0171] From multiple documents, determine each designated document;
[0172] For each of the designated documents, extract entity words from a content block of the document containing the content to be processed, and establish a corresponding relationship between the extracted entity words and a document identifier of the document;
[0173] Based on the corresponding relationship, the entity word corresponding to the document identifier of the target document is determined from the extracted entity words, and the determined entity words are eliminated to obtain associated words about the content to be processed.
[0174] Optionally, in another embodiment of the present invention, the acquisition module 610 acquires the title of the user's target document as the content to be processed, which may include:
[0175] When a first content association operation on a title of a target document of a user is detected, the title in the target document is obtained as content to be processed.
[0176] Optionally, in another embodiment of the present invention, the acquisition module 610 acquires the target content in the display interface as new content to be processed, which may include: when a second content association operation for the target content is detected, acquiring the target content as new content to be processed.
[0177] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0178] Memory 703, used for storing computer programs;
[0179] The processor 701 is configured to implement the steps of the above-mentioned content association method provided in the embodiment of the present invention when executing the program stored in the memory 703 .
[0180] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0181] The communication interface is used for communication between the above electronic device and other devices.
[0182] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0183] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0184] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned content association methods are implemented.
[0185] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the steps of any content association method in the above embodiments.
[0186] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0187] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0188] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0189] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A content association method, characterized in that: The method comprises: Acquire the title of the target document as the content to be processed; wherein the acquiring the title of the target document as the content to be processed includes: when a first content association operation for the title of the target document is detected, acquiring the title of the target document as the content to be processed, wherein the first content association operation is issued by a user in a display interface of the target document and is used to instruct to associate the target document with other documents of the user; wherein the target document is a document edited by a document processing client; Determine the associated words about the content to be processed in each designated document; wherein the designated document is the document of the user containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document; wherein the method for searching the associated words about the content to be processed in each designated document includes: determining each designated document from a plurality of documents; for each document in each designated document, extracting entity words from the content block of the document containing the content to be processed, and establishing a correspondence between the extracted entity words and the document identifier of the document; based on the correspondence, determining the entity words corresponding to the document identifier of the target document from the extracted entity words, and eliminating the determined entity words to obtain the associated words about the content to be processed; For the target document, the determined associated words are displayed to obtain the content in the user's document that is related to the target document.
2. The method according to claim 1, characterized in that: After the step of displaying the determined associated words for the target document, the method further includes: The target content is obtained as new content to be processed, and the step of determining the associated words corresponding to the content to be processed in each designated document is performed; wherein the target content is the displayed associated words.
3. The method according to claim 2, characterized in that Any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
4. The method according to claim 2, characterized in that: The step of obtaining the target content as new content to be processed includes: When a second content association operation for the target content is detected, the target content is acquired as new content to be processed.
5. A content association system, characterized in that: The system comprises: a document processing client and a reservation server; The document processing client is used to obtain the title in the target document as the content to be processed, construct a content association request carrying the content to be processed, and send the content association request to a predetermined server; wherein the obtaining the title in the target document as the content to be processed includes: when a first content association operation for the title of the target document is detected, obtaining the title in the target document as the content to be processed, wherein the first content association operation is issued by a user in a display interface of the target document and is used to instruct to associate the target document with other documents of the user; wherein the target document is a document edited by the document processing client; The predetermined server is used to search for associated words about the content to be processed in each designated document after receiving the content association request, and feed back the found associated words to the document processing client; wherein the designated document is a document of the user containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document; wherein the predetermined server searches for associated words about the content to be processed in each designated document, including: determining each designated document from a plurality of documents; for each of the designated documents, extracting entity words from the content block of the document containing the content to be processed, and establishing a corresponding relationship between the extracted entity words and the document identifier of the document; based on the corresponding relationship, determining the entity words corresponding to the document identifier of the target document from the extracted entity words, and eliminating the determined entity words to obtain associated words about the content to be processed; The document processing client is also used to receive the associated words fed back by the predetermined server, and display the determined associated words for the target document to obtain the content in the user's document that is related to the target document.
6. The system according to claim 5, characterized in that The document processing client is further configured to obtain target content as new content to be processed after the step of displaying the determined associated words for the target document, and execute the step of constructing a content association request carrying the content to be processed; The target content is the displayed associated words.
7. The system according to claim 6, characterized in that Any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
8. A content association device, characterized in that: Applied to electronic equipment, the device comprises: The acquisition module is used to acquire the title in the target document as the content to be processed; wherein the acquisition of the title in the target document as the content to be processed includes: when a first content association operation for the title of the target document is detected, acquiring the title in the target document as the content to be processed, wherein the first content association operation is issued by the user in the display interface of the target document and is used to instruct to associate the target document with other documents of the user; wherein the target document is a document edited by a document processing client; A determination module is used to determine associated words about the content to be processed in each designated document; wherein the designated document is a document of the user containing the content to be processed, and the associated words are entity words that belong to the same content block as the content to be processed and do not appear in the target document; wherein the method for searching associated words about the content to be processed in each designated document includes: determining each designated document from a plurality of documents; for each document in each designated document, extracting entity words from the content block of the document containing the content to be processed, and establishing a correspondence between the extracted entity words and the document identifier of the document; based on the correspondence, determining the entity words corresponding to the document identifier of the target document from the extracted entity words, and eliminating the determined entity words to obtain associated words about the content to be processed; The display module is used to display the determined associated words for the target document to obtain the content in the user's document that is related to the target document.
9. The device according to claim 8, characterized in that The acquisition module is also used to acquire target content as new content to be processed and trigger the determination module after the step of displaying the determined associated words for the target document; wherein the target content is the displayed associated words.
10. The device according to claim 9, characterized in that Any to-be-processed content belonging to the target content and the corresponding associated words are associated and displayed in a predetermined multi-level display manner.
11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 4 when executing a program stored in a memory.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Related content display device and system
CN101814089A
Graphical interface display method and system for incidence relations among document chapters
CN103678263A
Method for associating documents in same type and terminal equipment
CN104077011A
Document storage for reuse of content within documents
CN107787491A
Method for quickly extracting useful data from document set
CN107861943A
