CN111125204A - Analysis report obtaining method and device, electronic equipment and storage medium - Google Patents

Analysis report obtaining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111125204A
CN111125204A CN201911305825.3A CN201911305825A CN111125204A CN 111125204 A CN111125204 A CN 111125204A CN 201911305825 A CN201911305825 A CN 201911305825A CN 111125204 A CN111125204 A CN 111125204A
Authority
CN
China
Prior art keywords
report
template
analysis
analysis result
statement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911305825.3A
Other languages
Chinese (zh)
Inventor
席丽娜
晋耀红
刘大双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dinfo Beijing Science Development Co ltd
Original Assignee
Dinfo Beijing Science Development 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 Dinfo Beijing Science Development Co ltd filed Critical Dinfo Beijing Science Development Co ltd
Priority to CN201911305825.3A priority Critical patent/CN111125204A/en
Publication of CN111125204A publication Critical patent/CN111125204A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The application provides an analysis report obtaining method, an analysis report obtaining device, electronic equipment and a storage medium, which are used for solving the problem of low efficiency of obtaining a stock market analysis report in a manual writing mode. The method comprises the following steps: obtaining a report template; analyzing the report template to obtain at least one statement template; analyzing the obtained business data according to at least one statement template to obtain at least one analysis result; and processing the report template according to at least one analysis result to obtain an analysis report. In the implementation process, the business data is analyzed by using at least one statement template in the report template to obtain at least one analysis result, and then the statement template in the report template is replaced by using the at least one analysis result to obtain the analysis report, so that the problem of low efficiency of a stock market analysis report manually written is effectively solved.

Description

Analysis report obtaining method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of data analysis and data processing, and in particular, to an analysis report obtaining method, an analysis report obtaining apparatus, an electronic device, and a storage medium.
Background
At present, the way of analyzing the stock market to obtain the daily stock market analysis report is generally to refer to the data and data by stock market security researchers or analysts, for example: related data and data are obtained through internet search or database query, and stock market analysis reports are manually written by stock market security researchers or analysts; however, obtaining stock market analysis reports by way of manual writing is inefficient.
Disclosure of Invention
An object of the embodiments of the present application is to provide an analysis report obtaining method, an analysis report obtaining apparatus, an electronic device, and a storage medium, which are used to solve the problem of low efficiency in obtaining a stock market analysis report in a manual writing manner.
The embodiment of the application provides an analysis report obtaining method, which comprises the following steps: obtaining a report template; analyzing the report template to obtain at least one statement template; analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result; and processing the report template according to the at least one analysis result to obtain an analysis report. In the implementation process, the business data is analyzed by using at least one statement template in the report template to obtain at least one analysis result, and then the statement template in the report template is replaced by using the at least one analysis result to obtain the analysis report, so that the problem of low efficiency of a stock market analysis report manually written is effectively solved.
Optionally, in this embodiment of the application, before the obtaining of the report template, the method further includes: receiving a report request sent by terminal equipment; determining the report template from a plurality of templates to be determined according to the report request; after the processing the report template according to the at least one analysis result to obtain an analysis report, the method further includes: and sending the analysis report to the terminal equipment. In the implementation process, the terminal device sends the report request and obtains the analysis report according to the report request, so that the efficiency of obtaining the analysis report by different terminal devices according to different report requests is effectively improved.
Optionally, in this embodiment of the present application, the determining, according to the report request, the report template from a plurality of templates to be determined includes: determining a time range, an inquiry intention and an inquiry object according to the information carried by the report request; determining the report template from the plurality of templates to be determined according to the time range, the query intent, and the query object. In the implementation process, the report template is determined according to the time concept, the query intention and the query object in the report request, the report template can be determined from a plurality of templates to be determined from a plurality of dimensions, and the universality of the templates to be determined are improved.
Optionally, in this embodiment of the present application, the analyzing the obtained service data according to the at least one statement template to obtain at least one analysis result includes: determining target data according to the statement template and the business data; counting the target data to obtain statistical information of the target data; and determining the statistical information of the target data as the analysis result. In the implementation process, the matched target data in the business data is inquired through the analysis object and the analysis parameter in the statement, and then the statistical information of the target data is determined as the analysis result, so that the speed of obtaining the analysis result is effectively improved.
Optionally, in this embodiment of the present application, the analyzing the obtained service data according to the at least one statement template to obtain at least one analysis result includes: determining target data according to the statement template and the business data; sequencing the target data to obtain sequenced target data; and determining the variation trend of the sorted target data as the analysis result. In the implementation process, the matched target data in the business data is inquired through the analysis object and the analysis parameter in the statement, and then the change trend of the sequenced target data is determined as the analysis result, so that the speed of obtaining the analysis result is effectively improved.
Optionally, in this embodiment of the present application, the determining target data according to the statement template and the service data includes: analyzing at least one analysis object and at least one analysis parameter in the statement template; determining target data from the business data according to the at least one analysis object and the at least one analysis parameter. In the implementation process, the target data is determined from the business data through the analysis object and the analysis parameters, so that the accuracy of obtaining the analysis result is effectively improved.
Optionally, in this embodiment of the present application, the determining target data from the business data according to the at least one analysis object and the at least one analysis parameter includes: determining target data from the business data according to the at least one analysis object, the business data comprising: stock data, enterprise data, fund data, and transaction data; screening and matching the target data from the stock data, the business data, the funds data, and the transaction data based on the at least one analysis parameter.
Optionally, in this embodiment of the present application, the processing the report template according to the at least one analysis result includes: populating the report template with the at least one analysis result; or replacing at least one statement template in the report template with the at least one analysis result.
The embodiment of the present application further provides an analysis report obtaining apparatus, including: the template obtaining module is used for obtaining a report template; the template analysis module is used for analyzing the report template to obtain at least one statement template; the result obtaining module is used for analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result; and the report obtaining module is used for processing the report template according to the at least one analysis result to obtain an analysis report.
Optionally, in an embodiment of the present application, the method further includes: a request receiving module, configured to receive a report request sent by a terminal device; the template determining module is used for determining the report template from a plurality of templates to be determined according to the report request; and the report sending module is used for sending the analysis report to the terminal equipment.
Optionally, in an embodiment of the present application, the template determining module includes: the first determining module is used for determining a time range, an inquiry intention and an inquiry object according to the information carried by the report request; a second determining module for determining the report template from the plurality of templates to be determined according to the time range, the query intent and the query object.
Optionally, in an embodiment of the present application, the result obtaining module includes: the third determining module is used for determining target data according to the statement template and the business data; the first obtaining module is used for carrying out statistics on the target data to obtain statistical information of the target data; and the fourth determination module is used for determining the statistical information of the target data as the analysis result.
Optionally, in an embodiment of the present application, the result obtaining module includes: the third determining module is used for determining target data according to the statement template and the business data; the first obtaining module is used for sequencing the target data to obtain sequenced target data; and the fourth determining module is used for determining the variation trend of the sorted target data as the analysis result.
Optionally, in an embodiment of the present application, the third determining module includes: the object parameter module is used for analyzing at least one analysis object and at least one analysis parameter in the statement template; a fifth determining module, configured to determine target data from the business data according to the at least one analysis object and the at least one analysis parameter.
Optionally, in an embodiment of the present application, the fifth determining module includes: a sixth determining module, configured to determine target data from the business data according to the at least one analysis object, where the business data includes: stock data, enterprise data, fund data, and transaction data; and the screening and matching module is used for screening and matching the target data from the stock data, the enterprise data, the fund data and the transaction data according to the at least one analysis parameter.
Optionally, in an embodiment of the present application, the report obtaining module includes: a population replacement module for populating the report template with the at least one analysis result; or replacing at least one statement template in the report template with the at least one analysis result.
An embodiment of the present application further provides an electronic device, including: a processor and a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the method as described above.
The embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a schematic diagram of an analysis report acquisition system to which the analysis report acquisition method provided by the embodiment of the present application is applied;
fig. 2 is a schematic flow chart of an analysis report obtaining method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an exemplary analysis report provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating the method for obtaining an analysis report applied to an automatic question-answering system for stock market quotations according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a list of templates to be determined according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an analysis report obtaining apparatus provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Icon: 110-an analysis report acquisition system; 120-an electronic device; 121-a processor; 122-a memory; 123-storage media; 130-a server; 400-analysis report obtaining means; 410-a template acquisition module; 420-template analysis module; 430-result obtaining module; 440-report acquisition module;
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Before describing the method in the embodiments of the present application, some concepts related to the embodiments of the present application are described as follows:
the DataBase (DataBase) is a collection for storing electronic data or electronic files, and can be regarded as an electronic file cabinet in short, and a user can add, intercept, update, delete and the like to the data in the files. The database includes: a memory database, a relational database and a non-relational database; the memory database refers to a data set searched based on a random memory; relational databases refer to databases that use relational models to organize data; a non-relational database, also known as NoSQL (not Only SQL), means not just a structured query language.
The Transmission Control Protocol/Internet Protocol (TCP/IP), also known as network communication Protocol, is the most basic Protocol of the Internet and the basis of the Internet and is composed of an IP Protocol of a network layer and a TCP Protocol of a Transmission layer. The communication may be based on transmission control protocol/internet protocol (TCP/IP) or may be based on hypertext transfer protocol. Internet Protocol Address (english: Internet Protocol Address) is also translated into an Internet Protocol Address, which is abbreviated as IP Address, and is a digital label assigned to a device of Internet Protocol (IP) used by a user to access the Internet.
Please refer to fig. 1, which is a schematic diagram of an analysis report obtaining method applied to one of analysis report obtaining systems; the analysis report acquisition system 110 includes: electronic device 120 and server 130; the electronic device 120 may communicate with the server 130, one electronic device 120 may communicate with a plurality of servers 130, one server 130 may also communicate with a plurality of electronic devices 120, and a specific communication manner between the electronic device 120 and the server 130 may be wireless network communication (as shown in the left side of fig. 1), wired network communication (as shown in the middle of fig. 1), or internet communication in which a wired network and a wireless network are mixed (as shown in the right side of fig. 1).
Here, the electronic device 120 refers to a device terminal or a server having a function of executing a computer program, and the device terminal includes, for example: smart phones, Personal Computers (PCs), tablet computers, Personal Digital Assistants (PDAs), Mobile Internet Devices (MIDs), network switches or network routers, etc.;
the server 130 herein refers to a device that provides a computing service through a network, and the server is, for example: x86 server and non-x 86 server, non-x 86 server includes: mainframe, minicomputer, and UNIX server. Certainly, in a specific implementation process, the server may specifically select a mainframe or a minicomputer, where the mainframe refers to a dedicated processor that mainly supports a closed and dedicated device for providing Computing services of a UNIX operating system, and that uses Reduced Instruction Set Computing (RISC), single-length fixed-point Instruction average execution speed (MIPS), and the like; a mainframe, also known as a mainframe, refers to a device that provides computing services using a dedicated set of processor instructions, an operating system, and application software.
Please refer to fig. 2, which is a schematic flow chart diagram of an analysis report obtaining method provided in the embodiment of the present application; the analysis report obtaining method may be executed by the electronic device described above, and certainly may also be executed by a server, and the analysis report obtaining method provided in the embodiment of the present application may be applied to a plurality of scenarios, for example: financial news writing, company management report, automatic writing of stock market analysis report, stock market quotation automatic question-answering system, trade market research report and the like. Here, the description is given taking an example of automatic composition applied to a stock market analysis report, and the analysis report obtaining method includes:
step S210: a report template is obtained.
The report template refers to a template of an analysis report obtained by analyzing specific data, for example: stock data, business data, funds data, transaction data, and the like, the report template includes at least one statement template. Certainly, in a specific implementation process, the report template may also include a fixed sentence, the fixed sentence and the sentence template are separated by using a preset divider, where the preset divider may be, for example, a middle bracket in a chinese state or a middle bracket in an english state, and may be specifically set according to an actual situation. Specific report template contents are, for example: market trading situation [ sentence template content ], wherein the market trading situation is a fixed sentence, [ sum ] is a separator, and the sentence template content is a concrete sentence template content.
The embodiment of obtaining the report template may be to manually compose the report template, or to download a set report template from the internet, or to receive a report template specifically used by a user. Here, the report template is written manually as an example, so that a sentence in specific report content that needs to be changed according to real-time data change can be replaced with a sentence template, and the replaced content is the report template including a fixed sentence and the sentence template.
Step S220: at least one statement template is obtained by parsing the report template.
The statement template refers to a statement level template which needs to be changed in real time according to factors such as time or data in the report template, and includes at least one analysis object and at least one analysis parameter, and the specific statement template includes, for example: [ all listed companies, $ Performance _ this year _ Overall Trend analysis ], where [ and ] are segmentors, $ is a segmentor of the analysis object and analysis parameters, that is, $ the preceding content may be the analysis object and the following content may be the analysis parameters, where the analysis object is all listed companies, that is, the query is made from all data of the above companies according to the analysis parameters, where the analysis parameters include: performance, this year and general trend analysis, which may also be specific function names, such as: and after the data of the performance of the current year is obtained from the databases of all listed companies, a function of general trend analysis is executed, so that the data general trend of the performance of the current year is obtained.
It should be noted that, here, parsing the report template to obtain at least one statement template includes: the parsing obtains the conditions of all statement templates in the report template, for example: if two statement templates exist in the report template, analyzing the report template to obtain the two statement templates; another example is: if ten statement templates exist in the report template, analyzing the report template to obtain the ten statement templates and the like; of course, nine statement templates can be obtained, the nine statement templates are processed, and the rest statement templates can be specially processed or not processed, etc.
The implementation way of analyzing the statement template can be that firstly the separators are matched, and the statement templates between all the matched separators are obtained, namely the statement templates between all the matched separators are intercepted; the embodiment of matching the segmenter may be to use a regular expression (regular expression), which is sometimes called regular expression, and is often abbreviated as regex, regexp or RE in code, as a concept of computer science, and the regular expression is usually used to retrieve and replace text that conforms to a certain pattern (pattern). Regular expressions describe a pattern of string matching that can be used to check whether a string contains a certain substring, to replace the matching substring, or to take a substring that meets a certain condition from a certain string, etc.
Step S230: and analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result.
Business data, refers to data on which analysis reports need to be generated, such as: if the stock market is analyzed to obtain a stock market analysis report, the relevant data of the stock market is needed, and the business data can be the stock market data. Here, the stock market data is taken as an example for explanation, and then the service data may include: stock data, business data, fund data, transaction data, and the like.
There are many ways to analyze the obtained business data according to at least one statement template, and only two ways are mentioned here: a first mode is used for analyzing service data to obtain statistical information of the data; the second mode is used for analyzing the service data to obtain the variation trend of the data; these two modes are described below:
here, the statistical information of the data obtained by analyzing the service data is taken as an example in the first way, then the step S230 may include the following steps:
step S231: and determining target data according to the statement template and the business data.
It is understood that the embodiment of determining the target data according to the statement template and the business data includes: at least one analysis object and at least one analysis parameter in the statement template are parsed. Target data is determined from the business data based on the at least one analysis object and the at least one analysis parameter. Specifically, for example: the sentence template is [ all concepts $ price _ question time element _ ascending sort _ descending #4 ], then the analysis object here is all concepts, and the analysis parameters include: price, question time element, ascending order, descending order and #4#, where #4# refers to an expression form in which the analysis parameter is a fixed parameter, and means to take out 4 records, and in combination with the previous price, question time element, ascending order and descending order analysis parameter, the meaning of the statement template can be understood as the first 4 data in which the prices in the time element analysis parameters are ordered according to ascending descending order are obtained from all concept plate databases, and then the first 4 data can be understood as the above target data, and the first 4 data can be, for example: the brewing industry, 2.25% rise; food and beverage, 1.2% rise; craft goods, rising by 0.89%; and (5) equipment transportation, rising by 0.68%.
In a specific embodiment, the determining of the target data from the business data according to the at least one analysis object and the at least one analysis parameter is performed, for example, by: determining target data from business data according to at least one analysis object, the business data comprising: stock data, business data, fund data, and transaction data. Target data is filtered and matched from the stock data, business data, fund data, and transaction data based on at least one analysis parameter. That is, the service data is target data that needs to be screened and matched to meet the conditions, where the meeting conditions refer to some conditions that meet specific data, such as: the first 4 pieces of data have the condition that the precision value digit is 3 bits, and the like, and the specific coincidence condition is described in detail below in conjunction with a specific scenario. In the implementation process, the target data is determined from the business data through the analysis object and the analysis parameters, so that the accuracy of obtaining the analysis result is effectively improved.
Step S232: and counting the target data to obtain the statistical information of the target data.
The embodiment of obtaining the statistical information of the target data includes: the phrase template is [ latest # released bulletin, $ performance _ problem time element, # company statistics _ # growth # ], which means that the statistical growth of the company performance in the latest released company bulletin within a preset time range, that is, the performance prediction data submitted by all the listed companies in the latest released quarterly, semiannually or annual report is obtained, thereby obtaining the percentage of the number of companies for which the performance prediction of the company increases, wherein the problem time element is the preset time range, and the problem time element can be set according to actual conditions, for example, three months, semiannually or one year. The statistics of the target data refers to statistics of performance prediction data submitted by all listed enterprises in recently released quarterly, semiannually or annual reports, and the statistical information refers to the proportion of the number of companies with increased performance prediction of the enterprises.
Step S233: and determining the statistical information of the target data as an analysis result.
Examples of the embodiment of determining the statistical information of the target data as the analysis result include: the statistical information obtained above means that the percentage of the number of companies whose performance prediction of the enterprise is increased is 0.0%, and the analysis result here means information expressed by semantics according to the statistical information of the target data, specifically, the analysis result is, for example: in the last three months, the total business income of companies appearing in the deep market is 1000.0 ten thousand yuan, and the business income is increased by 0.0 percent on the same scale.
In the implementation process, the matched target data in the business data is inquired through the analysis object and the analysis parameter in the statement, and then the statistical information of the target data is determined as the analysis result, so that the speed of obtaining the analysis result is effectively improved.
Here, taking the second way to illustrate the variation trend of the data obtained by analyzing the business data as an example, the step S230 may include the following steps:
step S234: and determining target data according to the statement template and the business data.
The specific implementation principle and implementation manner of step S234 are similar to those of step S231, and therefore, the details of the step will not be described here.
Step S235: and sequencing the target data to obtain the sequenced target data.
Embodiments of obtaining the sorted target data specifically include, for example: the sentence template is [ all listed companies $ performance _ this year _ general trend analysis ], then performance data of all listed companies in this year can be obtained, and the performance data of all listed companies in this year are sorted according to the chronological order, and then performance data of all listed companies in this year after sorting are obtained, and the performance data of all listed companies in this year after sorting are target data after sorting.
Step S236: and determining the variation trend of the sorted target data as an analysis result.
The embodiment of determining the variation trend of the sorted target data as the analysis result is, for example: and acquiring the performance and cash grading data of the enterprises appearing on the market at each month within the appointed time concept range, and analyzing the change trend. The variation trend comprises: continuously lift, climb, rise, increase, fall, decrease, decline, glide, and the like, or comprise: instability, fluctuation up and down, and smoothness, etc., where the analysis results are, for example: in this year, the performance of all listed companies is kept stable, and the cash dividend of all listed companies is kept stable.
In the implementation process, the matched target data in the business data is inquired through the analysis object and the analysis parameter in the statement, and then the change trend of the sequenced target data is determined as the analysis result, so that the speed of obtaining the analysis result is effectively improved.
Step S240: and processing the report template according to at least one analysis result to obtain an analysis report.
There are two embodiments for processing the report template according to at least one analysis result: filling in a first template processing mode; replacing a second template processing mode; the third mode processing mode carries out structural typesetting on the report template; the fourth approach is to aesthetically modify the reporting template. The first and second modes will be described in detail below, so a third and fourth processing mode will be described here with emphasis, the third mode being, for example: before the structure of the report template is not typeset, the report template is out of order, the key points are not prominent, and the like, after the structure of the report template is typeset, taking the report template of stock market analysis as an example, the report template comprises: market trading situation, marketing enterprise operation situation, market valuation information, stock market fund situation analysis and market confidence. The fourth mode is, for example: the report template is beautifully modified, specifically, a separator with a modified color is added between the paragraph and the title, and a proper picture is inserted, so that the report can be more beautifully seen. Here, the first template processing manner is taken as an example for explanation, then the step S240 may include the following steps:
step S241: populating a report template with the at least one analysis result.
An embodiment of populating a report template with at least one analysis result is for example: the term template is [ latest # publication gazette $ performance _ question time element _ company statistics _ # growth # ], and if the obtained statistical information indicates that the percentage of the number of companies whose performance prediction of the company increases is 0.0%, the analysis result here refers to information expressed semantically from the statistical information of the target data, and specifically, the analysis result is, for example: in the last three months, the total business income of the company appearing in the deep market is 0.0 ten thousand/hundred million yuan, and the business income is increased by 0.0 percent on the same scale. The analysis result can be replaced by the statement template of [ latest # publication bulletin $ achievement _ problem time element _ company statistics _ # growth # ] in the report template, and at the same time, the trend situation of the current year can be continuously analyzed, wherein the trend is, for example: the trend is stable, falls down slightly and rises greatly, and the like, and the analysis result of the trend situation is obtained, for example: the performance of all listed companies in the year keeps stable; the analysis results "all listed companies' performance this year remains smooth" can be populated into the analysis report.
Here, the second template processing and the like are alternatively exemplified, and then the step S240 may include the following steps:
step S242: at least one statement template in the report template is replaced with at least one analysis result.
An embodiment of replacing at least one statement template in a report template with at least one analysis result is for example: if the sentence template is [ all listed companies $ performance _ this year _ general trend analysis ], after obtaining the performance data of this year from all listed company databases, the performance data of this year of all listed companies are analyzed in the above manner, and the obtained analysis results are, for example: in this year, the performance of all listed companies is kept stable, and the cash diversion of all listed companies is kept stable; then "all listed companies are performing steady this year, and all listed companies are performing steady cash dividend" will replace "[ all listed companies $ performing this year _ overall trend analysis ] in the report template.
Please refer to fig. 3, which is a schematic diagram of an exemplary analysis report provided by the embodiment of the present application; an exemplary analysis report is shown, where the analysis report refers to a report obtained by analyzing specific data, such as: stock data, business data, funds data, transaction data, and the like. The analysis report may include a plurality of parts, and here, taking the analysis of the stock market data as an example, the analysis report includes: market trading situation, marketing enterprise operation situation, market valuation, stock market fund area, market confidence and the like.
In the implementation process, the business data is analyzed by using at least one statement template in the report template to obtain at least one analysis result, and then the statement template in the report template is replaced by using the at least one analysis result to obtain the analysis report, so that the problem of low efficiency of a stock market analysis report manually written is effectively solved.
Please refer to fig. 4, which is a schematic flow chart of the method for obtaining an analysis report applied to an automatic query-answering system for stock market quotations according to the embodiment of the present application; as described above, the analysis report obtainment method may be applied to the scenario of the stock market quotation automatic question-answering system in addition to the scenario of the automatic writing of the stock market analysis report described above, and then the analysis report obtainment method may be performed by a server, and the method may include the steps of:
step S310: the terminal device sends a report request to the server.
The report request refers to a request sent by the terminal device to the server to obtain the analysis report, and the report request may be, for example: "how the stock market is going today", or "how the index is going this year", or "how the trade was yesterday", etc.
The specific way of sending the report request to the Server by the terminal device is various, that is, the specific way of communication between the terminal device and the Server is various, and the communication can be a Browser request of the client and a Server response way, that is, a Browser/Server (B/S) way. Of course, in a specific implementation process, the communication may also be performed in an asynchronous manner, for example: the server uses a front-end and back-end separation architecture case, specifically, the front-end uses a framework of separation of a control layer and a view layer, and the frameworks are as follows: knockout, Angular, React or Vue; the back-end uses a framework that separates the control layer and the data access layer, such as: RESTful interface, etc. Another example is: NET Signal method can be adopted for data interaction, SignalR supports server push function, and client codes in a browser can be called in the server.
Step S320: the server receives a report request sent by the terminal equipment, and determines a report template from a plurality of templates to be determined according to the report request.
Please refer to fig. 5, which illustrates a schematic diagram of a to-be-determined template list provided in an embodiment of the present application; the figure shows a plurality of templates to be determined, where a template to be determined refers to a report template for which analysis of specific data is not determined, for example: the report template comprises at least one statement template and a fixed statement, the fixed statement and the statement template are separated by a preset divider, the preset divider can be a middle bracket in a Chinese state or a middle bracket in an English state, and the report template can be specifically set according to actual conditions.
The embodiment of determining the report template from the plurality of templates to be determined according to the report request in step S320 may include the following steps:
step S321: and determining a time range, an inquiry intention and an inquiry object according to the information carried by the report request.
The embodiments of determining the time range, the query intention and the query object according to the information carried by the report request are as follows: the report request is, for example: "how the stock market is in today", then the time range here means today, the inquiry intention means market, and the inquiry object means stock market; another example is: "how the index of this year trends", the time frame means this year, the query intention means trend, and the query object means index of deep market or index of Shanghai market. If any one of the time range, the query intention, and the query object is not found in the information carried in the report request, default values may be set for the time range, the query intention, or the query object that are not included, specifically, for example: "how much the market is", the time range may be set to a default value of today, the query intention here may be obtained as the market, and the query object may be set to a default value of stock market.
Step S322: a report template is determined from a plurality of templates to be determined according to the time range, the query intent and the query object.
Embodiments of determining a report template from a plurality of templates to be determined as a function of the time range, the query intent and the query object are, for example: the naming mode of the template to be determined may be named according to the time range, the query intention and the query object, for example: "today-stock market-market" and "this year-index-trend" etc. When the server receives a report request similar to ' how today's stock market quotation ', a plurality of templates to be determined can be matched semantically, wherein the matching refers to fuzzy matching or semantic matching, namely, the report template is determined to be the template of ' today-stock market quotation ' from ' today-stock market quotation ' and ' this year-index-trend '. In the implementation process, the report template is determined according to the time concept, the query intention and the query object in the report request, the report template can be determined from a plurality of templates to be determined from a plurality of dimensions, and the universality of the templates to be determined are improved.
Step S330: the server parses at least one statement template from the report template.
The specific implementation principle and implementation manner of step S330 are similar to those of step S220, and therefore, the details of the step will not be described here, and reference may be made to the description of step S220 for unclear points.
Step S340: and the server analyzes the obtained service data according to the at least one statement template to obtain at least one analysis result.
The specific implementation principle and implementation manner of step S340 are similar to those of step S230, and therefore, the details of the step will not be described here, and reference may be made to the description of step S230 where it is unclear.
Step S350: and the server processes the report template according to at least one analysis result to obtain an analysis report.
The specific implementation principle and implementation manner of step S350 are similar to those of step S240, and therefore, the details of the step will not be described here, and reference may be made to the description of step S240 where it is unclear.
Step S360: the server sends an analysis report to the terminal device.
Step S370: and the terminal equipment receives the analysis report sent by the server.
Embodiments in which the server sends the analysis report to the terminal device, and embodiments in which the terminal device receives the analysis report sent by the server, may be sent and received through a variety of protocols, for example: the transmission and reception can be performed through a TCP/IP Protocol, or can be performed through a User Datagram Protocol (UDP), which is a connectionless transport layer Protocol in an Open System Interconnection (OSI) reference model, and provides a transaction-oriented simple unreliable information transfer service.
In the implementation process, the terminal device sends the report request and obtains the analysis report according to the report request, so that the efficiency of obtaining the analysis report by different terminal devices according to different report requests is effectively improved.
Please refer to fig. 6, which illustrates a schematic structural diagram of an analysis report obtaining apparatus provided in an embodiment of the present application; the embodiment of the present application provides an analysis report obtaining apparatus 400, including:
a template obtaining module 410 for obtaining a report template.
And the template analysis module 420 is used for analyzing the report template to obtain at least one statement template.
And the result obtaining module 430 is configured to analyze the obtained service data according to the at least one statement template to obtain at least one analysis result.
And a report obtaining module 440, configured to process the report template according to at least one analysis result to obtain an analysis report.
Optionally, in an embodiment of the present application, the method further includes:
and the request receiving module is used for receiving the report request sent by the terminal equipment.
And the template determining module is used for determining a report template from a plurality of templates to be determined according to the report request.
And the report sending module is used for sending the analysis report to the terminal equipment.
Optionally, in an embodiment of the present application, the template determining module includes:
and the first determining module is used for determining the time range, the query intention and the query object according to the information carried by the report request.
And the second determination module is used for determining the report template from the plurality of templates to be determined according to the time range, the query intention and the query object.
Optionally, in this embodiment of the present application, the result obtaining module may include:
and the third determining module is used for determining the target data according to the statement template and the service data.
The first obtaining module is used for carrying out statistics on the target data to obtain statistical information of the target data.
And the fourth determining module is used for determining the statistical information of the target data as an analysis result.
Optionally, in this embodiment of the present application, the result obtaining module may further include:
and the third determining module is used for determining the target data according to the statement template and the service data.
And the first obtaining module is used for sequencing the target data to obtain the sequenced target data.
And the fourth determining module is used for determining the change trend of the sequenced target data as an analysis result.
Optionally, in an embodiment of the present application, the third determining module includes:
and the object parameter module is used for analyzing at least one analysis object and at least one analysis parameter in the statement template.
And the fifth determining module is used for determining target data from the business data according to the at least one analysis object and the at least one analysis parameter.
Optionally, in an embodiment of the present application, the fifth determining module includes:
a sixth determining module, configured to determine target data from business data according to at least one analysis object, where the business data includes: stock data, business data, fund data, and transaction data.
And the screening and matching module is used for screening and matching target data from the stock data, the enterprise data, the fund data and the transaction data according to at least one analysis parameter.
Optionally, in an embodiment of the present application, the report obtaining module includes:
a population replacement module for populating the report template with the at least one analysis result; or replacing at least one statement template in the report template with at least one analysis result.
It should be understood that the apparatus corresponds to the above method embodiment, and can perform the steps related to the above method embodiment, the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 7 for a schematic structural diagram of an electronic device according to an embodiment of the present application. An electronic device 120 provided in an embodiment of the present application includes: a processor 121 and a memory 122, the memory 122 storing machine-readable instructions executable by the processor 121, the machine-readable instructions when executed by the processor 121 performing the method as above.
The embodiment of the present application further provides a storage medium 123, where the storage medium 123 stores thereon a computer program, and the computer program is executed by the processor 121 to perform the method as above.
The storage medium 123 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application.

Claims (10)

1. An analysis report acquisition method, comprising:
obtaining a report template;
analyzing the report template to obtain at least one statement template;
analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result;
and processing the report template according to the at least one analysis result to obtain an analysis report.
2. The method of claim 1, prior to said obtaining a report template, further comprising:
receiving a report request sent by terminal equipment;
determining the report template from a plurality of templates to be determined according to the report request;
after the processing the report template according to the at least one analysis result to obtain an analysis report, the method further includes:
and sending the analysis report to the terminal equipment.
3. The method of claim 2, wherein determining the report template from a plurality of templates to be determined according to the report request comprises:
determining a time range, an inquiry intention and an inquiry object according to the information carried by the report request;
determining the report template from the plurality of templates to be determined according to the time range, the query intent, and the query object.
4. The method of claim 1, wherein analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result comprises:
determining target data according to the statement template and the business data;
counting the target data to obtain statistical information of the target data;
and determining the statistical information of the target data as the analysis result.
5. The method of claim 1, wherein analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result comprises:
determining target data according to the statement template and the business data;
sequencing the target data to obtain sequenced target data;
and determining the variation trend of the sorted target data as the analysis result.
6. The method according to any one of claims 4-5, wherein said determining target data from said statement template and said business data comprises:
analyzing at least one analysis object and at least one analysis parameter in the statement template;
determining target data from the business data according to the at least one analysis object and the at least one analysis parameter.
7. The method of claim 1, wherein processing the report template based on the at least one analysis result comprises:
populating the report template with the at least one analysis result; or
Replacing at least one statement template in the report template with the at least one analysis result.
8. An analysis report acquisition apparatus, comprising:
the template obtaining module is used for obtaining a report template;
the template analysis module is used for analyzing the report template to obtain at least one statement template;
the result obtaining module is used for analyzing the obtained business data according to the at least one statement template to obtain at least one analysis result;
and the report obtaining module is used for processing the report template according to the at least one analysis result to obtain an analysis report.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1-7.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911305825.3A 2019-12-17 2019-12-17 Analysis report obtaining method and device, electronic equipment and storage medium Pending CN111125204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911305825.3A CN111125204A (en) 2019-12-17 2019-12-17 Analysis report obtaining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911305825.3A CN111125204A (en) 2019-12-17 2019-12-17 Analysis report obtaining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111125204A true CN111125204A (en) 2020-05-08

Family

ID=70499390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911305825.3A Pending CN111125204A (en) 2019-12-17 2019-12-17 Analysis report obtaining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111125204A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782916A (en) * 2020-08-20 2020-10-16 支付宝(杭州)信息技术有限公司 Method and device for generating service information report
CN112988718A (en) * 2021-05-21 2021-06-18 睿至科技集团有限公司 Method and system for automatically monitoring power

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070016561A1 (en) * 2005-07-03 2007-01-18 Research Innovation Aps Electronic report generator
CN104778241A (en) * 2015-04-08 2015-07-15 北京京东尚科信息技术有限公司 Report generation method and system
CN107818074A (en) * 2017-09-27 2018-03-20 阿里巴巴集团控股有限公司 A kind of generation method of data report, device and electronic equipment
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
CN109948134A (en) * 2019-03-21 2019-06-28 润电能源科学技术有限公司 A kind of report automatic generation method, system and electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070016561A1 (en) * 2005-07-03 2007-01-18 Research Innovation Aps Electronic report generator
CN104778241A (en) * 2015-04-08 2015-07-15 北京京东尚科信息技术有限公司 Report generation method and system
CN107818074A (en) * 2017-09-27 2018-03-20 阿里巴巴集团控股有限公司 A kind of generation method of data report, device and electronic equipment
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
CN109948134A (en) * 2019-03-21 2019-06-28 润电能源科学技术有限公司 A kind of report automatic generation method, system and electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782916A (en) * 2020-08-20 2020-10-16 支付宝(杭州)信息技术有限公司 Method and device for generating service information report
CN111782916B (en) * 2020-08-20 2024-03-22 支付宝(杭州)信息技术有限公司 Method and device for generating business information report
CN112988718A (en) * 2021-05-21 2021-06-18 睿至科技集团有限公司 Method and system for automatically monitoring power
CN112988718B (en) * 2021-05-21 2021-08-03 睿至科技集团有限公司 Method and system for automatically monitoring power

Similar Documents

Publication Publication Date Title
US8266148B2 (en) Method and system for business intelligence analytics on unstructured data
US8671040B2 (en) Credit risk mining
US9875319B2 (en) Automated data parsing
US20180018311A1 (en) Method and system for automatically extracting relevant tax terms from forms and instructions
CN108027814B (en) Stop word recognition method and device
US10915971B1 (en) Systems, methods and articles for associating form-filling data with a user entity
US10042836B1 (en) Semantic knowledge base for tax preparation
US10147020B1 (en) System and method for computational disambiguation and prediction of dynamic hierarchical data structures
CN112667825A (en) Intelligent recommendation method, device and equipment based on knowledge graph and storage medium
WO2018171295A1 (en) Method and apparatus for tagging article, terminal, and computer readable storage medium
CN111125204A (en) Analysis report obtaining method and device, electronic equipment and storage medium
US20230179558A1 (en) System and Method for Electronic Chat Production
CN115145871A (en) File query method and device and electronic equipment
JP2004523838A (en) Method and system for symbolic linking and intelligent classification of information
US20210224247A1 (en) Computer estimations based on statistical tree structures
CN114692628A (en) Sample generation method, model training method, text extraction method and text extraction device
US20230016485A1 (en) Systems and Methods for Intelligent Automatic Filing of Documents in a Content Management System
CN117077628A (en) Public opinion coping scheme generation method, public opinion coping scheme generation device, server and storage medium
CN109542890B (en) Data modification method, device, computer equipment and storage medium
JP2015194955A (en) Bid information search system
US10824803B2 (en) System and method for logical identification of differences between spreadsheets
CN114445043B (en) Open ecological cloud ERP-based heterogeneous graph user demand accurate discovery method and system
US20230044287A1 (en) Semantics based data and metadata mapping
CA3202971A1 (en) System and method for parsing regulatory and other documents for machine scoring
CN113590792A (en) User problem processing method and device and server

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
CB02 Change of applicant information

Address after: 230000 zone B, 19th floor, building A1, 3333 Xiyou Road, hi tech Zone, Hefei City, Anhui Province

Applicant after: Dingfu Intelligent Technology Co., Ltd

Address before: Room 630, 6th floor, Block A, Wanliu Xingui Building, 28 Wanquanzhuang Road, Haidian District, Beijing

Applicant before: DINFO (BEIJING) SCIENCE DEVELOPMENT Co.,Ltd.

CB02 Change of applicant information