CN114020245A - Page construction method and apparatus, device and medium - Google Patents
Page construction method and apparatus, device and medium Download PDFInfo
- Publication number
- CN114020245A CN114020245A CN202111300901.9A CN202111300901A CN114020245A CN 114020245 A CN114020245 A CN 114020245A CN 202111300901 A CN202111300901 A CN 202111300901A CN 114020245 A CN114020245 A CN 114020245A
- Authority
- CN
- China
- Prior art keywords
- target
- target page
- page component
- information
- target data
- 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
Links
- 238000010276 construction Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 claims description 45
- 238000004590 computer program Methods 0.000 claims description 17
- 238000009877 rendering Methods 0.000 claims description 4
- 230000011218 segmentation Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 238000013079 data visualisation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/35—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/36—Creation of semantic tools, e.g. ontology or thesauri
- G06F16/367—Ontology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides a page construction method, a page construction device, page construction equipment and a page construction medium, and relates to the technical field of computers, in particular to the field of page configuration. The implementation scheme is as follows: obtaining a sentence text corresponding to voice information input by a user; acquiring at least one piece of key semantic information corresponding to the statement text; acquiring at least one target datum from a database based on the at least one key semantic information; determining at least one piece of target page component information corresponding to the at least one piece of target data; and constructing a target page based on the at least one target page component information.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of page configuration, and in particular, to a page construction method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the development of internet technology, the requirements of applications on visualization data display are more and more, however, the display of a large amount of regularization data still needs professional front-end engineers to develop, and the operation logic of the visually displayed page is complex.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The disclosure provides a page construction method, a page construction device, an electronic device, a computer readable storage medium and a computer program product.
According to an aspect of the present disclosure, there is provided a page building method, including: obtaining a sentence text corresponding to voice information input by a user; acquiring at least one piece of key semantic information corresponding to the statement text; acquiring at least one target datum from a database based on the at least one key semantic information; determining at least one piece of target page component information corresponding to the at least one piece of target data; and constructing a target page based on the at least one target page component information.
According to another aspect of the present disclosure, there is provided a page building apparatus including: the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is configured to acquire a sentence text corresponding to voice information input by a user; the second acquisition unit is configured to acquire at least one piece of key semantic information corresponding to the statement text; a third obtaining unit, configured to obtain at least one target data from a database based on the at least one key semantic information; the determining unit is configured to determine at least one piece of target page component information corresponding to the at least one piece of target data; and a construction unit configured to construct a target page based on the at least one target page component information.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the page building method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the above page building method.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program is capable of implementing the above page building method when executed by a processor.
According to one or more embodiments of the disclosure, a data display page can be automatically constructed according to user requirements, and user experience is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
FIG. 1 shows a flowchart of a page building method according to an example embodiment of the present disclosure;
FIG. 2 shows a flowchart of a page building method according to an example embodiment of the present disclosure;
fig. 3 illustrates a block diagram of a structure of a page building apparatus according to an exemplary embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of a page build process according to an example embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
In the related art, a user needs to manually edit the components to construct a visual data display page, and the page operation is complex. In order to solve the problems, the disclosure provides a page construction method, which automatically acquires target data required by a user by extracting key semantics in voice input information of the user, and automatically constructs a page with data visually displayed according to a target data set, so that the use threshold of the user is reduced, and the user experience is improved.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a page building method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the page construction method includes: s101, obtaining a sentence text corresponding to voice information input by a user; step S102, obtaining at least one key semantic information corresponding to the statement text; the user skin S103 acquires at least one target datum from a database based on the at least one key semantic information; step S104, determining at least one piece of target page component information corresponding to the at least one piece of target data; and step S105, constructing a target page based on the at least one piece of target page component information. Therefore, the key semantics can be extracted by acquiring the voice information input by the user, the target data required by the user can be automatically acquired, and the page can be automatically constructed according to the target data set, so that the user can acquire the corresponding target data visual display page by inputting popular and understandable voice information, and the user experience is improved.
According to some embodiments, the target data comprises at least one of text, pictures, tables, and video. Illustratively, besides texts, pictures, tables and videos, the target data can also comprise types such as maps and animations, and more types of data can further enrich the database, so that the user requirements can be more comprehensively and sufficiently met, and the user experience is improved.
According to some embodiments, the obtaining at least one piece of key semantic information corresponding to the sentence text includes: semantic matching is carried out on the statement text and a key semantic set in a key semantic library; and acquiring at least one piece of key semantic information corresponding to the sentence text based on the semantic matching result. The semantic matching method may be, for example, performing similarity calculation on a semantic vector corresponding to the sentence text and a semantic vector corresponding to a key semantic set in a key semantic library, and acquiring at least one piece of key semantic information corresponding to the sentence text based on a result of the similarity calculation, but is not limited thereto. Therefore, user requirements can be acquired more accurately, a more accurate target result can be provided, and user experience is improved.
It will be appreciated that, according to some embodiments, the set of key semantics stored in the key semantics library is configured based on data in the database. Therefore, the target data meeting the requirements of the user can be acquired more accurately.
Illustratively, the key semantic set may be manually designed and stored in advance, or the content may be continuously updated according to a sentence text input by a user during the use process, so as to more accurately obtain the user requirement.
According to some embodiments, semantically matching the sentence text with a set of key semantics in a key semantics library comprises: segmenting the sentence text to obtain at least one word segmentation included in the sentence text; and performing semantic matching on the at least one participle and a key semantic set in the key semantic library. Therefore, a more accurate semantic extraction result can be obtained based on the word segmentation.
For example, when the sentence text input by the user is "a teacher who searches for a language teaching below thirty years old", because the sentence text contains a plurality of keywords, a plurality of participles such as "age", "below thirty years old", "language teaching", "man", "teacher" and the like can be obtained after segmenting the sentence text, and semantic matching is respectively performed on each participle and the key semantic collection in the key semantic library, so that a more accurate semantic extraction result is obtained.
According to some embodiments, the database is configured as a key-value database, and the retrieving at least one target datum from the database based on the at least one key semantic information comprises: generating at least one query condition based on the at least one key semantic information; and inquiring at least one target data from the database according to the at least one inquiry condition. Therefore, the target data meeting the user requirements can be acquired more accurately and efficiently.
It can be understood that when the key semantic collection is configured based on data in the database, the corresponding query condition can be generated more accurately and efficiently based on the key semantic information. For example, when the database is used to store key-value information of name-occupation, the key semantic set may include corresponding information of name, occupation, etc., and when the sentence text input by the user is "search for names of all doctors", the key semantic "doctor" in the sentence text may be extracted, and then the "occupation-doctor" is used as a query condition in the database to obtain data meeting the user requirement.
According to some embodiments, the at least one query condition comprises at least one first query condition and at least one second query condition, and the at least one target data comprises one or more first target data and one or more second target data, in which case the querying of the database for at least one target data according to the at least one query condition comprises: according to the first query condition, one or more first target data are obtained by querying the database; and querying the database to obtain one or more second target data according to the one or more first target data and the second query condition. Therefore, step-by-step combined query can be realized, and target data meeting user requirements can be obtained more accurately.
Illustratively, when a sentence text input by a user is "search all doctors and search their respective working units", by extracting key semantic information therein, a first query condition for searching all doctors and a second query condition for searching the respective working units of all doctors may be correspondingly generated, names of all doctors are obtained through the first query condition, and then the respective corresponding working units are obtained through query according to the names of all doctors.
According to some embodiments, the database includes at least one first sub-database and at least one second sub-database, in which case the one or more first target data are queried from the first sub-database according to the first query condition, and the one or more second target data are queried from the second sub-database according to the one or more first target data and the second query condition. Therefore, the step-by-step combined query can be better realized, and the target data can be conveniently and accurately searched in an efficient manner.
According to some embodiments, the target page component information includes a target page component type, in which case the determining at least one target page component information corresponding to the at least one target data includes: and determining at least one target page component type corresponding to the at least one target data according to the type of the at least one target data. Therefore, target page components required by displaying target data can be automatically matched, and a data visualization display page meeting the user requirements can be automatically constructed.
According to some embodiments, the target page component type comprises at least one of: text show subassembly, picture show subassembly, table show subassembly, video show subassembly. Therefore, the display requirements of various data can be met, the content diversity of the data visual display page is improved, and the user experience is improved.
Illustratively, besides a text display component, a picture display component, a table display component and a video display component, the target page component type can also include a map display component and the like, and more types of page display components can further improve the diversity of page display contents and improve the user experience.
For example, according to the type of the at least one target data, the at least one target page component type corresponding to the at least one target data may be determined by matching data types, for example, text-type data corresponds to a text presentation component, and picture-type data corresponds to a picture presentation component. Further, the source data type required by the page component can be determined through matching, for example, the source data required by the map presentation component is table data including information of a place, a map coordinate, a route coordinate and the like, and the table data can be presented more intuitively by using the map presentation component.
According to some embodiments, the target page component information further includes a target page component attribute, in which case the determining at least one target page component information corresponding to the at least one target datum further includes: and determining at least one target page component attribute corresponding to the at least one target data according to the attribute of the at least one target data and at least one target page component type corresponding to the at least one target data. Therefore, page components for displaying target data can be automatically configured, and a data display page meeting the requirements of a user can be automatically constructed.
According to some embodiments, the target page component attributes comprise at least size information of the target page component and/or location information of the target page component. Therefore, page components for displaying target data can be automatically configured, and a data display page meeting the requirements of a user can be automatically constructed.
It can be understood that the target page component attribute may further include information such as a color of the target page component, so as to further improve the diversity of page display.
In one example, the determining, according to the attribute of the at least one target data and the at least one target page component type corresponding to the at least one target data, the at least one target page component attribute corresponding to the at least one target data may include: and determining the size of the corresponding target page component according to the data volume of the target data. For example, when the target data is a piece of text and the target page component is a text box, the corresponding text box size can be determined according to the length of the piece of text. For another example, when the target data is a table and the target page component is a table display component, the size information such as the row height, the column width and the like of the corresponding table display component can be determined according to the information such as the row number, the column number, the table content length and the like of the table.
According to some embodiments, the determining at least one target page component information corresponding to the at least one target data further includes: displaying the at least one target data and a plurality of target page component types corresponding to the target data to obtain user feedback information; and determining at least one target page component type corresponding to the at least one target data from the plurality of target page component types based on the user feedback information. Therefore, the page component type which meets the user requirements better can be determined by enabling the user to carry out secondary confirmation, so that a target page which meets the user requirements better can be constructed, and the user experience is improved.
According to some embodiments, said building a target page based on said at least one target page component information comprises: and aiming at each piece of target page component information in the at least one piece of target page component information, acquiring a target page component corresponding to the target page component type from a page component library at least according to the target page component type, and constructing the target page based on the target page component. Therefore, the efficiency of page construction can be improved by utilizing the page component library, and the data visualization display can be more efficiently realized.
Illustratively, the page component library may be configured according to data in a database. For example, when the content in the database is text data and picture data, various types of text display components and picture display components can be stored in the page component library in advance, so that the page display requirement can be met more accurately.
According to some embodiments, the target page component information further comprises a target page component attribute, in which case the constructing the target page based on the at least one target page component information further comprises: rendering the target page component according to the attribute of the target page component; and adding the rendered target page component to the corresponding position of the target page. Therefore, the efficiency of page construction can be improved by utilizing the page component library, and the data visualization display can be more efficiently realized.
For example, the page component in the page component library may include a default page component attribute, the target page component is rendered according to the target page component attribute, and the default page component attribute may be updated according to the target page component attribute, so as to implement the rendering of the target page component.
Further, in one example, the information of each of the plurality of target page component information may be adjusted according to other target page component information for the target page component. For example, the sum of the areas of the target page components may be calculated to obtain the area ratio of the sum of the areas of the target page components to the target page, and when the area ratio of the sum of the areas of the target page components to the target page is not within a specific range, the target page component information may be adjusted accordingly. For example, when the ratio of the sum of the areas of the target page components to the area of the target page is too small, the sizes of all the target page components can be correspondingly increased, so that the target page components can be reasonably displayed.
Fig. 2 illustrates a flowchart of a page building method according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the page construction method includes: step S201, obtaining a sentence text corresponding to voice information input by a user; step S2021, segmenting the sentence text to obtain at least one participle included in the sentence text; step S2022, performing semantic matching on the at least one participle and a key semantic set in the key semantic library; step S2023, acquiring at least one piece of key semantic information corresponding to the sentence text based on the semantic matching result; step S2031, generating at least one first query condition and at least one second query condition based on the key semantic information; step S2032, one or more first target data are obtained by querying from the first sub-database according to the first query condition; step S2033, inquiring one or more second target data from a database according to the one or more first target data and the second inquiry condition; step S2041, determining a plurality of target page component types corresponding to the target data according to the types of the target data; step S2042, displaying a plurality of target page component types corresponding to the plurality of target data to obtain user feedback information; step S2043, determining at least one target page component type corresponding to the target data from the target page component types based on the user feedback information; step S2044, determining at least one target page component attribute corresponding to the target data according to the attributes of the target data and at least one target page component type corresponding to the target data; step S2051, aiming at each piece of target page component information in the at least one piece of target page component information, at least according to the type of the target page component, obtaining a target page component corresponding to the type of the target page component from a page component library; step S2052, rendering the target page component according to the attribute of the target page component; and step S2053, adding the rendered target page component to the corresponding position of the target page. The implementation manner of each step in the page construction method is the same as that described in the foregoing, and is not described herein again.
According to another aspect of the present disclosure, there is also provided a page building apparatus, and fig. 3 shows a block diagram of a page building apparatus according to an exemplary embodiment of the present disclosure, and as shown in fig. 3, the page building apparatus 300 includes: a first obtaining unit 301 configured to obtain a sentence text corresponding to voice information input by a user; a second obtaining unit 302, configured to obtain at least one piece of key semantic information corresponding to the sentence text; a third obtaining unit 303, configured to obtain at least one target data from the database based on the at least one key semantic information; a determining unit 304, configured to determine at least one piece of target page component information corresponding to the at least one piece of target data; and a construction unit 305 configured for constructing a target page based on the at least one target page component information. The operations of the units 301 to 305 of the page building apparatus 300 are similar to the operations of the steps S101 to S105 described above, and are not described herein again.
Embodiments of the above-described page building apparatus will be further described below with reference to examples.
FIG. 4 shows a schematic diagram of a page building process, before describing the page building process, the building of the database and key semantic bases used by the page building process is described, according to an example embodiment of the present disclosure.
Referring to fig. 4, the database is a human information database, and includes four sub-databases: a figure portrait sub-database, a financial behavior sub-database, a relational map sub-database and a track information sub-database. Wherein each piece of personal information uses a unique personal id as an identification. The character image sub-database is used for storing character image information such as character names, sexes, ages, school calendars, income levels and the like. The financial behavior sub-database is used for storing the financial behavior preference information of the character, such as: the character prefers information on the purchased financial products. The relationship map sub-database is used for storing the social relationship map information of the people, such as: the main social range, the relationship graph of colleagues, the relationship graph of classmates and other information of the character. The track information sub-database is used for storing action track information of persons, such as: the location where the person frequently goes, and the like.
According to the data content in the database, the data can be classified, and a key semantic set is constructed and stored in a key semantic library.
With continued reference to FIG. 4, a page building process according to an exemplary embodiment of the present disclosure includes the steps of:
step S11: the sentence text corresponding to the voice information input by the user and acquired by the first acquiring unit is, for example: "please find the age between 30 and 40 years, the school is in this department and above, the month income is between 3 and 5 ten thousand, the social range is mainly white-collar group at ordinary times, and the financial products are bought and the shopping mall is often bought for consumption. "
Step S12: and performing word segmentation on the sentence text through a second acquisition unit, and matching the sentence text with the key semantic set to acquire the key semantic information contained in the sentence text.
Step S13: through a third obtaining unit, a first query condition can be obtained based on key semantic information in the sentence text, and is used for querying the character information in the character portrait sub-database according to age, academic history and income, and three second query conditions are obtained at the same time, and are used for further searching corresponding financial behavior information, relationship map information and track information in other sub-databases according to the corresponding character information, obtaining final target character information after screening, and associating the data such as basic portrait information, relationship map information, financial behavior information and track information of each target character to generate a set of target character data.
Step S14: the determining unit automatically matches the corresponding target page components according to the characteristics of the target data, and returns the matching result to the user side for interaction through the man-machine interaction unit, so that the user can perform secondary confirmation. For example, the system may report: "do you determine a map presentation component for presentation of trajectory data? When the positive answer of the user is obtained, the target page component corresponding to the track data can be determined to be the map display component. For another example, the system may report: "is a text display component or a table display component for displaying character portrait data? When the user response is obtained, the form display component determines that the target page component corresponding to the portrait data is the form display component. After the type of the target page component corresponding to each target datum is determined, the attribute information such as the size of the corresponding target page component can be determined according to the attribute of the target datum, and all the target page component information is stored.
Step S15: the building unit can obtain a pre-configured page component library, for each piece of target page component information in the target page component information storage module, match a corresponding page component according to the type of the target page component, for example, the figure portrait information is shown by a table display component, the track data information is shown by a map component, then render the corresponding page component according to the attribute of the target page component, add the rendered page component to the corresponding position of the page, and finally complete the building of the target page.
According to another aspect of the present disclosure, there is also provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the page building method described above.
According to another aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the above-mentioned page building method.
According to another aspect of the present disclosure, there is also provided a computer program product comprising a computer program, wherein the computer program when executed by a processor implements the page building method described above.
Referring to fig. 5, a block diagram of a structure of an electronic device 500, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the device 500, and the input unit 506 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote controller. Output unit 507 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 508 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the page construction method. For example, in some embodiments, the page construction method described above may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the page building method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the above-described page building method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.
Claims (19)
1. A page construction method comprises the following steps:
obtaining a sentence text corresponding to voice information input by a user;
acquiring at least one piece of key semantic information corresponding to the statement text;
acquiring at least one target datum from a database based on the at least one key semantic information;
determining at least one piece of target page component information corresponding to the at least one piece of target data; and
and constructing a target page based on the at least one target page component information.
2. The method of claim 1, wherein the target page component information comprises a target page component type, and wherein the determining at least one target page component information to which the at least one target datum corresponds comprises:
and determining at least one target page component type corresponding to the at least one target data according to the type of the at least one target data.
3. The method of claim 2, wherein the target page component type comprises at least one of:
text show subassembly, picture show subassembly, table show subassembly, video show subassembly.
4. The method of claim 2 or 3, wherein said building a target page based on said at least one target page component information comprises:
and aiming at each piece of target page component information in the at least one piece of target page component information, acquiring a target page component corresponding to the target page component type from a page component library at least according to the target page component type, and constructing the target page based on the target page component.
5. The method of any of claims 2-4, wherein the target page component information further comprises a target page component attribute, and wherein the determining at least one target page component information to which the at least one target datum corresponds further comprises:
and determining at least one target page component attribute corresponding to the at least one target data according to the attribute of the at least one target data and at least one target page component type corresponding to the at least one target data.
6. The method of claim 5, wherein the target page component properties include at least: size information of the target page component and/or location information of the target page component.
7. The method of claim 5 or 6, wherein said building a target page based on said at least one target page component information further comprises:
rendering the target page component according to the attribute of the target page component; and
and adding the rendered target page component to the corresponding position of the target page.
8. The method of any of claims 2-7, wherein the at least one target page component type comprises a plurality of target page component types, and wherein the determining at least one target page component information to which the at least one target data corresponds further comprises:
displaying the at least one target data and a plurality of target page component types corresponding to the target data to obtain user feedback information; and
and determining at least one target page component type corresponding to the at least one target data from the plurality of target page component types based on the user feedback information.
9. The method according to any one of claims 1-8, wherein the obtaining at least one piece of key semantic information corresponding to the sentence text comprises:
semantic matching is carried out on the statement text and a key semantic set in a key semantic library; and
and acquiring at least one piece of key semantic information corresponding to the sentence text based on the semantic matching result.
10. The method of claim 9, wherein the semantically matching the sentence text to a set of key semantics in a key semantics library comprises:
segmenting the sentence text to obtain at least one word segmentation included in the sentence text; and
and performing semantic matching on the at least one participle and a key semantic set in the key semantic library.
11. The method according to claim 9 or 10, wherein the set of key semantics stored in the key semantics library is configured based on data in the database.
12. The method of any of claims 1-11, wherein the database is configured as a key-value database, and wherein retrieving at least one target datum from the database based on the at least one key semantic information comprises:
generating at least one query condition based on the at least one key semantic information;
and inquiring at least one target data from the database according to the at least one inquiry condition.
13. The method of claim 12, wherein the at least one query condition includes at least one first query condition and at least one second query condition, and the at least one target data includes one or more first target data and one or more second target data,
wherein, the querying the database to obtain at least one target data according to the at least one query condition comprises:
according to the first query condition, one or more first target data are obtained by querying the database; and
and querying the database to obtain one or more second target data according to the one or more first target data and the second query condition.
14. The method of claim 13, wherein the database comprises at least one first sub-database and at least one second sub-database, and
the one or more first target data are obtained by querying from the first sub-database according to the first query condition, and the one or more second target data are obtained by querying from the second sub-database according to the one or more first target data and the second query condition.
15. The method of any of claims 1-14, wherein the target data includes at least one of text, pictures, tables, and video.
16. A page building apparatus comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is configured to acquire a sentence text corresponding to voice information input by a user;
the second acquisition unit is configured to acquire at least one piece of key semantic information corresponding to the statement text;
a third obtaining unit, configured to obtain at least one target data from a database based on the at least one key semantic information;
the determining unit is configured to determine at least one piece of target page component information corresponding to the at least one piece of target data; and
a construction unit configured to construct a target page based on the at least one target page component information.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 15.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1 to 15.
19. A computer program product comprising a computer program, wherein the computer program realizes the method according to any one of claims 1 to 15 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300901.9A CN114020245A (en) | 2021-11-04 | 2021-11-04 | Page construction method and apparatus, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111300901.9A CN114020245A (en) | 2021-11-04 | 2021-11-04 | Page construction method and apparatus, device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114020245A true CN114020245A (en) | 2022-02-08 |
Family
ID=80060814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111300901.9A Pending CN114020245A (en) | 2021-11-04 | 2021-11-04 | Page construction method and apparatus, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114020245A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114253543A (en) * | 2022-02-28 | 2022-03-29 | 北京泰迪熊移动科技有限公司 | Page configuration method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731589A (en) * | 2015-03-12 | 2015-06-24 | 用友网络科技股份有限公司 | Automatic generation method and device of user interface (UI) |
CN110244942A (en) * | 2019-06-19 | 2019-09-17 | 优信拍(北京)信息科技有限公司 | A kind of page generation method, apparatus and system |
CN112685535A (en) * | 2020-12-25 | 2021-04-20 | 广州橙行智动汽车科技有限公司 | Voice interaction method, server, voice interaction system and storage medium |
CN113590645A (en) * | 2021-06-30 | 2021-11-02 | 北京百度网讯科技有限公司 | Searching method, searching device, electronic equipment and storage medium |
-
2021
- 2021-11-04 CN CN202111300901.9A patent/CN114020245A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731589A (en) * | 2015-03-12 | 2015-06-24 | 用友网络科技股份有限公司 | Automatic generation method and device of user interface (UI) |
CN110244942A (en) * | 2019-06-19 | 2019-09-17 | 优信拍(北京)信息科技有限公司 | A kind of page generation method, apparatus and system |
CN112685535A (en) * | 2020-12-25 | 2021-04-20 | 广州橙行智动汽车科技有限公司 | Voice interaction method, server, voice interaction system and storage medium |
CN113590645A (en) * | 2021-06-30 | 2021-11-02 | 北京百度网讯科技有限公司 | Searching method, searching device, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114253543A (en) * | 2022-02-28 | 2022-03-29 | 北京泰迪熊移动科技有限公司 | Page configuration method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107704512B (en) | Financial product recommendation method based on social data, electronic device and medium | |
US10102191B2 (en) | Propagation of changes in master content to variant content | |
CN114036322A (en) | Training method for search system, electronic device, and storage medium | |
CN114840671A (en) | Dialogue generation method, model training method, device, equipment and medium | |
CN111414375A (en) | Input recommendation method based on database query, electronic device and storage medium | |
CN110795548A (en) | Intelligent question answering method, device and computer readable storage medium | |
CN110275962B (en) | Method and apparatus for outputting information | |
CN110619050A (en) | Intention recognition method and equipment | |
CN114595686B (en) | Knowledge extraction method, and training method and device of knowledge extraction model | |
EP3762876A1 (en) | Intelligent knowledge-learning and question-answering | |
CN112579733A (en) | Rule matching method, rule matching device, storage medium and electronic equipment | |
US20220198358A1 (en) | Method for generating user interest profile, electronic device and storage medium | |
JP2024528433A (en) | Visual auto-completion for geospatial queries | |
CN117112754A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN114253990A (en) | Database query method, apparatus, computer equipment and storage medium | |
CN113590792B (en) | User problem processing method, device and server | |
CN112836023A (en) | Question-answering method and device based on knowledge graph | |
CN117932022A (en) | Intelligent question-answering method and device, electronic equipment and storage medium | |
CN113850080A (en) | Rhyme word recommendation method, device, equipment and storage medium | |
CN117312641A (en) | Method, device, equipment and storage medium for intelligently acquiring information | |
CN111444321A (en) | Question answering method, device, electronic equipment and storage medium | |
CN115510247A (en) | Method, device, equipment and storage medium for constructing electric carbon policy knowledge graph | |
CN114020245A (en) | Page construction method and apparatus, device and medium | |
CN117874207A (en) | Reply sentence generation method and device, electronic equipment and storage medium | |
CN116911801A (en) | Activity scheme generation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |