CN111339124B - Method, apparatus, electronic device and computer readable medium for displaying data - Google Patents

Method, apparatus, electronic device and computer readable medium for displaying data Download PDF

Info

Publication number
CN111339124B
CN111339124B CN202010109095.6A CN202010109095A CN111339124B CN 111339124 B CN111339124 B CN 111339124B CN 202010109095 A CN202010109095 A CN 202010109095A CN 111339124 B CN111339124 B CN 111339124B
Authority
CN
China
Prior art keywords
data
tag
user
database
language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010109095.6A
Other languages
Chinese (zh)
Other versions
CN111339124A (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

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

Embodiments of the present disclosure disclose a method, apparatus, electronic device, and computer-readable medium for displaying data. One embodiment of the method comprises the following steps: 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 embodiment can complete various database queries, thereby improving user experience and saving user time.

Description

Method, apparatus, electronic device and computer readable medium for displaying data
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for displaying data.
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 direct data value display, data table display, various statistical graphic display and the like.
However, most of the query sentences in the database are not universal, and the data query is very complicated after the database is replaced.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure 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 methods, apparatuses, electronic devices, and computer-readable media 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 a display data device, the device comprising: the acquisition unit is configured to acquire the label information and the data display mode selected by the user; a generation unit configured to generate a structured language according to the tag information and the data display manner; and a determining unit configured to determine, from the database, relevant data corresponding to the structured language 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; a storage means for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the implementations of the first aspect.
One of the above embodiments of the present disclosure has the following advantageous effects: the method comprises the steps of obtaining label information and a data display mode selected by a user to generate a structured language, determining relevant data corresponding to the structured language from a database based on the structured language, and displaying the relevant data 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 embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is an architecture diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow chart of some embodiments of a method of displaying data according to the present disclosure;
FIG. 3 is a schematic diagram of the structure of some embodiments of a display data device according to the present disclosure;
fig. 4 is a schematic structural 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 should be understood that the present 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 so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such 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 to which the display data method or display data device of some embodiments of the present disclosure may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 101, 102, 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 and including, but not limited to, smartphones, tablets, electronic book readers, laptop portable computers, desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention 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 electronic book reader, a laptop portable computer, a desktop computer, and the like. When the execution subject is software, the execution subject can be installed in the electronic device enumerated above. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention 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 label information and data display modes selected by a user.
In some embodiments, the execution subject of the display data method (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-described tag information generally refers to information of a tag selected by a user, and as an example, when the user wants to see sales of an a-item, the user may select an "a-item sales" tag. Further, the display mode may be a comparison display of the sales of the article a and the sales of the article b selected by the user.
And 202, generating a structured language according to the label information and the data display mode.
In some embodiments, the execution body 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 text, or the like. The execution subject described above may generate the structured language in a variety of ways. As an example, the execution body may combine the tag and the data display manner to generate a code or text or the like having the tag and the data display manner: when the data display mode is a table, and the user selects labels of "a region", "b commodity", "annual sales amount" and "growth rate", the execution subject may generate a structured language in which "the annual sales amount growth rate of the a region b commodity is displayed in the table".
And 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 body 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 "a district b commodity annual sales increase rate is displayed in a table", the "a district b commodity annual sales increase rate" is displayed in a table manner. Specifically, the execution subject may determine the corresponding relevant data according to the type of the tag information in the structured language and the data in the database or the similarity degree of the tag, and so on.
Specifically, the similarity may be determined by repeating the number of words 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 selects the tag to be "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-described tag is "time", data corresponding to a tag whose name is the same as or similar to "time" in the database is taken as the related data. As another example, when the tag is "time", the data in the database is determined to be related data when the data is a specific time.
In some alternative implementations of some embodiments, the database is determined based on user selection.
In some alternative implementations of some embodiments, the execution body may convert the structured language to an intermediate language. Here, the above intermediate language generally refers to a language in which user structured language and database instructions are excessively performed. By way of example, the above-described intermediate language may be a mathematical expression or code, or the like. In particular, the execution body may convert the structured language into a form composed of a plurality of mathematical expressions. As an example, the structured language "rate of increase in sales of an item a by year" may be expressed as the ratio of the sum of sales of an item a by year each month to the sum of sales of an item a by year each month.
And then, storing the intermediate language and converting the intermediate language into database instructions. In particular, the database instructions may be structured query language (Structured Query Language, SQL). As an example, when the intermediate language is "a region annual sales increase value", the above intermediate language may be converted into a structured query language for querying a region annual sales and annual sales difference. And then, sending the database instruction into the database. And determining corresponding relevant data in the database according to the database instruction and displaying the relevant 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, then the data related to time in the database is related data.
In some optional implementations of some embodiments, the executing entity may establish the tag and the data tag mapping relationship according to the data tag and the tag in response to detecting that the data tag and the tag in the database contain the same field; and determining the related data according to the mapping relation. Here, the above-described mapping relationship generally refers to a relationship in which two labels "correspond" to each other. As an example, when a tag in a part of data in the database is "area" and a tag selected by a user is also "area", the above part of data is determined as 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 implementations of some embodiments, the executing body may establish, in response to not detecting that the data tag in the database and the tag contain the same field, a mapping relationship between the tag and the data tag according to user operation; and determining the related data in the data corresponding to the data tag 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 includes: and extracting article information and user preference data from the displayed data, wherein the user preference data comprises a user preference article information sample and a scoring sample of the preference articles. The extraction may be performed by extracting a keyword from the displayed data or extracting a keyword from the displayed data according to a selected tag. And inputting the user preference article information into a model to be trained to obtain the scores of the user preference articles. Specifically, the model to be trained generally refers to a mapping table, a function expression, a machine learning model, or the like of imperfect user preference information and scores of the preference. Specifically, the machine learning model may be a convolutional neural network or the like.
And then, analyzing the scores of the favorite articles and the scoring samples of the favorite articles to determine a scoring loss value. As an example, the execution subject may take a difference between the score of the favorite item and the score sample of the favorite item as the score loss value. And determining whether the model to be trained is trained to be completed or not according to the fact that the scoring loss value meets a preset condition.
Here, the predetermined condition may be that the score loss value is smaller 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 complete in training. And determining the model to be trained as the 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 the user preference score of the item and displaying the related item information according to the preference score. In particular, when there are multiple items, item information of a predetermined rank may be displayed according to the ranking. When there is only one item, item information is displayed when the item's preference score meets a predetermined threshold.
In this way, it is considered that the user may be interested in the data of an item when buying the item, and the information of the item is recommended to the user. The process of searching the target data in a plurality of data is omitted for the user, a great deal of time is saved, and the user experience is improved.
The structured language generated by the method provided by some embodiments of the present disclosure can complete various database queries, thereby improving user experience and saving user time.
With further reference to fig. 3, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a display data device, which correspond to those method embodiments shown in fig. 2, and which are particularly applicable in various electronic apparatuses.
As shown in fig. 3, the display data device 300 of some embodiments includes: an acquisition unit 301, a generation unit 302, and a determination unit 303. The acquiring unit 301 is configured to acquire tag information and a data display mode selected by a user; the generating unit 302 is configured to generate a structured language according to the tag information and the data display mode; and the determining unit 303 is configured to determine, from the database, relevant data corresponding to the structured language according to the structured language and display the relevant data based on the structured language.
In alternative implementations of some embodiments, the database is determined based on user selections.
In an alternative 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 database instructions; transmitting the database instruction to the database; and determining corresponding relevant data in the database according to the database instruction and displaying the relevant data based on the structured language.
In an alternative implementation of some embodiments, the determining unit 303 is further configured to: responding to the fact that the data tag and the tag in the database contain the same field, and establishing a mapping relation 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 alternative implementation of some embodiments, the determining unit 303 is further configured to: in response to the fact that the data tag and the tag in the database do not contain the same field, establishing a mapping relation between the tag and the data tag according to data corresponding to the data tag and the tag by user operation; and determining the related data in the data corresponding to the data tag according to the mapping relation, and displaying the related data.
In an alternative implementation 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 scoring sample of the preference item; inputting the user preference article information into a model to be trained to obtain the scores of the user preference articles; analyzing the scores of the favorite articles and the scoring samples of the favorite articles to determine scoring loss values; determining whether the model to be trained is trained according to the fact that the scoring loss value meets a preset condition; in response to determining that the training of the model to be trained is not complete, adjusting relevant parameters in the model to be 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 the user preference score of the item and displaying the related item information according to the preference score.
It will be appreciated that the elements 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 benefits described above with respect to the method are equally applicable to the apparatus 300 and the units contained therein, and are not described in detail herein.
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 devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, 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 with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 4 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts 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 shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, 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 communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 some embodiments of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a generation unit, and a determination unit. The names of these units do not constitute limitations on the unit itself in some cases, and for example, the acquisition unit may also be described as "a unit that acquires tag information and a data display manner selected by the user".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being 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 technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (5)

1. A method for displaying data, comprising:
acquiring label information and a data display mode selected by a user;
combining the tag information and the data display mode to generate characters with the tag and the data display mode as a structured language;
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;
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 user favorite article information into a model to be trained to obtain the scores of the user favorite articles;
analyzing the scores of the favorite articles and the scoring samples of the favorite articles to determine scoring loss values;
determining whether the model to be trained is trained;
in response to determining that the training of the model to be trained is not complete, adjusting relevant parameters in the model to be 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 to obtain user preference scores of the items and displaying related item information according to the preference scores;
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 into an intermediate language;
storing the intermediate language and converting the intermediate language into a database instruction, wherein the intermediate language refers to a structured language and a language in which the database instruction is excessive, and the intermediate language is a mathematical expression or a code;
sending the database instruction to the database;
responding to the fact that the data tag and the tag in the database contain the same field, and establishing a mapping relation between the tag and the data tag according to the data tag and the tag;
determining the related data according to the mapping relation;
in response to the fact that the data tag and the tag in the database do not contain the same field, establishing a mapping relation between the tag and the data tag according to data corresponding to the data tag and the tag by user operation;
and determining the related data in the data corresponding to the data tag according to the mapping relation and displaying the related data.
2. The method of claim 1, wherein the database is determined according to a user selection.
3. An apparatus for displaying data, comprising:
the acquisition unit is configured to acquire the label information and the data display mode selected by the user;
a generation unit configured to generate a structured language according to the tag information and the data display manner;
a determining unit configured to 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;
an extraction unit configured to extract item information and user preference data from the displayed data, wherein the user preference data includes a user preference item information sample and a scoring sample of the preference item;
the input unit is configured to input the user preference article information into a model to be trained to obtain the scores of the user preference articles;
an analysis unit configured to analyze the score of the favorite item and the score sample of the favorite item, determining a score loss value;
a training determination unit configured to determine whether training of the model to be trained is completed in response to the score loss value satisfying a predetermined condition;
an adjustment unit configured to adjust relevant parameters in the model to be trained in response to determining that training of the model to be trained is not complete;
a user interest model determination unit configured to determine a model to be trained as a user interest model in response to determining that training of the model to be trained is completed;
a user interest model input unit configured to input the item information to the user interest model, obtain a user preference score of the item, and display related item information according to the preference score;
wherein the extraction unit is configured to:
converting the structured language into an intermediate language;
storing the intermediate language and converting the intermediate language into a database instruction, wherein the intermediate language refers to a structured language and a language in which the database instruction is excessive, and the intermediate language is a mathematical expression or a code;
sending the database instruction to the database;
responding to the fact that the data tag and the tag in the database contain the same field, and establishing a mapping relation between the tag and the data tag according to the data tag and the tag;
determining the related data according to the mapping relation;
in response to the fact that the data tag and the tag in the database do not contain the same field, establishing a mapping relation between the tag and the data tag according to data corresponding to the data tag and the tag by user operation;
and determining the related data in the data corresponding to the data tag according to the mapping relation and displaying the related data.
4. 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, causes the one or more processors to implement the method of any of claims 1-2.
5. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-2.
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 CN111339124A (en) 2020-06-26
CN111339124B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367147B (en) * 2020-09-27 2022-09-09 苏州宣怀智能科技有限公司 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

Also Published As

Publication number Publication date
CN111339124A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US11669579B2 (en) Method and apparatus for providing search results
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
CN109522483B (en) Method and device for pushing information
JP2020509449A (en) Method and device for warning
CN111368185A (en) Data display method and device, storage medium and electronic equipment
CN108280200B (en) Method and device for pushing information
EP2985703A1 (en) Information recommendation method and device
CN113688310B (en) Content recommendation method, device, equipment and storage medium
CN110825988A (en) Information display method and device and electronic equipment
EP3961426A2 (en) Method and apparatus for recommending document, electronic device and medium
EP4231143A1 (en) Information display method and apparatus, electronic device, and computer readable storage medium
CN111324700A (en) Resource recall method and device, electronic equipment and computer-readable storage medium
CN112948540A (en) Information query method and device, electronic equipment and computer readable medium
CN112052297A (en) Information generation method and device, electronic equipment and computer readable medium
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN114357325A (en) Content search method, device, equipment and medium
CN111339124B (en) Method, apparatus, electronic device and computer readable medium for displaying data
CN111488386B (en) Data query method and device
CN111339452B (en) Method, terminal, server and system for displaying search result
CN112819512A (en) Text processing method, device, equipment and medium
US20230085684A1 (en) Method of recommending data, electronic device, and medium
CN109472028B (en) Method and device for generating information
CN107256244B (en) Data processing method and system
CN110598049A (en) Method, apparatus, electronic device and computer readable medium for retrieving video
KR20210084641A (en) Method and apparatus for transmitting information

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