Recommended document theme

By detecting document content and using machine learning models to recommend matching topic patterns, the problem of time-consuming and mismatch of document creators' manual selection of topic patterns is solved, and automatic updates and content relevance is improved.

CN112052656BActive Publication Date: 2024-12-24MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN201910493328.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-06
Publication Date
2024-12-24
Estimated Expiration
2039-06-06

AI Technical Summary

Technical Problem

When creating electronic documents, the document creator needs to manually select and apply the topic pattern, resulting in problems such as time consumption and the topic pattern not matching the content of the document.

Method used

By detecting the current content of the document, using the machine learning model to recommend topic patterns that match the content of the document, and automatically update when the content changes, reducing manual operations and improving the relevance of topic patterns.

Benefits of technology

Automatic recommendation and update theme mode saves document creators time, ensures that the theme mode is more closely related to document content, and improves user viewing and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112052656B_ABST
    Figure CN112052656B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for recommending a theme mode of a document. In some embodiments, a trigger for providing a theme mode can be detected. The current content of the document can be identified. At least one theme mode related to the current content of the document can be provided.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] With the rapid development of computer systems, people are increasingly using electronic documents to transmit information. When creating an electronic document, the creator or designer of the document can apply a theme mode to the document to quickly beautify and unify the style of the document. Summary of the invention

[0002] This summary is provided to introduce a set of concepts that will be further described in the following detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0003] Embodiments of the present disclosure provide a method for recommending a theme mode of a document. In the method, a trigger for providing a theme mode can be detected. The current content of the document can be identified. At least one theme mode related to the current content of the document can be provided.

[0004] It should be noted that one or more of the above aspects include the features described in detail below and specifically pointed out in the claims. The following description and drawings set forth in detail certain illustrative features of the one or more aspects. These features are merely indicative of the various ways in which the principles of various aspects may be implemented, and the present disclosure is intended to include all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] The disclosed aspects will be described below in conjunction with the accompanying drawings, which are provided to illustrate rather than limit the disclosed aspects.

[0006] Figure 1 A conventional exemplary document interface is shown.

[0007] Figure 2 An exemplary process for recommending topic patterns of documents according to an embodiment is shown.

[0008] Figure 3A-3B Shown according to Figure 2 An exemplary document interface generated by an exemplary process.

[0009] Figure 4 Another exemplary process for recommending topic patterns of documents according to an embodiment is shown.

[0010] Figure 5 Shown according to Figure 4 An exemplary document interface generated by an exemplary process.

[0011] Figure 6A-6B An exemplary document interface to which a theme mode is applied is displayed in different devices according to an embodiment.

[0012] Figure 7 An exemplary process for recommending multiple topic patterns for the same document according to an embodiment is shown.

[0013] Figure 8 Shown according to Figure 7 An exemplary document interface generated by an exemplary process.

[0014] Fig. 9 Another exemplary process for recommending topic patterns of documents according to an embodiment is shown.

[0015] Fig.10 Shown according to Fig. 9 An exemplary document interface generated by an exemplary process.

[0016] Fig.11 A flowchart of an exemplary method for recommending topic patterns of documents according to an embodiment is shown.

[0017] Fig.12 An exemplary apparatus for recommending a topic pattern of a document according to an embodiment is shown.

[0018] Fig.13 Another exemplary device for recommending a topic pattern of a document according to an embodiment is shown. DETAILED DESCRIPTION

[0019] The present disclosure will now be discussed with reference to various exemplary embodiments. It should be understood that the discussion of these embodiments is only for enabling those skilled in the art to better understand and thereby implement examples of the present disclosure, and does not teach any limitation on the scope of the present disclosure.

[0020] In order to present a document with a beautified effect and a unified style, the document creator usually applies a theme mode to the document when creating the document. Currently, the document creator usually adopts the following methods when applying a theme mode to the document: selecting a desired theme mode from a plurality of preset or recommended candidate theme modes, searching for a desired theme mode on the Internet, or uploading a desired theme mode by himself.

[0021] The embodiment of the present disclosure proposes a method and device for recommending a theme mode of a document, which can detect a trigger for providing a theme mode, identify the current content of the document and / or other information related to the document, and provide at least one theme mode related to the current content of the document. According to the embodiment of the present disclosure, a theme mode that matches the document can be automatically recommended when the document is created, and the recommended theme mode can be automatically updated as the document content changes. The automatic recommendation and automatic update of the theme mode can save the creator of the document time for determining the theme mode, so that the creator does not have to manually find, search or upload the desired theme mode. In addition, according to the embodiment of the present disclosure, the recommendation and / or update of the theme mode is based on the current content of the document. When the content of the document is edited, updated or changed, the recommended or provided theme mode will also change accordingly, so the recommended or provided theme mode will be more closely related to the current content of the document, so that the recipient of the document has a better viewing, use or review experience.

[0022] In this article, the document may include but is not limited to a PPT document, a Word document, an Excel document, a form, etc. In the following text and the accompanying drawings, for ease of description, a form is taken as an example to describe the embodiments of the present disclosure; however, it should be noted that the solution of the present application may also be applicable to any other document.

[0023] Figure 1 A conventional exemplary document interface 100 is shown. In this example, a form is used as the exemplary document for description. Figure 1In the exemplary document interface 100 of FIG. 1 , a canvas 104 and a theme mode area 106 of a form are presented in a window 102. In this embodiment, several elements of a document are presented on the canvas 104, such as a title 104-1 of the form, a supplementary description 104-2 of the title, and a body 104-3, etc., wherein the body 104-3 in this embodiment is illustrated as a question and an option, but in other examples, the body can also be shown as a presentation, a text portion of a Word document, etc. In other embodiments, the canvas 104 can present more or fewer elements according to actual needs. In this embodiment, the theme mode area 106 is used to present candidate theme modes from a preset theme mode library, and the candidate theme modes are pre-set and are not necessarily associated with the content in the form, and will not change with the content of the form. In this embodiment, the theme mode area 106 can present theme modes 106-1, 106-2, 106-3, 106-4, 106-5, 106-6 as shown. It should be noted that although the exemplary theme modes 106-1 to 106-6 are shown as icons in the form of images, in some examples, they can also be in the form of multi-dimensional labels and each dimensional label can indicate one of the following: the background of the window 102 presenting the form, the background of the canvas 104, the color of the canvas 104, the format of the text presented on the canvas 104 (for example, the title 104-1, the supplementary description of the title 104-2, or the format of the text in the main text 104-3).

[0024] Figure 2 An exemplary process 200 for recommending topic patterns for documents is shown according to an embodiment.

[0025] In box 202, a trigger for providing a theme mode can be detected, such as an activation operation on a document, an input operation by a user in a document, a reception of a request for providing a theme mode, and the like. In some examples, the activation operation on a document can include a user opening a document application or creating a document through a document application, and the like. In some examples, the input operation by a user in a document can include various editing operations made by a user on the text of the document, such as adding, deleting, modifying the content of a text portion on a canvas, setting, changing the font, size, color, and the like of words in the text. In other examples, the reception of a request for providing a theme mode can include receiving a user clicking, touching, selecting, and the like on a theme mode item in a document. The user here can also be referred to as a creator, designer, editor, and the like of a document.

[0026] In response to detecting a trigger at 202, current content in the document may be identified at block 204. In some examples, the current content of the document may include, but is not limited to, any of the following: text in the document, formatting of the text, keywords in the document, language used in the document, and the like.

[0027] At block 208, one or more images may be obtained, for example, based on the identified current content. In some examples, the obtained images are retrieved from an image database or generated based on the text of the current content of the document.

[0028] In some examples, the images in the image database may have multi-dimensional labels, so that the corresponding images can be retrieved by matching the recognized current content with the labels of the images in the database. In other examples, one or more candidate images corresponding to the input content can be obtained by an image recommendation model. For example, the image recommendation model can be a machine learning model trained in the following manner: assigning one or more labels, such as attribute labels, to each image or a group of images in the image database or data pool; automatically attaching labels to the received input or obtained information; and recommending images with labels that are the same as or match the labels of the received input. In some examples, the received input or obtained information may include information related to the document, such as but not limited to the title of the document, the body content, the language used in the document, the keywords in the document, the topics involved in the document, and the profile of the creator of the document and / or the recipient of the document. For example, when the user enters the text "birthday party invitation" as the title of the form, the received input may be attached with the labels "birthday party", "invitation", and one or more images or one or more groups of images with the same or corresponding labels in the database will be recommended. For example, if the keyword in the document is "food" and the language used is Chinese, images that match Chinese food can be obtained or recommended, such as images of hot pot, rice, noodles, soup, etc.; if the keyword in the document is "food" and the language used is English, pictures of Western food such as pizza, hamburgers, sandwiches, etc. can be obtained or recommended.

[0029] In other examples, a conditional generative model, such as a text-to-image generative model, can be used to generate one or more images based on the text of the current content of the document. The text-to-image generative model can use a standard generative model, such as but not limited to an attention generative adversarial network (Attention GAN), a stacked generative adversarial network (Stack GAN), etc., so that images can be automatically generated from given text content. In this embodiment, the training data of the text-to-image generative model can be a large number of <text, image> pairs. During training, the text can be used as an input to the text-to-image generative model in the form of a label or an attribute-value pair, and the text-to-image generative model can output the corresponding image in an end-to-end manner. For example, the label of the text can be "food", "female", "Microsoft", etc., and the attribute-value pair of the text can be "rating-five stars", "age=27", etc.

[0030] After obtaining one or more candidate images by any of the above methods, the machine learning model can be used to automatically score or sort the candidate images using features extracted from the text, and the first K (K is any positive integer, such as K=3) images are used as images included in the recommended topic mode. In some examples, the candidate images can be collected from any one or more of the following: the most frequently used images in the database, images previously selected by the user, and images generated from the text of the document by a text-to-image generation model.

[0031] Optionally, at block 206, changes in the current content may be identified. For example, the changes may include, but are not limited to, additions, deletions, modifications to text content, changes in font, size, color of words, etc. Further, one or more images may be obtained at block 208 based on the changes in the current content.

[0032] In box 210, one or more theme modes can be provided based on the obtained image. In some examples, the theme mode may include one or more of the following: the background of the document's window, the background of the document's canvas, the format of the text presented on the canvas, and the logo presented on the canvas, wherein the logo is associated with at least one of the current content of the document, the creator of the document, and the recipient of the document. In some examples, providing one or more theme modes may include generating a theme mode based on the obtained image, such as generating one or more of the following: the background of the document's window, the background of the document's canvas, and the format of the text in the document. In some examples, providing one or more theme modes may also include retrieving or generating the logo, such as a company's logo, a trademark, a user's representative avatar, and the like, based on at least one of the current content of the document, the profile of the creator of the document, and the profile of the recipient of the document.

[0033] In some embodiments, the theme mode may be generated to include at least one of the following: using the displayed image as the background of the window, using a portion (e.g., a focus portion) extracted from the image as the background of the canvas, using the main color extracted from the image or a color opposite to or complementary to the main color as the color of the canvas, using the font, size, and color of the text set in the theme mode as the format of the text, etc. For example, the theme mode defines the background image of the window, the font, size, and color of the text on the canvas, etc.

[0034] Further, in some examples, after one or more theme patterns are provided to the user or document creator, the user can select a theme pattern to be applied to the document. In other examples, any one or the highest ranked theme pattern generated or provided can be directly applied to the document without being provided to the user for selection.

[0035] For the sake of convenience and simplicity, the document interface generated according to the concept of the present application is described below using a form as an example. It should be understood that the concept of the present application can also be applied to other types of documents.

[0036] Figure 3A-3B Shown according to Figure 2 Example document interfaces 300(A) and 300(B) generated by an example process of FIG.

[0037] In the document interface 300(A), a window 302(A) showing a canvas 304(A) and a topic mode area 306(A) is shown. Different elements of the document are shown on the canvas 304(A), such as a title 304(A)-1, a supplementary description of the title 304(A)-2, and a body 304(A)-3. It should be understood that the multiple elements shown on the canvas are only exemplary, and there may be more or fewer elements on the canvas.

[0038] As shown in 304(A)-1, the user enters the text content "Weekend Travel Survey" in the title part of the form. That is, the user's input in the form can be detected. Based on the current content in the recognized document, such as "weekend", "travel", and "survey", one or more images related to the content can be obtained and one or more theme modes containing the one or more images can be provided, such as theme modes 306(A)-1, 306(A)-2, 306(A)-3, 306(A)-4, and 306(A)-5 presented in theme mode area 306(A). It can be seen from the images contained in theme modes 306(A)-1 to 306(A)-5 that the above theme modes are all related to the content "travel". For example, the image included in the theme pattern 306(A)-1 describes a car, a tall building, and a tree, and the image can be attached with a multi-dimensional label, such as [travel, outdoor, car], etc.; the image included in the theme pattern 306(A)-2 describes a mountain peak and white clouds, and the image can be attached with a multi-dimensional label, such as [mountain climbing, travel, outdoor, mountain peak, white cloud, sunny weather], etc.; the image included in the theme pattern 306(A)-3 describes snowflakes, and the image can be attached with a multi-dimensional label, such as [snowflakes, cold, winter, going out or traveling], etc.; the image included in the theme pattern 306(A)-4 describes flowers, and the image can be attached with a multi-dimensional label, such as [flowers, spring, spring outing, going out or traveling], etc.; the image included in the theme pattern 306(A)-5 describes a butterfly, and the image can be attached with a multi-dimensional label, such as [butterfly, spring, spring outing, going out or traveling], etc. The corresponding theme pattern can be generated by matching the current content of the document with the label of the image in the theme pattern or using a pre-trained machine learning model to obtain the corresponding image for the current content. It should be noted that the images in each theme pattern can be attached with multi-dimensional labels in any appropriate manner, for example, labels can be attached by manual annotation or labels can be automatically generated by machine learning. In some examples, the theme patterns containing the obtained images can be sorted using any appropriate sorting method or scoring method, such as sorting the theme patterns 306(A)-1, 306(A)-2, 306(A)-3, 306(A)-4, and 306(A)-5 in the theme pattern area 306(A).

[0039] Furthermore, as the user continues to input or edit on the canvas, the content of the document changes, so that the provided theme mode is updated, such as reference Figure 3B As shown in the exemplary document interface 300 (B) of Figure 3BAs shown, in the window 302(B) presenting the document, a canvas 304(B) including multiple elements (e.g., a title 304(B)-1, a supplementary description of the title 304(B)-2, and a body 304(B)-3) and a theme mode area 306(B) presenting multiple theme modes 306(B)-1, 306(B)-2, and 306(B)-3 are shown. In this example, it can be recognized that the current content of the document has changed compared to the content in FIG. 3(A), for example, new content "Where do you like to go on weekends in winter?" is entered in the body 304(B)-3. At least based on the input new content, such as "winter", "weekend", "like", "where to go", the image is re-obtained and an updated theme mode is provided or recommended based on the obtained image. For example, candidate images related to winter travel are obtained based on at least the tags "winter" and / or "where to go" in the content, and a theme mode containing the top K (e.g., top three) images with the highest ranking is provided. For example, if the candidate image 1 in the image database describes a person skiing and has tags [winter, skiing, playing, happy, skateboard, snowboard], etc., then the candidate image 1 can be used as the first-ranked image through any suitable scoring or ranking method, and a theme model including the candidate image 1 is provided, such as theme model 306 (B) -1. For another example, if the candidate image 2 in the image database describes snowflakes and has tags [winter, snowflakes, cold], etc., then the candidate image 2 can be used as the second-ranked image through any suitable scoring or ranking method, and a theme model including the candidate image 2 is provided, such as theme model 306 (B) -2, and so on.

[0040] Figure 4 Another exemplary process 400 for recommending topic patterns for documents according to an embodiment is shown.

[0041] At block 402, a trigger for providing a theme mode may be detected, which is similar to the operation of block 202. In this embodiment, the process 400 is described by taking the user's input in a document as an example of the trigger.

[0042] In response to detecting a trigger at block 402 , current content in the document may be identified at block 404 , similar to the operation of block 204 .

[0043] In box 406, other information related to the document can be identified. In some examples, other information related to the document can include, but is not limited to, one or more of the following: the profile of the creator of the document, the creator's historical use record of the theme mode, the profile of the recipient of the document, and information on the target entity of the document determined from other applications. In some examples, the profile of the creator of the document or the profile of the recipient of the document can include, but is not limited to, gender, age, location, preference, name of the company, position, company size, department, industry of the company, etc. In some examples, the creator's historical use record of the theme mode can be stored in a historical database or can be incorporated into the creator's profile as historical data or preference. In some examples, other applications can include email applications, calendar applications, document editors, chat tools, etc. In some examples, the target entity for the document can include topics involved in the document determined according to the content in other applications and / or the language used by the document, etc., wherein the topics involved in the document can include time, place, event, etc.

[0044] In box 408, one or more images can be obtained based on at least the current content of the identified document and other information related to the document, such as by retrieving images from a database or generating images based on text. For example, if the identified content is about a weekend travel survey, images related to travel can be retrieved or generated. For some other examples, if the recipient of the document is the human resources department of a small multimedia company, lively style images can be obtained; if the recipient is the marketing department of a large airline, serious style images can be obtained. For some other examples, if the creator or recipient is an employee of Microsoft, images with the Microsoft logo can be recommended; if the creator's preference is set to like red, images with red as the main color can be recommended; if the creator is located in China, Chinese style images can be recommended, and so on.

[0045] In box 410, a theme mode can be provided based on the obtained image. For example, the obtained image can be used as the background of the window in the theme mode, the same, similar or opposite color as the color extracted from the obtained image can be used as the background color of the window or canvas in the theme mode, and the format of the text in the theme mode can be set according to the obtained image, such as font, color, size, etc. For example, a data set <image, text format> pairs can be used to train a machine learning classification model for obtaining text format based on images offline. In some examples, a multidimensional label for the format of the text, such as [font, size, color, etc.], can be output for the input image through a trained machine learning classification model.

[0046] In some examples, after one or more theme patterns are provided to a user or document creator, the user can select a theme pattern to be applied to the document. In other examples, any one or the highest ranked theme pattern generated or provided can be directly applied to the document without being provided to the user for selection.

[0047] Figure 5 Shown according to Figure 4 An exemplary document interface 500 generated by the exemplary process of FIG. In this embodiment, other information related to the document may be information in the profile of the creator or recipient, such as that the creator or recipient is an employee of Microsoft Corporation.

[0048] In the exemplary document interface 500, a canvas 504 presenting a document and a window 502 in a theme mode area 506 are shown. In some examples, different elements of the document are shown on the canvas 504, such as the title 504-1 of the document "weekend travel survey", the supplementary description 504-2 of the title "travel survey for employees", and the text 504-3 "where do you like to go on weekends in winter?" It should be understood that the multiple elements shown on the canvas are only exemplary, and there may be more or fewer elements on the canvas.

[0049] Based on the recognition of the current content on the canvas 504, such as the text in the title 504-1, the supplementary description 504-2 and the main text 504-3, and further recognition of other information of the document, such as the creator or recipient of the document is an employee of Microsoft Corporation, one or more images related to the current content and other information can be obtained and corresponding theme modes can be provided, such as 506-1 to 506-4 presented in the theme mode area 506.

[0050] In some examples, the current content and other information of the document can be identified as having multi-dimensional labels. Figure 5 In the example, the current content of the document can be identified as [weekend travel, survey, employee, travel survey, winter, weekend, like, where to go], and other information related to the document can be identified as [Microsoft employee]. At least one or more images are obtained based on the identified current content and other information of the document, and the obtained images are sorted using any suitable sorting method to provide or recommend the theme mode based on the first K images to the user or creator. For example, the theme mode based on the image obtained according to the current content can be placed at the front, and the theme mode based on the image obtained according to other information can be placed at the back. Figure 5As shown in , the theme modes 506-1 and 506-2 provided or recommended based on the current content "Winter", "Where to go", etc. are ranked in front, while the theme modes 506-3 and 506-4 provided or recommended based on the creator's information "Microsoft employee" are ranked behind. In this example, when the theme modes 506-1 to 506-4 are provided or recommended to the user, the user can select one of the theme modes to apply to the document, for example, the theme mode 506-3 shown in the dotted box is selected. In other examples, the top-ranked theme mode can be directly applied to the document without the user making a selection. An exemplary document to which the theme mode 506-3 is applied according to this embodiment can be as follows Figure 6A-6B shown.

[0051] Figure 6A-6B The exemplary document interfaces 600 (A) and 600 (B) to which the theme mode 506-3 is applied are displayed in different devices according to an embodiment. In different devices, the document window may be fully displayed, partially displayed, or not displayed according to the size of the display screen of the device.

[0052] like Fig. 6A and Figure 6B As shown, when a specific theme mode, such as 506-3, is selected to be applied to a document, the theme mode of the document presented in the document interface 600(A) and 600(B) includes not only the background of the window and the background of the canvas, but also the font, size, color (not shown), etc. of the text presented on the canvas. In addition, the theme mode of the document presented in the document interface 600(A) and 600(B) may also include an identifier associated with at least one of the current content of the document, the creator of the document, and the recipient of the document, such as an identifier retrieved or generated according to the profile of the creator or the recipient, such as a logo displayed near the title on the canvas, such as Fig. 6A 606(A) and Figure 6B The Microsoft logo is indicated in 606(B) of Fig. 6A and Figure 6B In the example shown in Figure 1, the logo is displayed near the title on the canvas, but it can be displayed anywhere on the canvas.

[0053] In the exemplary document interface 600(A), a window 602(A) and a canvas 604(A) are shown, wherein the background of the window 602(A) is an image included in the theme 506-3, wherein the image is partially displayed and partially covered by the canvas 604(A), and the color of the background of the canvas 604(A) is a color extracted from the image included in the theme 506-3. In this example, the exemplary document interface 600(A) is presented on a device with a larger display screen, such as a desktop computer, a laptop computer, etc.

[0054] In the exemplary document interface 600 (B), a canvas 604 (B) is shown. Due to the limitation of the display screen size of the device, the canvas 604 (B) occupies the entire screen, and the window 602 (B) indicated by the dotted line is not shown. Figure 6B Although not shown in FIG. 5 , the background of window 602 (B) also adopts the image included in theme mode 506-3. Figure 6B The color of the background of the canvas 604 (B) shown in the figure is a color extracted from the image included in the theme mode 506-3. In this example, the exemplary document interface 600 (B) is presented on a device with a small display screen, such as a mobile phone, a palmtop computer, etc.

[0055] Figure 7 An exemplary process 700 for recommending multiple topic patterns for the same document is shown in accordance with an embodiment.

[0056] At block 702, a trigger for providing a theme mode may be detected, which is similar to the operations of blocks 202 and 402. In this embodiment, the process 700 is described by taking the user's input in a document as an example of the trigger.

[0057] In response to detecting a trigger, current content in the document may be identified at block 704 , similar to the operations of blocks 204 and 404 .

[0058] In box 706, it can be determined that there are multiple different recipients of the document. For example, it can be determined that there are multiple different recipients of the document based on the information entered by the creator of the document before creating the document. For example, when the creator of the document activates the application of the document, the creator of the document can be prompted to select the recipient or target of the document in a prompt box, question and answer, or selection form, such as "Who is the recipient of this document?" or "Please select the recipient of this document: family, friends, colleagues, or Company A, Company B, or Department D, Department E of Company C, etc.". By way of example and not limitation, if the creator of the document enters multiple different recipients in the question and answer form, such as multiple user IDs, multiple email addresses, or selects multiple options in the selection form, it can be determined that there are multiple different recipients for the document.

[0059] In box 708, one or more images can be obtained based on the current content of the identified document and / or the profile of the recipient, which is similar to the operations in boxes 208 and 408. In some examples, the obtained images can be retrieved from an image database or generated based on the text of the current content of the document. In this example, the obtained images can be attached with multi-dimensional tags, which can include tags about the profile of the recipient, such as tags "recipient ID", "recipient name", "recipient company", "recipient department", "recipient group", "recipient email address", etc.

[0060] In box 710, multiple topic patterns related to the current content of the document are provided, wherein each of the multiple topic patterns is associated with a different recipient of the document. In some examples, providing multiple topic patterns may include: providing multiple topic patterns based on one or more images obtained, which is similar to the operations of boxes 210 and 410; and assigning corresponding labels to each topic pattern corresponding to the image based on the label about the recipient of the document in the multidimensional label of each image, for example, when there are multiple recipients belonging to different departments A, B, C, D, etc., each image obtained may have any one or more of the labels "Department A", "Department B", "Department C", "Department D", and each topic pattern corresponding to the image is assigned a corresponding label about the recipient of the document.

[0061] Further, the multiple subject modes provided can be set to a "to be applied" state, and when operating a document, a subject mode can be automatically selected from the multiple subject modes "to be applied" to apply to the document. For example, when the creator of a document sends a document to the recipient of the document, a subject mode corresponding to the profile of the recipient can be automatically selected to apply to the document based on the profile of the recipient of the document and the label of the subject mode. For example, when the creator of a document sends a document to the recipient of a document through a chat tool or an email, it can be determined according to the user ID or email address of the recipient of the document to which group the recipient belongs, such as which company or which department within a company the recipient belongs to, so as to automatically select a subject mode with a label corresponding to the group from the multiple subject modes provided to apply to the document. For example, if it is determined that the recipient of the document belongs to department A, a subject mode with a label "department A" can be selected from multiple subject modes to apply to the document when operating the document (such as sending the document or activating the document).

[0062] Figure 8 Shown according to Figure 7An exemplary document interface 800 generated by the exemplary process of . In this embodiment, the recipient's profile may indicate that the recipient is an employee of different departments of Microsoft Corporation, such as the Windows department, the Surface department, the Bing department, the Office department, etc.

[0063] In the exemplary document interface 800, a window 802 showing a canvas 804 and a topic mode area 806 of a document is shown. In some examples, different elements of the document are shown on the canvas 804, such as the title 804-1 of the document "weekend travel survey", the supplementary description 804-2 of the title "travel survey for employees", and the body 804-3. It should be understood that the multiple elements shown on the canvas are only exemplary, and there may be more or fewer elements on the canvas.

[0064] Based on the recognition of the current content on the canvas 804 and the further recognition of other information of the document, for example, the recipients of the document are employees of different departments of Microsoft Corporation, one or more images related to the current content and other information can be obtained and corresponding theme modes can be provided, such as 806-1 to 806-4 presented in the theme mode area 806, where each theme mode is associated with employees of different departments of Microsoft Corporation, that is, with different recipients. It should be understood that although in Figure 8 Only one associated theme pattern is shown for each recipient, but a theme pattern list including one or more theme patterns may also be provided or recommended for each recipient.

[0065] Fig. 9 Yet another exemplary process 900 for recommending topic patterns for documents according to an embodiment is shown.

[0066] At block 902, a trigger for providing a theme mode may be detected. In this embodiment, the process 900 is described with the document being activated as an example of the trigger.

[0067] At block 904 , current content in the document may be identified, similar to the operation of block 204 .

[0068] In box 906, other information related to the document can be identified, such as identifying information about the target entity for the document determined from other applications. The information about the target entity in the document to be created can be determined based on the content in other applications. In some examples, the target entity for the document can include topics involved in the document and / or the language used by the document, etc., wherein the topics involved in the document can include time, place, event, etc. In some examples, the launch of the application of the document or the creation of the document can be triggered from other applications, for example, by clicking a link in other applications to jump to the application of the document. For example, if the other application is an email, you can jump to the application of the document, such as a form, Excel, Word, PPT or other types of documents, by clicking a link in the email interface, and the topic of the document to be created or the language used by the document can be determined based on the text content or keywords in the title or body of the email. For example, if "weekend travel" is mentioned in Chinese in the text content of the email, the topic of the document to be created, such as a form, can be determined, such as the time is "weekend", the event is "travel", etc., and it can be determined that the language used by the document is Chinese.

[0069] At block 908 , one or more images may be obtained based on the current content of the identified document and information on a target entity for the document determined from other applications, similar to the operation of block 408 .

[0070] At block 910 , a theme pattern may be generated or provided based on the acquired image, similar to the operation of block 410 .

[0071] Further, in some examples, after one or more theme patterns are provided to the user or document creator, the user can select a theme pattern to be applied to the document. In other examples, any one or the highest ranked theme pattern generated or provided can be directly applied to the document without being provided to the user for selection.

[0072] Fig.10 Shown according to Fig. 9 An exemplary document interface 1000 generated by an exemplary process of . In this embodiment, the other application is a mail application 1002, and the trigger for providing the theme mode is an activation operation on the document, such as a click on "Create Form" shown at 1004.

[0073] like Fig.10As shown, information for a target entity of a document such as a form can be determined based on the content in the email application, such as the topic involved in the created form. In this example, based on the content in the email, it can be determined that the topic involved in the form is "weekend travel". In this example, although the current content of the document is not recognized on the document canvas 1008, that is, the current content is "none", this is only exemplary. In other examples, the current content can be recognized on the document canvas 1008, such as the title, a supplementary description of the title, and the text of the body. Based on the current content in the form and the topic involved in the form determined from the email, one or more images related to "weekend travel" can be obtained, and a corresponding theme mode 1010 can be provided or recommended.

[0074] Fig.11 A flow chart of an exemplary method 1100 for recommending topic patterns of documents according to an embodiment is shown.

[0075] At block 1110 , a trigger to provide a theme mode may be detected.

[0076] At block 1120, the current content of the document may be identified.

[0077] At block 1130, at least one topic mode related to the current content of the document may be provided.

[0078] In one implementation, the theme mode includes one or more of the following: the background of the document's window, the background of the document's canvas, the format of text presented on the canvas, and an identifier presented on the canvas, wherein the identifier is associated with at least one of the current content of the document, the creator of the document, and the recipient of the document.

[0079] In one implementation, the method 1100 further includes obtaining at least one image based at least on the current content of the document, and generating at least one topic pattern based on the at least one image.

[0080] In a further implementation, the method 1100 further includes identifying a change in the current content, wherein the at least one image is further obtained based on the change.

[0081] In a further implementation, method 1100 also includes identifying other information related to the document, wherein the other information related to the document includes one or more of the following: a profile of the creator of the document, a historical usage record of the creator regarding the subject mode, a profile of the recipient of the document, and information about the target entity for the document determined from other applications, wherein the at least one image is further obtained based on the other information.

[0082] In one implementation, identifying other information related to the document further includes: determining that there are multiple different recipients of the document. In a further implementation, providing the at least one theme mode further includes: providing multiple theme modes related to the current content of the document, wherein each theme mode in the multiple theme modes is associated with one of the multiple different recipients.

[0083] In one implementation, the at least one image is retrieved from an image database or is generated based on the text of the current content of the document.

[0084] In yet another implementation, generating the at least one theme mode further includes: generating one or more of the following based on the at least one image: a background of a window of the document, a background of a canvas of the document, and a format of text in the document.

[0085] In a further implementation, the trigger includes one or more of the following: an activation operation on the document, an editing operation on text in the document, and receipt of a request for providing a theme mode.

[0086] In one implementation, the current content of the document includes one or more of the following: text in the document, format of the text in the document, topics covered in the document, and language used in the document.

[0087] In a further implementation, the method 1100 further includes: applying one of the at least one theme mode to the document.

[0088] It should be understood that the method 1100 may also include: any steps / processes for recommending a topic pattern of a document according to the embodiments of the present disclosure as mentioned above.

[0089] Fig.12 An exemplary apparatus 1200 for recommending topic patterns of documents according to an embodiment is shown.

[0090] The apparatus 1200 may include: a detection module 1210 for detecting a trigger for providing a theme mode; an identification module 1220 for identifying the current content of the document; and a providing module 1230 for providing at least one theme mode related to the current content of the document.

[0091] In one implementation, the theme mode includes one or more of the following: the background of the document's window, the background of the document's canvas, the format of text presented on the canvas, and an identifier presented on the canvas, wherein the identifier is associated with at least one of the current content of the document, the creator of the document, and the recipient of the document.

[0092] In one implementation, the apparatus 1200 further includes: an acquisition module, configured to acquire at least one image based at least on the current content of the document; and a generation module, configured to generate the at least one theme pattern based on the at least one image.

[0093] In one implementation, the recognition module is further used to recognize changes that occur in the current content. In a further implementation, at least one image is further obtained based on the changes.

[0094] In one implementation, the recognition module is further used to recognize other information related to the document, wherein the other information related to the document includes one or more of the following: a profile of a creator of the document, a historical record of the creator's use of a theme mode, a profile of a recipient of the document, and information of a target entity for the document determined from other applications. In a further implementation, at least one image is further obtained based on the other information.

[0095] In one implementation, the identification module 1220 is further used to determine that there are multiple different recipients of the document. In a further implementation, the providing module 1230 is further used to provide multiple topic patterns related to the current content of the document, wherein each topic pattern in the multiple topic patterns is associated with a recipient in the multiple different recipients.

[0096] In one implementation, the trigger includes one or more of the following: an activation operation on the document, an editing operation on text in the document, and receipt of a request for providing a theme mode.

[0097] In one implementation, the current content of the document includes one or more of the following: text in the document, the format of the text in the document, topics covered in the document, and language used in the document.

[0098] It should be understood that the apparatus 1200 may further include: any other modules configured to recommend a topic pattern of a document according to the embodiments of the present disclosure as mentioned above.

[0099] Fig.13 Another exemplary device 1300 for recommending a topic mode of a document according to an embodiment is shown. The device 1300 may include one or more processors 1310 and a memory 1320 storing computer executable instructions. When executing the computer executable instructions, the one or more processors 1310 may perform the following operations: detecting a trigger for providing a topic mode; identifying the current content of the document; and providing at least one topic mode related to the current content of the document.

[0100] The embodiments of the present disclosure may be implemented in a non-transitory computer-readable medium. The non-transitory computer-readable medium may include instructions, which, when executed, cause one or more processors to perform any operation of the method for recommending a topic pattern of a document according to the embodiments of the present disclosure as described above.

[0101] It should be understood that all operations in the above described method are merely exemplary, and the present disclosure is not limited to any operation in the method or the order of these operations, but should encompass all other equivalent transformations under the same or similar concept. It should also be understood that all modules in the above described device can be implemented in various ways. These modules can be implemented as hardware, software, or a combination thereof. In addition, any module in these modules can be further divided into submodules or combined together functionally.

[0102] The word "exemplary" used in this application means to be used as an example, illustration or description. Any embodiment or design described in this application as "exemplary" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word exemplary is intended to express the concept in a specific way. The term "or" used in this application means an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or it is clear from the context, "X uses A or B" means any natural inclusive replacement. That is, if X uses A, X uses B, or X uses both A and B, then "X uses A or B" satisfies any of the above examples. In addition, unless otherwise specified or it is clear from the context that it is a single form, the "one" and "an" objects used in this application and the attached claims generally mean "one or more".

[0103] Processors have been described in conjunction with various devices and methods. These processors can be implemented using electronic hardware, computer software or any combination thereof. Whether these processors are implemented as hardware or software will depend on specific application and the overall design constraints imposed on the system. As an example, the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a state machine, a gate logic, a discrete hardware circuit, and other suitable processing components configured to perform the various functions described in the present disclosure. The function of the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as software performed by a microprocessor, a microcontroller, a DSP or other suitable platforms.

[0104] Software should be broadly considered to represent instructions, instruction sets, codes, code segments, program codes, programs, subroutines, software modules, applications, software applications, software packages, routines, subroutines, objects, running threads, processes, functions, etc. Software can reside in a computer-readable medium. A computer-readable medium can include, for example, a memory, which can be, for example, a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic stripe), an optical disk, a smart card, a flash memory device, a random access memory (RAM), a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), a register, or a removable disk. Although the memory is shown as being separated from the processor in the various aspects provided in the present disclosure, the memory can also be located inside the processor (e.g., a cache or a register).

[0105] The above description is provided to enable any person skilled in the art to implement the various aspects described herein. Various modifications to these aspects are apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents of the elements of the various aspects described in this disclosure that are known or to be known to those skilled in the art will be covered by the claims.

Claims

1. A method for recommending a topic pattern of a document, comprising: Detecting triggers for providing a theme mode; Identifying the current content of the document, wherein the current content of the document includes one or more of: text in the document, format of the text in the document, keywords in the document, and language used in the document; Identifying other information related to the document, wherein the other information related to the document includes one or more of the following: a profile of a creator of the document, a historical record of the creator's use of a topic mode, a profile of a recipient of the document, and information of a target entity for the document determined from other applications; obtaining at least one image based at least on the current content of the document and the other information; and At least one theme mode is provided based on the at least one image.

2. The method of claim 1, wherein: The theme mode includes one or more of the following: the background of the document's window, the background of the document's canvas, the format of the text rendered on the canvas, An identifier is presented on the canvas, wherein the identifier is associated with at least one of current content of the document, a creator of the document, and a recipient of the document.

3. The method of claim 1, further comprising: identifying a change in said current content, The changes include: addition, deletion, modification of text content, changes in font, size, color of words, and the at least one image is further obtained based on the changes.

4. The method of claim 3, further comprising: The at least one theme schema is automatically updated in response to the identified changes to the current content of the document.

5. The method of claim 1, wherein: Identifying other information related to the document further includes: determining that there are multiple different recipients of the document, and Providing the at least one topic mode further includes providing a plurality of topic modes related to the current content of the document, wherein each topic mode of the plurality of topic modes is associated with a recipient of the plurality of different recipients.

6. The method of claim 1, wherein: The at least one image is retrieved from an image database or is generated based on the text of the current content of the document.

7. The method of claim 1, wherein: Generating the at least one theme pattern further comprises: One or more of the following is generated based on the at least one image: a background of a window of the document, a background of a canvas of the document, and a format of text in the document.

8. The method of claim 1, wherein: The trigger includes one or more of the following: an activation operation on the document, an editing operation on text in the document, and receipt of a request for providing a theme mode.

9. The method of claim 1, further comprising: detecting a selection of one of the at least one theme modes in a graphical user interface; as well as In response to detecting the selection, one of the at least one theme mode is applied to the document.

10. A non-transitory computer-readable storage medium comprising instructions that, when executed by a computer, cause the computer to perform operations comprising: Detecting triggers for providing a theme mode; identifying the current content of the document, wherein: The current content of the document includes one or more of the following: text in the document, format of the text in the document, keywords in the document, and language used in the document; Identifying other information related to the document, wherein the other information related to the document includes one or more of the following: a profile of a creator of the document, a historical record of the creator's use of a topic mode, a profile of a recipient of the document, and information of a target entity for the document determined from other applications; obtaining at least one image based at least on the current content of the document and the other information; and At least one theme mode is provided based on the at least one image.

11. The non-transitory computer-readable storage medium of claim 10, wherein: The theme mode includes one or more of the following: the background of the document's window, the background of the document's canvas, the format of the text rendered on the canvas, An identifier is presented on the canvas, wherein the identifier is associated with at least one of current content of the document, a creator of the document, and a recipient of the document.

12. The non-transitory computer-readable storage medium of claim 10, wherein: The operation also includes: identifying changes in the current content, wherein the changes include: addition, deletion, modification of text content, changes in font, size, color of words, and wherein the at least one image is further obtained based on the changes.

13. The non-transitory computer-readable storage medium of claim 12, wherein: The operations also include automatically updating the at least one theme schema in response to the identified change in the current content of the document.

14. The non-transitory computer-readable storage medium of claim 10, wherein: The operations also include determining that there are a plurality of different recipients of the document, and The operations also include providing a plurality of topic patterns related to the current content of the document, wherein each topic pattern of the plurality of topic patterns is associated with a recipient of the plurality of different recipients.

15. The non-transitory computer-readable storage medium of claim 10, wherein: The trigger includes one or more of the following: an activation operation on the document, an editing operation on text in the document, and receipt of a request for providing a theme mode.

16. A device for recommending a topic pattern of a document, comprising: one or more processors; as well as A memory storing computer executable instructions that, when executed, cause the one or more processors to: Detecting triggers for providing a theme mode; Identifying the current content of the document, wherein the current content of the document includes one or more of: text in the document, format of the text in the document, keywords in the document, and language used in the document; Identifying other information related to the document, wherein the other information related to the document includes one or more of the following: a profile of a creator of the document, a historical record of the creator's use of a topic mode, a profile of a recipient of the document, and information of a target entity for the document determined from other applications; obtaining at least one image based at least on the current content of the document and the other information; and At least one theme mode is provided based on the at least one image.

Citation Information

Patent Citations

  • Method and system for applying a global formatting scheme to a chart in an electronic document

    CN1801137A

  • EPG delivery and television apparatus

    EP1434431A1

  • Automated addition of images to text

    US20080320384A1

  • Method and apparatus for environmental profile generation

    US20160042520A1

  • Method and apparatus for recommending an interface theme

    US20180004365A1