CN111339124A - Data display method and device, electronic equipment and computer readable medium - Google Patents

Data display method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111339124A
CN111339124A CN202010109095.6A CN202010109095A CN111339124A CN 111339124 A CN111339124 A CN 111339124A CN 202010109095 A CN202010109095 A CN 202010109095A CN 111339124 A CN111339124 A CN 111339124A
Authority
CN
China
Prior art keywords
data
database
structured language
user
determining
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.)
Granted
Application number
CN202010109095.6A
Other languages
Chinese (zh)
Other versions
CN111339124B (en
Inventor
赖林华
韦世硕
张俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hengshi Technology Co ltd
Original Assignee
Beijing Hengshi 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 Hengshi Technology Co ltd filed Critical Beijing Hengshi Technology Co ltd
Priority to CN202010109095.6A priority Critical patent/CN111339124B/en
Publication of CN111339124A publication Critical patent/CN111339124A/en
Application granted granted Critical
Publication of CN111339124B publication Critical patent/CN111339124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • G06F16/2445Data retrieval commands; View definitions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Abstract

The embodiment of the disclosure discloses a method and a device for displaying data, electronic equipment and a computer readable medium. One embodiment of the method comprises: acquiring label information and a data display mode selected by a user; generating a structured language according to the label information and the data display mode; and determining relevant data corresponding to the structured language from the database according to the structured language and displaying the relevant data based on the structured language. The structured language generated by the implementation mode can complete various database queries, and the improvement of user experience and the saving of user time are realized.

Description

Data display method and device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and an apparatus for displaying data, an electronic device, and a computer-readable medium.
Background
The data display is to output the data in the internal or external memory of the system in a visible or readable form, and has the forms of data value direct display, data table display, various statistical graph display and the like.
However, most of the query statements in the existing databases are not general, and the data query is very tedious after the database is changed.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the 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.
Some embodiments of the present disclosure propose a method, apparatus, electronic device and computer readable medium for displaying data to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for displaying data, the method comprising: acquiring label information and a data display mode selected by a user; generating a structured language according to the label information and the data display mode; and determining relevant data corresponding to the structured language from the database according to the structured language and displaying the relevant data based on the structured language.
In a second aspect, some embodiments of the present disclosure provide an apparatus for displaying data, the apparatus comprising: an acquisition unit configured to acquire tag information and a data display manner selected by a user; a generating unit configured to generate a structured language according to the tag information and the data display mode; a determining unit configured to determine relevant data corresponding to the structured language from the database according to the structured language and display the relevant data based on the structured language.
In a third aspect, an embodiment of the present application provides an electronic device, where the network device includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: the structured language is generated by obtaining the label information and the data display mode selected by the user, then the related data corresponding to the structured language is determined from the database based on the structured language, and the related data is displayed based on the structured language, so that the generated structured language can complete various database queries, and the improvement of user experience and the saving of user time are realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow diagram of some embodiments of a method of displaying data according to the present disclosure;
FIG. 3 is a schematic block diagram of some embodiments of a display data device according to the present disclosure;
FIG. 4 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a display data method or display data device to which some embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be noted that the method for displaying data provided by the embodiments of the present disclosure is generally performed by the terminal devices 101, 102, 103. Accordingly, means for displaying data are typically provided in the terminal devices 101, 102, 103.
It should be noted that the terminal device 101 may be various electronic devices with data display capability, including but not limited to a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a desktop computer, and the like. When the execution subject is software, the software can be installed in the electronic device listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a method of displaying data according to the present disclosure is shown. The data display method comprises the following steps:
step 201, obtaining the label information and the data display mode selected by the user.
In some embodiments, the execution subject of the method for displaying data (e.g., the terminal device shown in fig. 1) may obtain the tag information and the data display mode selected by the user from the terminal device used by the user or locally through a wired connection mode or a wireless connection mode. Here, the above tag information generally refers to information of a tag selected by the user, and as an example, when the user wants to see the sales of the a-item, the user may select the "a-item sales" tag. Further, the display mode may be a comparison display of the sales of the item a and the sales of the item b selected by the user.
Step 202, generating a structured language according to the label information and the data display mode.
In some embodiments, the execution agent may generate a structured language based on the tag information and the data display manner in step 201. Here, the structured language may be a code, a character, or the like. The execution agent may generate the structured language in a variety of ways. As an example, the execution subject may combine the tag and the data display manner to generate a code or a character having the tag and the data display manner, and the like: when the data display mode is a table and the user selects the tags "area a", "article b", "annual sales", and "growth rate", the execution body may generate a structured language "area a and b article annual sales growth rate is displayed in a table".
Step 203, determining relevant data corresponding to the structured language from a database according to the structured language and displaying the relevant data based on the structured language.
In some embodiments, the execution subject may determine relevant data corresponding to the structured language from a database according to the structured language and display the relevant data based on the structured language. As an example, when the structured language is "the annual sales increase rate of the area b goods in the a area is displayed in a table", the "annual sales increase rate of the area b goods in the a area" is displayed in a table. Specifically, the execution subject may determine the corresponding related data according to the type of the tag information in the structured language and the data in the database, or the similarity between the tag information and the data in the database.
Specifically, the similarity may be determined by the number of words repeated in the tag in the data and the tag selected by the user. As an example, when the tag in the above data is "sales amount" and the user selection tag is "total sales", the number of repeated words is 2, and the similarity is 2. And when the similarity reaches a preset threshold value, determining the data corresponding to the label as related data.
Specifically, when the name of the data type in the database is the same as or similar to the name of the tag in the structured language, the data in the database is determined as corresponding related data. As an example, when the above tag is "time", data corresponding to a tag having the same or similar name to the "time" in the database is used as the related data. As another example, when the label is "time" and the data in the database is specific time, the data is determined as related data.
In some alternative implementations of some embodiments, the database is determined based on user selection.
In some alternative implementations of some embodiments, the execution agent may convert the structured language to an intermediate language. The intermediate language is generally referred to herein as a language in which the user structured language and the database instructions are excessive. The intermediate language may be, for example, a mathematical expression or code or the like. In particular, the execution agent may convert the structured language into a form comprised of a plurality of mathematical expressions. As an example, the structured language "finding the growth rate of sales of a-item in the present year" may be expressed as a ratio of "the sum of the sums of sales of a-item in the last month" to "the sum of the sums of sales of a-item in the present month" to "the sum of the sums of sales of a-item in the last month".
And then, storing the intermediate language and converting the intermediate language into a database instruction. Specifically, the database instruction may be Structured Query Language (SQL). As an example, when the intermediate language is "increase value of sales of the area a in the present year", the intermediate language may be converted into a structured query language for querying a difference between sales of the area a in the present year and sales of the previous year. And then, sending the database command to the database. And determining corresponding related data in the database according to the database instruction and displaying the related data based on the structured language. Here, the related data generally refers to data related to the tag. As an example, when the tag is time, the data related to time in the database is related data.
In some optional implementation manners of some embodiments, the executing entity may, in response to detecting that a data tag in the database and the tag contain the same field, establish a mapping relationship between the tag and the data tag according to the data tag and the tag; and determining the related data according to the mapping relation. Here, the mapping relationship generally refers to a relationship in which two tags "correspond to" each other. As an example, when the label in the partial data in the database is "region" and the label selected by the user is also "region", the above-mentioned partial data is determined as the related data. As another example, when the user selects the tag as "region", the content of the data in the database contains the data of the place name as the related data.
In some optional implementation manners of some embodiments, the executing entity may, in response to that it is not detected that the data tag and the tag in the database contain the same field, establish a mapping relationship between the tag and the data tag between data corresponding to the data tag and the tag according to a user operation; and determining the related data in the data corresponding to the data label according to the mapping relation and displaying the related data. As an example, if the user selects that the tag "name" has a mapping relationship with the data tag "name", the data containing the data tag "name" is determined as the related data.
In some optional implementations of some embodiments, the method further comprises: and extracting item information and user preference data from the displayed data, wherein the user preference data comprises a user preference item information sample and a grading sample of the preference item. For example, the extraction may be performed by extracting a keyword from the displayed data or extracting the keyword from the displayed data according to a selected tag. And inputting the information of the favorite articles of the user into a model to be trained to obtain the scores of the favorite articles of the user. Specifically, the model to be trained generally refers to an imperfect correspondence table, a functional expression, a machine learning model, or the like between the information of the user's favorite items and the scores of the favorite items. Specifically, the machine learning model may be a convolutional neural network or the like.
And finally, analyzing the scores of the favorite items and the score samples of the favorite items to determine a score loss value. As an example, the execution subject may use a difference between the score of the favorite item and the score sample of the favorite item as a score loss value. And determining whether the model to be trained is trained completely or not in response to the score loss value meeting a preset condition.
Here, the predetermined condition may be that the score loss value is less than a predetermined threshold value. And adjusting relevant parameters in the model to be trained in response to determining that the model to be trained is not trained completely. And in response to determining that the training of the model to be trained is completed, determining the model to be trained as the user interest model. And inputting the item information into the user interest model to obtain a user favorite score of the item and displaying related item information according to the favorite score. Specifically, when there are a plurality of items, information on the items at a predetermined rank may be displayed according to the ranking. When there is only one article, article information is displayed when the preference score of the article satisfies a predetermined threshold.
In this way, the user is considered to be likely to be interested in the data of a certain article when purchasing the article, and the information of the article is recommended for the user. The method and the device enable the user to save the process of searching the target data in a plurality of data, save a large amount of time and improve the user experience.
The structured language generated by the method provided by some embodiments of the disclosure can complete various database queries, and the improvement of user experience and the saving of user time are realized.
With further reference to fig. 3, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a device for displaying data, which correspond to those of the method embodiments illustrated in fig. 2, and which may be particularly applicable in various electronic devices.
As shown in fig. 3, a display data device 300 of some embodiments includes: an acquisition unit 301, a generation unit 302, and a determination unit 303. The obtaining unit 301 is configured to obtain the tag information and the data display mode selected by the user; the generating unit 302 is configured to generate a structured language according to the label information and the data display manner; and the determining unit 303 is configured to determine relevant data corresponding to the structured language from the database according to the structured language and display the relevant data based on the structured language.
In an alternative implementation of some embodiments, the database is determined based on user selections.
In an optional implementation of some embodiments, the determining unit 303 is further configured to: converting the structured language into an intermediate language; storing the intermediate language and converting the intermediate language into a database instruction; sending the database instruction to the database; and determining corresponding related data in the database according to the database instruction and displaying the related data based on the structured language.
In an optional implementation of some embodiments, the determining unit 303 is further configured to: in response to detecting that the data tag and the tag in the database contain the same field, establishing a mapping relationship between the tag and the data tag according to the data tag and the tag; and determining the related data according to the mapping relation.
In an optional implementation of some embodiments, the determining unit 303 is further configured to: in response to the situation that the data label and the label in the database do not contain the same field, establishing a mapping relation between the label and the data label by using the data corresponding to the data label and the label according to user operation; and determining the related data in the data corresponding to the data label according to the mapping relation and displaying the related data.
In an optional implementation manner of some embodiments, the display data apparatus 300 further includes a user preference scoring unit configured to: extracting item information and user preference data from the displayed data, wherein the user preference data comprises a user preference item information sample and a grading sample of the preference item; inputting the information of the favorite articles of the user into a model to be trained to obtain the scores of the favorite articles of the user; analyzing the scores of the favorite items and the score samples of the favorite items to determine score loss values; determining whether the model to be trained is trained in response to the score loss value meeting a preset condition; adjusting relevant parameters in the model to be trained in response to determining that the model to be trained is not trained; determining the model to be trained as a user interest model in response to determining that the training of the model to be trained is completed; and inputting the item information into the user interest model to obtain a user favorite score of the item and displaying related item information according to the favorite score.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to fig. 4, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device in some embodiments of the present disclosure 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 (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 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. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure 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 some embodiments of the disclosure, 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 some embodiments of the present disclosure, 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 be interconnected 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: acquiring label information and a data display mode selected by a user; generating a structured language according to the label information and the data display mode; and determining relevant data corresponding to the structured language from the database according to the structured language and displaying the relevant data based on the structured language.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including 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 disclosure. 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 some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a generation unit, and a determination unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the acquiring unit may also be described as a "unit that acquires tag information and a data display manner selected by the user".
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.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (9)

1. A method for displaying data, comprising:
acquiring label information and a data display mode selected by a user;
generating a structured language according to the label information and the data display mode;
and determining relevant data corresponding to the structured language from a database according to the structured language and displaying the relevant data based on the structured language.
2. The method of claim 1, wherein the database is determined according to a user selection.
3. The method of claim 1, wherein the determining relevant data corresponding to the structured language from a database according to the structured language and displaying the relevant data based on the structured language comprises:
converting the structured language to an intermediate language;
storing the intermediate language and converting the intermediate language into database instructions;
sending the database instruction to the database;
and determining corresponding related data in the database according to the database instruction and displaying the related data based on the structured language.
4. The method of claim 3, wherein the determining corresponding relevant data in the database from the database instructions and displaying the relevant data based on the structured language comprises:
in response to the fact that the data label and the label in the database contain the same field, establishing a mapping relation between the label and the data label according to the data label and the label;
and determining the related data according to the mapping relation.
5. The method of claim 3, wherein the determining corresponding relevant data in the database from the database instructions and displaying the relevant data based on the structured language comprises:
in response to the fact that the data labels and the labels in the database do not contain the same fields, establishing mapping relations between the labels and the data labels according to data corresponding to the data labels and the labels through user operation;
and determining the related data in the data corresponding to the data label according to the mapping relation and displaying the related data.
6. The method of claim 1, wherein the method further comprises:
extracting item information and user preference data from the displayed data, wherein the user preference data comprises a user preference item information sample and a scoring sample of the preference item;
inputting the information of the favorite articles of the user into a model to be trained to obtain the scores of the favorite articles of the user;
analyzing the scores of the favorite items and the score samples of the favorite items to determine score loss values;
determining whether the model to be trained is trained completely or not in response to the score loss value meeting a preset condition;
adjusting relevant parameters in the model to be trained in response to determining that the model to be trained is not trained;
determining the model to be trained as a user interest model in response to determining that the training of the model to be trained is completed;
inputting the item information into the user interest model, obtaining a user favorite score of the item, and displaying related item information according to the favorite score.
7. An apparatus for displaying data, comprising:
an acquisition unit configured to acquire tag information and a data display manner selected by a user;
the generating unit is configured to generate a structured language according to the label information and the data display mode;
a determining unit configured to determine relevant data corresponding to the structured language from the database according to the structured language and display the relevant data based on the structured language.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
9. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202010109095.6A 2020-02-21 2020-02-21 Method, apparatus, electronic device and computer readable medium for displaying data Active CN111339124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010109095.6A CN111339124B (en) 2020-02-21 2020-02-21 Method, apparatus, electronic device and computer readable medium for displaying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010109095.6A CN111339124B (en) 2020-02-21 2020-02-21 Method, apparatus, electronic device and computer readable medium for displaying data

Publications (2)

Publication Number Publication Date
CN111339124A true CN111339124A (en) 2020-06-26
CN111339124B CN111339124B (en) 2024-04-12

Family

ID=71184422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010109095.6A Active CN111339124B (en) 2020-02-21 2020-02-21 Method, apparatus, electronic device and computer readable medium for displaying data

Country Status (1)

Country Link
CN (1) CN111339124B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367147A (en) * 2020-09-27 2021-02-12 苏州宣怀智能科技有限公司 Data display method and device, electronic equipment and computer readable medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718516A (en) * 2016-01-14 2016-06-29 神策网络科技(北京)有限公司 Graphical user interaction method and device used for data analysis, and network system used for data analysis
CN106033466A (en) * 2015-03-20 2016-10-19 华为技术有限公司 Database query method and device
CN106537382A (en) * 2014-07-03 2017-03-22 微软技术许可有限责任公司 Query suggestions
CN107748784A (en) * 2017-10-26 2018-03-02 邢加和 A kind of method that structured data searching is realized by natural language
CN108052310A (en) * 2017-11-22 2018-05-18 链家网(北京)科技有限公司 A kind of data processing method and server based on business model description information
CN108255897A (en) * 2017-02-17 2018-07-06 平安科技(深圳)有限公司 Visual Chart data conversion treatment method and apparatus
CN109299187A (en) * 2018-11-05 2019-02-01 用友网络科技股份有限公司 Data analysing method, device and equipment
CN110008232A (en) * 2019-04-11 2019-07-12 北京启迪区块链科技发展有限公司 Generation method, device, server and the medium of structured query sentence
CN110543597A (en) * 2019-08-30 2019-12-06 北京奇艺世纪科技有限公司 Grading determination method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537382A (en) * 2014-07-03 2017-03-22 微软技术许可有限责任公司 Query suggestions
CN106033466A (en) * 2015-03-20 2016-10-19 华为技术有限公司 Database query method and device
CN105718516A (en) * 2016-01-14 2016-06-29 神策网络科技(北京)有限公司 Graphical user interaction method and device used for data analysis, and network system used for data analysis
CN108255897A (en) * 2017-02-17 2018-07-06 平安科技(深圳)有限公司 Visual Chart data conversion treatment method and apparatus
CN107748784A (en) * 2017-10-26 2018-03-02 邢加和 A kind of method that structured data searching is realized by natural language
CN108052310A (en) * 2017-11-22 2018-05-18 链家网(北京)科技有限公司 A kind of data processing method and server based on business model description information
CN109299187A (en) * 2018-11-05 2019-02-01 用友网络科技股份有限公司 Data analysing method, device and equipment
CN110008232A (en) * 2019-04-11 2019-07-12 北京启迪区块链科技发展有限公司 Generation method, device, server and the medium of structured query sentence
CN110543597A (en) * 2019-08-30 2019-12-06 北京奇艺世纪科技有限公司 Grading determination method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367147A (en) * 2020-09-27 2021-02-12 苏州宣怀智能科技有限公司 Data display method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN111339124B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US11669579B2 (en) Method and apparatus for providing search results
CN109522483B (en) Method and device for pushing information
CN107679217B (en) Associated content extraction method and device based on data mining
CN111368185A (en) Data display method and device, storage medium and electronic equipment
CN110619078B (en) Method and device for pushing information
CN111522927A (en) Entity query method and device based on knowledge graph
CN112287206A (en) Information processing method and device and electronic equipment
CN112052297B (en) Information generation method, apparatus, electronic device and computer readable medium
CN108600329B (en) Method and equipment for pushing information and displaying information
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN112819512B (en) Text processing method, device, equipment and medium
CN107291923B (en) Information processing method and device
JP7204903B2 (en) INFORMATION PUSH METHOD, DEVICE, DEVICE AND STORAGE MEDIUM
CN111787042B (en) Method and device for pushing information
US20230085684A1 (en) Method of recommending data, electronic device, and medium
CN111339124B (en) Method, apparatus, electronic device and computer readable medium for displaying data
CN111782850A (en) Object searching method and device based on hand drawing
CN107256244B (en) Data processing method and system
CN113191840A (en) Article information display method and device, electronic equipment and computer readable medium
CN110110199B (en) Information output method and device
KR20210084641A (en) Method and apparatus for transmitting information
CN111338621A (en) Data display method and device, electronic equipment and computer readable medium
CN111382365A (en) Method and apparatus for outputting information
CN112348614A (en) Method and device for pushing information
CN110598133A (en) Method, apparatus, electronic device, and computer-readable storage medium for determining an order of search items

Legal Events

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