CN114416945A - Word cloud picture display method, device, equipment and medium - Google Patents

Word cloud picture display method, device, equipment and medium Download PDF

Info

Publication number
CN114416945A
CN114416945A CN202111668879.3A CN202111668879A CN114416945A CN 114416945 A CN114416945 A CN 114416945A CN 202111668879 A CN202111668879 A CN 202111668879A CN 114416945 A CN114416945 A CN 114416945A
Authority
CN
China
Prior art keywords
word
rectangular area
rectangular
processed
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111668879.3A
Other languages
Chinese (zh)
Inventor
何菲菲
罗旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Volcano Engine Technology Co Ltd
Original Assignee
Beijing Volcano Engine Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Volcano Engine Technology Co Ltd filed Critical Beijing Volcano Engine Technology Co Ltd
Priority to CN202111668879.3A priority Critical patent/CN114416945A/en
Publication of CN114416945A publication Critical patent/CN114416945A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions
    • G06F16/3323Query formulation using system suggestions using document space presentation or visualization, e.g. category, hierarchy or range presentation and selection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor

Abstract

The embodiment of the application discloses a word cloud picture display method, wherein for a group of words to be displayed, a word cloud picture corresponding to the group of words is obtained, each word in the word cloud picture corresponds to a rectangular area, the rectangular area is a display background of the word, and the size of the rectangular area represents the weight of the word. After the word cloud picture is obtained, if a user triggers any rectangular area in the word cloud picture, rendering the rectangular area so as to display the rendered rectangular area to the user. Namely, the words in the word cloud picture are displayed in a word and rectangular area combination mode, and meanwhile when the user triggers, the words triggered by the user are highlighted in a rendering mode, so that the use experience of the user is improved.

Description

Word cloud picture display method, device, equipment and medium
Technical Field
The application relates to the technical field of computers, in particular to a word cloud picture display method, device, equipment and medium.
Background
The word cloud is generally used for visual representation of text data, and visual highlighting is brought to a user by rendering "keywords" which appear frequently in web texts. For example, the importance of the keyword is shown by the size or color of the text.
At present, the visual presentation mode of word cloud usually uses graphics or pictures as boundaries to map words to "word cloud" formed by different graphics in regions. In the mode of distinguishing data according to the size of characters, under the condition that the data distinguishing degree is not large or the data is less, the word cloud is difficult to achieve an ideal visualization effect.
Disclosure of Invention
In view of this, embodiments of the present application provide a word cloud display method, device, apparatus, and medium, so as to implement a word cloud graph to display importance of each data and implement interaction between a user and the word cloud graph.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect of this application, a method for displaying a word cloud picture is provided, where the method includes:
the method comprises the steps of obtaining a word cloud picture, and displaying the word cloud picture, wherein the word cloud picture comprises a plurality of words, each word in the plurality of words corresponds to a rectangular area, the rectangular areas are display backgrounds of the words, and the size of each rectangular area is used for representing the weight of the word;
and in response to the triggering operation of the user on any rectangular area in the word cloud picture, rendering the rectangular area so as to show the rendered rectangular area to the user.
In a second aspect of embodiments of the present application, there is provided a word cloud display apparatus, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a word cloud picture and displaying the word cloud picture, the word cloud picture comprises a plurality of words, each word in the plurality of words corresponds to a rectangular area, the rectangular area is a display background of the word, and the size of the rectangular area is used for representing the weight of the word;
and the display unit is used for rendering any rectangular area in the word cloud picture in response to the triggering operation of the user on the rectangular area so as to show the rendered rectangular area to the user.
In a third aspect of embodiments of the present application, there is provided an electronic device, including: a processor and a memory;
the memory for storing instructions or computer programs;
the processor is configured to execute the instructions or the computer program in the memory, so as to enable the electronic device to execute the method for displaying a word cloud image according to the first aspect.
In a fourth aspect of embodiments of the present application, a computer-readable storage medium is provided, in which instructions are stored, and when the instructions are executed on a device, the device is caused to execute the cloud image display method according to the first aspect.
In a fifth aspect of embodiments of the present application, there is provided a computer program product, which when run on a computer, causes the computer to execute the group information processing method according to the first aspect.
Therefore, the embodiment of the application has the following beneficial effects:
in the embodiment of the application, for a group of words to be displayed, a word cloud picture corresponding to the group of words is obtained, each word in the word cloud picture corresponds to a rectangular area, the rectangular area is a display background of the word, and the size of the rectangular area represents the weight of the word. After the word cloud picture is obtained, if a user triggers any rectangular area in the word cloud picture, rendering the rectangular area so as to display the rendered rectangular area to the user. Namely, the words in the word cloud picture are displayed in a word and rectangular area combination mode, and meanwhile when the user triggers, the words triggered by the user are highlighted in a rendering mode, so that the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1a is a word cloud under a scene with a small data discrimination;
FIG. 1b is a word cloud under a scene of small data size;
fig. 2 is a flowchart of a method for generating a word cloud graph according to an embodiment of the present disclosure;
fig. 3a is a cloud-based diagram according to an embodiment of the present application;
fig. 3b is a diagram of a display effect after triggering a rectangular area according to an embodiment of the present application;
fig. 3c is a diagram of another display effect after triggering a rectangular area according to an embodiment of the present application;
fig. 4 is a flowchart of a method for displaying a word cloud according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a cloud image display device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The word cloud picture, also called character cloud, is used for visually displaying 'key words' with high occurrence frequency in the text, and filters a large amount of low-frequency and low-quality text information, so that a viewer can draw the text by scanning the text at a glance. At present, a word cloud picture visualization mode mainly highlights keywords through the size of characters, but the visualization effect is poor in some scenes with low data discrimination or less data. For example, as shown in fig. 1a, in an application scenario diagram with a small data differentiation, most words have the same size, which results in low visual information transmission performance. As shown in fig. 1b, when the amount of data is small, a cloud word graph of a predetermined graph (e.g., heart-shaped or circular) cannot be formed, which affects the visual effect.
Based on this, an embodiment of the present application provides a word cloud picture display method, where when a word cloud picture is constructed, the word cloud picture is constructed in a manner of combining words and rectangular regions, so that each word in the word cloud picture corresponds to one rectangular region, and the rectangular region serves as a display background of the word. The size of the rectangular area is used for reflecting the weight of a word, and the larger the weight of the word is, the larger the size of the corresponding rectangular area is. When a user triggers any rectangular area in the word cloud picture, rendering the rectangular area so as to present the rendered rectangular area to the user.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, a method for generating a word cloud graph will be described below with reference to the accompanying drawings.
Referring to fig. 2, which is a flowchart of a method for generating a cloud word graph according to an embodiment of the present application, as shown in fig. 2, the method may be performed by a cloud word graph generating device. The cloud image generation device may be a server, an electronic device, or another device, and is not limited herein. The server may be a cloud server or a server cluster or other devices with storage and computing functions. The electronic device may include a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable electronic device, an all-in-one machine, an intelligent home device, and other devices having a communication function, and may also be a virtual machine or a simulator-simulated device.
Specifically, the method shown in fig. 2 may include the following steps:
s201: and acquiring respective weights of a group of words to be processed.
In this embodiment, for any scene in which a word cloud graph needs to be generated, a group of words to be processed corresponding to the scene and a weight (word frequency) corresponding to each word to be processed are obtained. In a common application scenario, a group of words to be processed is extracted from an article, where the weight corresponding to the word to be processed is the frequency of the word to be processed appearing in the article. Or, for the recommendation field, the search terms input by the user within a period of time may be obtained, the search terms collected within the period of time are used as a group of terms to be processed, and in this scenario, the weight corresponding to the terms to be processed is the search frequency.
After the words to be processed are obtained, the set of words to be processed can be sorted according to the weights corresponding to the words to be processed, so that the sorting corresponding to the words to be processed is obtained. Specifically, the set of words to be processed may be sorted in an ascending order or in a descending order according to the weight corresponding to the words to be processed, and a specific sorting manner is determined according to an actual application situation, which is not limited herein.
S202: and aiming at any word to be processed, dividing the canvas according to the weight, the data sequence and the preset rectangular parameters corresponding to the word to be processed to obtain a rectangular area corresponding to the word to be processed.
The data sequence is a sort result or a reading sequence corresponding to the word to be processed, the sort result is a sort result which is subjected to ascending or descending according to the weight, and the reading sequence is a sequence corresponding to the word to be processed when the word to be processed is read. For example, if a word 1, a word 2, and a word 3 appear in the article in sequence, the reading sequence is the word 1, the word 2, and the word 3, and the 3 words are divided in sequence according to the sequence to obtain a rectangular region corresponding to each word; and after the ascending sorting is carried out according to the weight, the corresponding sorting results are the words 2, the words 1 and the words 3, and then the 3 words are sequentially divided according to the sequence to obtain the rectangular area corresponding to each word.
The preset rectangle parameter is the attribute of each preset rectangle region, and may include a rectangle margin and a rectangle proportion. The rectangular edge distance refers to the distance between two adjacent rectangular areas, and the rectangular proportion refers to the length-width proportion of the rectangular areas. In this embodiment, the size of the rectangular region is in positive correlation with the weight corresponding to the word to be processed, and the larger the weight corresponding to the word to be processed is, the larger the size of the rectangular region is.
Specifically, the canvas may be divided horizontally and then longitudinally according to the data sequence, the weight corresponding to the word to be processed, and the preset rectangular parameter, so as to obtain a division region corresponding to each word to be processed. When the segmentation is performed, a classic TreeMap segmentation algorithm may be used.
S203: and determining the display size of the word to be processed in the rectangular area based on the size of the rectangular area corresponding to the word to be processed.
After a rectangular area corresponding to each word to be processed is divided, the display size of the word to be processed in the rectangular area is determined according to the size of the rectangular area. That is, the display size of the word to be processed in the rectangular region is adapted. Specifically, the smaller value of the length and the width of the rectangular area is obtained, and the display size of the word to be processed is determined according to the smaller value.
S204: and filling the words to be processed into the rectangular area according to the display size to generate a word cloud picture.
And after the display size corresponding to the word to be processed is determined, filling the word to be processed into the rectangular area according to the display size, thereby generating a word cloud picture. The graph corresponding to the word cloud picture can be a rectangle. For example, as shown in fig. 3a, the size of the rectangular region corresponding to the words with high weight is large, and the size of the rectangular region corresponding to the words with low weight is small.
Optionally, when the display size corresponding to the word to be processed is smaller than the length of the word to be processed, the word to be processed may be displayed in the rectangular area in a dynamic omission manner. That is, when the length of the word exceeds the rectangular region constraint range, the word to be processed is dynamically omitted and displayed.
After the word cloud picture is generated, a user can browse through the word cloud picture so as to obtain related information through the word cloud picture.
Referring to fig. 4, which is a flowchart of a cloud word graph display method provided in an embodiment of the present application, as shown in fig. 4, the method may be executed by a cloud word graph display device. The cloud image display device may be an electronic device, and may also be other devices, which are not limited herein. The electronic device may include a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable electronic device, an all-in-one machine, an intelligent home device, and other devices having a communication function, and may also be a virtual machine or a simulator-simulated device.
Specifically, the method shown in fig. 4 may include the following steps:
s401: and acquiring a word cloud picture and displaying the word cloud picture.
In this embodiment, when a user needs to view a certain word cloud picture, the required word cloud picture can be obtained through the electronic device, and the word cloud picture is displayed on a display screen of the electronic device.
S402: and in response to the triggering operation of the user on any rectangular area in the word cloud picture, rendering the rectangular area so as to show the rendered rectangular area to the user.
When a user triggers any rectangular area in the word cloud picture, rendering the rectangular area, and displaying the rendered rectangular area to the user.
Optionally, the triggering operation of the user on the rectangular area in the word cloud graph may be divided into different types, for example, a mouse is suspended in the rectangular area or the rectangular area is clicked, and different rendering modes may be distinguished for different types. Specifically, the triggering operation of a user on any rectangular area in the word cloud picture is responded, and the type of the triggering operation is determined; and determining a rendering mode according to the trigger operation type, and rendering the rectangular area according to the rendering mode.
When the type of the response triggering operation is mouse suspension, determining that the rendering mode is a stroke; and performing edge rendering on the rectangular area so as to show the rectangular area after edge rendering to a user. For example, as shown in FIG. 3b, when the mouse hovers over a rectangular area where the word "Audi" is located, a stroke is added to the activated rectangular area to emphasize.
When the type of the response triggering operation is clicking, determining that the rendering mode is highlighting; and highlighting the rectangular area to show the highlighted rectangular area to the user. For example, as shown in FIG. 3c, when the user clicks with the mouse on the PC side or clicks with the mobile side, the activated rectangular area is highlighted.
Optionally, in response to the user clicking the rectangular area again, the highlighting of the rectangular area is cancelled.
Optionally, in response to a user's trigger operation on any rectangular area in the word cloud picture, detail information corresponding to the word in the rectangular area is displayed. For example, as shown in fig. 3b or fig. 3c, the detail information corresponding to the word is displayed by a prompt bar (tooltip). The detailed information may be set according to actual conditions, for example, information such as an official website link of audi, sales volume, english explanation and chinese explanation corresponding to the word is displayed in the prompt bar.
It can be seen that, for a group of words to be displayed, a word cloud picture corresponding to the group of words is obtained, each word in the word cloud picture corresponds to a rectangular area, the rectangular area is a display background of the word, and the size of the rectangular area represents the weight of the word. After the word cloud picture is obtained, if a user triggers any rectangular area in the word cloud picture, rendering the rectangular area so as to display the rendered rectangular area to the user. Namely, the words in the word cloud picture are displayed in a word and rectangular area combination mode, and meanwhile when the user triggers, the words triggered by the user are highlighted in a rendering mode, so that the use experience of the user is improved.
Based on the above method embodiments, the present application provides a cloud-word graph display device and an electronic device, which will be described below with reference to the accompanying drawings.
Referring to fig. 5, which is a block diagram of a cloud image display device according to an embodiment of the present disclosure, as shown in fig. 5, the device 500 may include: an acquisition unit 501 and a display unit 502.
The obtaining unit 501 is configured to obtain a word cloud picture, and display the word cloud picture, where the word cloud picture includes a plurality of words, each of the plurality of words corresponds to a rectangular region, the rectangular region is a display background of the word, and a size of the rectangular region is used to represent a weight of the word. For a specific implementation of the obtaining unit, reference may be made to the above-mentioned description of S401.
The display unit 502 is configured to render any one rectangular region in the word cloud graph in response to a user triggering operation on the rectangular region, so as to display the rendered rectangular region to the user. For specific implementation of the display unit 502, reference may be made to the above description of S402.
In a specific implementation manner, the display unit 502 is specifically configured to determine a type of a trigger operation performed by a user on any rectangular region in the word cloud graph; and determining a rendering mode according to the type of the trigger operation, and rendering the rectangular area according to the rendering mode.
In a specific implementation manner, the display unit 502 is specifically configured to determine that the rendering manner is a stroke when the type of the trigger operation is a mouse hover; and performing edge rendering on the rectangular area so as to show the rectangular area subjected to edge rendering to the user.
In a specific implementation manner, the display unit 502 is specifically configured to determine that the rendering manner is highlighted when the type of the trigger operation is a click; and highlighting the rectangular area so as to show the highlighted rectangular area to the user.
In a specific implementation manner, the apparatus further includes: a cancellation unit;
and the canceling unit is used for responding to the user clicking the rectangular area again and canceling the highlight rendering of the rectangular area.
In a specific implementation manner, the display unit 502 is further configured to display detail information corresponding to a word in any rectangular area in the word cloud graph in response to a user triggering operation on the rectangular area.
In a specific implementation manner, the obtaining unit 501 is specifically configured to obtain respective weights of a group of words to be processed; aiming at any word to be processed, dividing a canvas according to the weight, the data sequence and preset rectangular parameters corresponding to the word to be processed to obtain a rectangular area corresponding to the word to be processed, wherein the preset rectangular parameters comprise a rectangular edge distance and a rectangular proportion, the rectangular edge distance refers to the distance between two adjacent rectangular areas, the rectangular proportion refers to the length-width proportion of the rectangular areas, and the size of the rectangular areas is in positive correlation with the weight corresponding to the word to be processed; determining the display size of the word to be processed in the rectangular area according to the size of the rectangular area corresponding to the word to be processed; and filling the words to be processed into the rectangular area according to the display size to generate a word cloud picture.
In a specific implementation manner, the display unit 502 is specifically configured to display the word to be processed in the rectangular area in a dynamic omission manner in response to the display size being smaller than the length of the word to be processed.
In a specific implementation manner, the data sequence is a sequence corresponding to the word to be processed after being sorted based on the weight of the word to be processed or a sequence of reading the word to be processed.
It should be noted that, for implementation of each unit in this embodiment, reference may be made to related descriptions of the above method embodiments, and details of this embodiment are not described herein again.
Referring to fig. 6, a schematic diagram of an electronic device 600 suitable for implementing embodiments of the present application is shown. The terminal device in the embodiment of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Portable android device), a PMP (Portable multimedia Player), a car terminal (e.g., car navigation terminal), and the like, and a fixed terminal such as a Digital TV (television), a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present application.
The electronic device provided by the embodiment of the present application and the method for displaying a cloud image provided by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment and the above embodiment have the same beneficial effects.
The embodiment of the present application provides a computer-readable medium, on which a computer program is stored, where the program is executed by a processor to implement the method for displaying a word cloud image according to any one of the above embodiments.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the cloud display method.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit/module does not in some cases constitute a limitation on the unit itself, for example, a voice data collection module may also be described as a "data collection module".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method for displaying a word cloud, the method comprising:
the method comprises the steps of obtaining a word cloud picture, and displaying the word cloud picture, wherein the word cloud picture comprises a plurality of words, each word in the plurality of words corresponds to a rectangular area, the rectangular areas are display backgrounds of the words, and the size of each rectangular area is used for representing the weight of the word;
and in response to the triggering operation of the user on any rectangular area in the word cloud picture, rendering the rectangular area so as to show the rendered rectangular area to the user.
2. The method of claim 1, wherein the rendering any rectangular area in the word cloud picture in response to a user triggering operation on the rectangular area to show the rendered rectangular area to the user comprises:
responding to a trigger operation of a user on any rectangular area in the word cloud picture, and determining the type of the trigger operation;
and determining a rendering mode according to the type of the trigger operation, and rendering the rectangular area according to the rendering mode.
3. The method according to claim 2, wherein the determining a rendering manner according to the type of the trigger operation and rendering the rectangular area according to the rendering manner comprises:
when the type of the trigger operation is mouse suspension, determining that the rendering mode is a stroking mode;
and performing edge rendering on the rectangular area so as to show the rectangular area subjected to edge rendering to the user.
4. The method according to claim 2, wherein the determining a rendering mode according to the type of the trigger operation and rendering a rectangular area according to the rendering mode comprises:
when the type of the trigger operation is a click, determining that the rendering mode is highlight;
and highlighting the rectangular area so as to show the highlighted rectangular area to the user.
5. The method of claim 4, further comprising:
and responding to the user clicking the rectangular area again, and canceling the highlight rendering of the rectangular area.
6. The method of claim 1, further comprising:
and responding to the triggering operation of the user on any rectangular area in the word cloud picture, and displaying the detail information corresponding to the words in the rectangular area.
7. The method of claim 1, wherein obtaining the word cloud graph comprises:
acquiring respective weights of a group of words to be processed;
aiming at any word to be processed, dividing a canvas according to the weight, the data sequence and preset rectangular parameters corresponding to the word to be processed to obtain a rectangular area corresponding to the word to be processed, wherein the preset rectangular parameters comprise a rectangular edge distance and a rectangular proportion, the rectangular edge distance refers to the distance between two adjacent rectangular areas, the rectangular proportion refers to the length-width proportion of the rectangular areas, and the size of the rectangular areas is in positive correlation with the weight corresponding to the word to be processed;
determining the display size of the word to be processed in the rectangular area according to the size of the rectangular area corresponding to the word to be processed;
and filling the words to be processed into the rectangular area according to the display size to generate a word cloud picture.
8. The method of claim 7, further comprising:
in response to the display size being less than the length of the word to be processed, displaying the word to be processed in the rectangular area in a dynamic omission manner.
9. The method according to claim 7 or 8, wherein the data sequence is a sequence corresponding to the word to be processed after being sorted based on the weight of the word to be processed or a sequence of reading the word to be processed.
10. A word cloud display apparatus, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a word cloud picture and displaying the word cloud picture, the word cloud picture comprises a plurality of words, each word in the plurality of words corresponds to a rectangular area, the rectangular area is a display background of the word, and the size of the rectangular area is used for representing the weight of the word;
and the display unit is used for rendering any rectangular area in the word cloud picture in response to the triggering operation of the user on the rectangular area so as to show the rendered rectangular area to the user.
11. An electronic device, characterized in that the device comprises: a processor and a memory;
the memory for storing instructions or computer programs;
the processor is configured to execute the instructions or the computer program in the memory to cause the electronic device to perform the word cloud display method according to any one of claims 1 to 9.
12. A computer-readable storage medium having stored therein instructions that, when executed on a device, cause the device to perform the method of displaying a cloud of words of any of claims 1-9.
CN202111668879.3A 2021-12-30 2021-12-30 Word cloud picture display method, device, equipment and medium Pending CN114416945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111668879.3A CN114416945A (en) 2021-12-30 2021-12-30 Word cloud picture display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111668879.3A CN114416945A (en) 2021-12-30 2021-12-30 Word cloud picture display method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114416945A true CN114416945A (en) 2022-04-29

Family

ID=81272073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111668879.3A Pending CN114416945A (en) 2021-12-30 2021-12-30 Word cloud picture display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114416945A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995708A (en) * 2022-06-09 2022-09-02 北京火山引擎科技有限公司 Image display method, device, equipment, medium and product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778213A (en) * 2014-01-16 2014-05-07 北京航空航天大学 Word cloud diagram visualizing method based on occupation matrix
US20140164899A1 (en) * 2012-12-10 2014-06-12 International Business Machines Corporation Utilizing classification and text analytics for annotating documents to allow quick scanning
CN108536762A (en) * 2018-03-21 2018-09-14 上海蔚界信息科技有限公司 A kind of high-volume text data automatically analyzes scheme
CN110309303A (en) * 2019-05-22 2019-10-08 浙江工业大学 A kind of judicial dispute data visualization analysis method based on Weighted T F-IDF
CN112819917A (en) * 2021-01-21 2021-05-18 北京秒针人工智能科技有限公司 Word cloud drawing method and system based on canvas
CN113850178A (en) * 2021-09-22 2021-12-28 中国农业银行股份有限公司 Video word cloud generation method and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140164899A1 (en) * 2012-12-10 2014-06-12 International Business Machines Corporation Utilizing classification and text analytics for annotating documents to allow quick scanning
CN103778213A (en) * 2014-01-16 2014-05-07 北京航空航天大学 Word cloud diagram visualizing method based on occupation matrix
CN108536762A (en) * 2018-03-21 2018-09-14 上海蔚界信息科技有限公司 A kind of high-volume text data automatically analyzes scheme
CN110309303A (en) * 2019-05-22 2019-10-08 浙江工业大学 A kind of judicial dispute data visualization analysis method based on Weighted T F-IDF
CN112819917A (en) * 2021-01-21 2021-05-18 北京秒针人工智能科技有限公司 Word cloud drawing method and system based on canvas
CN113850178A (en) * 2021-09-22 2021-12-28 中国农业银行股份有限公司 Video word cloud generation method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995708A (en) * 2022-06-09 2022-09-02 北京火山引擎科技有限公司 Image display method, device, equipment, medium and product

Similar Documents

Publication Publication Date Title
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
CN112184738B (en) Image segmentation method, device, equipment and storage medium
CN109740085B (en) Page content display method, device, equipment and storage medium
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
CN111399729A (en) Image drawing method and device, readable medium and electronic equipment
CN111444356B (en) Recommendation method and device based on search
CN109684589B (en) Client comment data processing method and device and computer storage medium
CN110278447B (en) Video pushing method and device based on continuous features and electronic equipment
CN113688310B (en) Content recommendation method, device, equipment and storage medium
CN112287206A (en) Information processing method and device and electronic equipment
CN112395022B (en) Information display method, information display device, electronic equipment and computer readable storage medium
CN113204691B (en) Information display method, device, equipment and medium
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN115080816A (en) Method, device, equipment and medium for generating summary information and displaying search result
CN114416945A (en) Word cloud picture display method, device, equipment and medium
CN111353296B (en) Article processing method, apparatus, electronic device and computer readable storage medium
CN111461965B (en) Picture processing method and device, electronic equipment and computer readable medium
CN110300329B (en) Video pushing method and device based on discrete features and electronic equipment
CN116955817A (en) Content recommendation method, device, electronic equipment and storage medium
CN111626922A (en) Picture generation method and device, electronic equipment and computer readable storage medium
CN111461964B (en) Picture processing method, device, electronic equipment and computer readable medium
CN109684015B (en) Interface data loading method and device, electronic equipment and storage medium
CN113157165A (en) Information display method and device, electronic equipment and program product
CN113127718A (en) Text search method and device, readable medium and electronic equipment
CN112214665A (en) Content display method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination