Full-screen display method, device and computer equipment for small-size terminal tables
By detecting the table startup command on the smartphone and cacheing the data table, obtaining and clustering the word vectors of the field names, selecting key fields for display, the problem of inconvenient display of smartphone tables is solved, and full-screen table display and operation convenience is achieved.
Patent Information
- Application Number
- CN202010620420.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2040-06-30
AI Technical Summary
In the existing smartphone table display mode, due to the screen size and the font size are too small or too long, users cannot view the table intuitively.
By detecting the table startup command, we can determine whether the data table is cached. When it is not cached, it will be cached locally and sent to the horizontal display data table container. We can obtain the word vector of the field name for clustering, and select the key field as the initial display field.
It fully utilizes the full-screen visual space of portable small-screen terminals, and improves the convenience of table viewing and operation.
Smart Images

Figure CN111783389B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data display of big data, and particularly to a method, device, computer device and storage medium for full-screen display of tables on small-sized terminals. Background Art
[0002] In the current display operation mode of smart phones, a table is often displayed as a static picture. Limited by the screen size of smart phones, there are the following defects in viewing tables:
[0003] 1) If the table is displayed too small, zoom-in and zoom-out operations are required;
[0004] 2) If the table is too long, sliding back and forth operations are required.
[0005] Obviously, for the existing table display methods on smart phones, whether the displayed font is too small or too long, it is not convenient for users to intuitively view the table. Summary of the Invention
[0006] Embodiments of the present invention provide a method, device, computer device and storage medium for full-screen display of tables on small-sized terminals, aiming to solve the problem that for the existing table display methods on smart phones, whether the displayed font is too small or too long, it is not convenient for users to intuitively view the table.
[0007] In a first aspect, embodiments of the present invention provide a method for full-screen display of tables on small-sized terminals, which includes:
[0008] Determine whether a table start instruction is detected;
[0009] If a table start instruction is detected, determine whether the data table corresponding to the table start instruction has been cached;
[0010] If the data table corresponding to the table start instruction has not been cached, cache the data in the data table locally, and send the cached data to a pre-created full-screen display data table container;
[0011] Obtain the word vectors corresponding to the respective field names in the data table, cluster the word vectors of the respective field names according to a preset number of clustering cluster targets, and obtain a field name clustering result; and
[0012] Select a field name corresponding to one word vector in each clustering cluster in the field name clustering result as the initial display field corresponding to the full-screen display data table container.
[0013] In a second aspect, embodiments of the present invention provide a device for full-screen display of tables on small-sized terminals, which includes:
[0014] A table startup instruction detection unit for determining whether a table startup instruction is detected;
[0015] A table cache judgment unit for, if a table startup instruction is detected, determining whether the data table corresponding to the table startup instruction has been cached;
[0016] A data cache unit for, if the data table corresponding to the table startup instruction has not been cached, caching the data in the data table locally and sending the cached data to a pre-created landscape display data table container;
[0017] A field clustering unit for obtaining word vectors corresponding to the respective field names in the data table, clustering the word vectors of the respective field names according to a preset target number of clustering clusters to obtain a field name clustering result; and
[0018] An initial display field acquisition unit for selecting, in each clustering cluster of the field name clustering result, the field name corresponding to a selected word vector as the initial display field corresponding to the landscape display data table container.
[0019] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the small-size terminal table full-screen display method described in the first aspect above is implemented.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the small-size terminal table full-screen display method described in the first aspect above.
[0021] An embodiment of the present invention provides a small-size terminal table full-screen display method, device, computer device, and storage medium, including determining whether a table startup instruction is detected; if a table startup instruction is detected, determining whether the data table corresponding to the table startup instruction has been cached; if the data table corresponding to the table startup instruction has not been cached, caching the data in the data table locally and sending the cached data to a pre-created landscape display data table container; obtaining word vectors corresponding to the respective field names in the data table, clustering the word vectors of the respective field names according to a preset target number of clustering clusters to obtain a field name clustering result; and selecting, in each clustering cluster of the field name clustering result, the field name corresponding to a selected word vector as the initial display field corresponding to the landscape display data table container. This method realizes the full utilization of the full-screen visual space of a portable small-screen terminal, full-screen displays the core fields in the data table, and makes it more convenient to view and operate the table. Brief Description of the Drawings
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0023] Figure 1 It is a schematic flowchart of the full-screen display method of the small-size terminal form provided by the embodiment of the present invention;
[0024] Figure 2 It is a schematic interface diagram of the horizontal screen display data table container in the full-screen display method of the small-size terminal form provided by the embodiment of the present invention;
[0025] Figure 3 It is a schematic sub-flowchart of the full-screen display method of the small-size terminal form provided by the embodiment of the present invention;
[0026] Figure 4 It is another schematic sub-flowchart of the full-screen display method of the small-size terminal form provided by the embodiment of the present invention;
[0027] Figure 5 It is a schematic block diagram of the full-screen display device of the small-size terminal form provided by the embodiment of the present invention;
[0028] Figure 6 It is a schematic block diagram of the sub-units of the full-screen display device of the small-size terminal form provided by the embodiment of the present invention;
[0029] Figure 7 It is another schematic block diagram of the sub-units of the full-screen display device of the small-size terminal form provided by the embodiment of the present invention;
[0030] Figure 8 It is a schematic block diagram of the computer device provided by the embodiment of the present invention. Detailed Description of the Embodiments
[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0032] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0033] It should also be understood that the terms used in this specification of the present invention are merely for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
[0034] It should be further understood that the term "and / or" used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of the full-screen display method for a small-size terminal form provided by an embodiment of the present invention. The full-screen display method for a small-size terminal form is applied to a smart phone with a screen size less than 7 feet, and this method is executed through an application software installed in the smart phone.
[0036] As Figure 1 shown, this method includes steps S110 to S150.
[0037] S110. Determine whether a form start instruction is detected.
[0038] In this embodiment, the technical solution is described in the specific application scenario of a smart phone with a small screen size (generally less than 7 inches). When a user starts a form on the smart phone, the opening situation of the form is stored in the following several ways:
[0039] The first is to open a locally downloaded data form (the common file suffixes of data forms are.xls,.xlsx, etc.). In this case, when opening the form, the form does not need to be cached first and then opened. Instead, all the data in the locally downloaded data form is directly transferred to a custom horizontal screen display data form container.
[0040] The second is to open a data form received in an instant messaging type application software (such as WeChat, etc.) of the smart phone that has not been locally stored. In this case, when opening the form, since the currently displayed page is the user interface (i.e., the UI interface) of the instant messaging type application software, the form needs to be cached first and then opened, and all the data in the cached data form is transferred to a custom horizontal screen display data form container.
[0041] S120. If a table start instruction is detected, determine whether the data table corresponding to the table start instruction has been cached.
[0042] In this embodiment, determining whether the data table corresponding to the table start instruction has been cached is to more effectively transfer the data table from the initial position to the landscape display data table container.
[0043] S130. If the data table corresponding to the table start instruction has not been cached, cache the data in the data table locally and send the cached data to a pre-created landscape display data table container.
[0044] In this embodiment, that the data table corresponding to the table start instruction has not been cached indicates that the user may have opened a table-type message sent by another user using an instant messaging type application on a smart phone. At this time, the data table can be cached and downloaded locally first, and then the data in the data table can be automatically sent to a pre-created landscape display data table container.
[0045] To more clearly understand the style of the landscape display data table container in this application, the following is combined with Figure 2 the user interface pictures to illustrate.
[0046] Among them, Figure 2 the landscape display data table container is pre-set with 4 columns from left to right (indicating that 4 fields of the data table can be displayed).
[0047] If there is a column in the landscape display data table container where the corresponding field has a field value that is too long (for example, more than 10 characters), at this time, the width of the column can be set according to the initial maximum column width value corresponding to the landscape display data table container, and an operation slider A1 (this operation slider is a virtual button) is automatically generated on the field name of this column. The user slides the operation slider left and right to control the increase or decrease of the column width of this column.
[0048] If the field value still cannot be completely displayed under the initial maximum column width value, at this time, the actual maximum number of display characters of this column can be obtained by subtracting 2 from the maximum number of display characters corresponding to the initial maximum column width value, and the remaining undisplayed characters are replaced with "……". Moreover, for all data cells in this column that are not completely displayed, once the user clicks on this type of cell, a long floating layer A2 (similar to a bubble-like character display container) will float above the landscape display data table container to completely display all the field value characters of this data cell.
[0049] Similarly, a return button A3 (which is also a virtual button) for the user to exit the landscape data table with one key can be set at the lower left corner of the landscape display data table container; and a function operation button A4 (which is also a virtual button) can be set at the lower right corner of the landscape display data table container. When clicked, it appears in the form of a pull-up pop-up box, where more advanced condition filtering operations can be performed.
[0050] In one embodiment, after step S130, it further includes:
[0051] Call the locally preset encryption password to encrypt the landscape display data table container to obtain an encrypted table container.
[0052] In this embodiment, in order to improve data security performance, generally after the data table is sent to the landscape display data table container, an automatic encryption operation is performed on the landscape display data table container. For example, call the default encryption password set by the user to encrypt the landscape display data table container. When the user subsequently automatically enters the landscape display data table container, the user is first prompted to enter the default encryption password to view the data table.
[0053] In one embodiment, after step S120, it further includes:
[0054] If the data table corresponding to the table start instruction has been cached, send the data in the data table from the local to the pre-created landscape display data table container.
[0055] In this embodiment, that the data table corresponding to the table start instruction has been cached means that the user opens the downloaded data table locally on the smart phone. At this time, the data in the data table is automatically sent to the pre-created landscape display data table container. Similarly, in this case, an automatic encryption operation also needs to be performed on the landscape display data table container. For example, call the default encryption password set by the user to encrypt the landscape display data table container.
[0056] S140. Obtain the word vectors corresponding to the respective field names in the data table, and cluster the word vectors of the respective field names according to the preset number of clustering cluster targets to obtain a field name clustering result.
[0057] In this embodiment, in order to select the most critical several fields (such as 4) in the data table for display in the landscape display data table container, at this time, all the fields can be correspondingly converted into word vectors and then clustered in the form of vectors.
[0058] Among them, when converting the field names in the data table into corresponding word vectors, it can be achieved through the Word2Vec model (the Word2Vec model is a commonly used neural network model for users to convert keywords into word vectors).
[0059] After that, cluster the word vectors of each field name according to the preset number of clustering cluster targets to obtain the field name clustering result. By converting the field names in the data table into corresponding word vectors respectively, it is convenient to perform clustering processing after quantization.
[0060] In one embodiment, as Figure 3 shown, step S140 includes:
[0061] S141. Select the same number of word vectors as the number of clustering cluster targets from the word vectors corresponding to each field name, and use the selected word vectors as the initial clustering centers for each cluster;
[0062] S142. Divide the word vectors corresponding to each field name according to the Euclidean distance between each word vector and the word vectors corresponding to each initial clustering center to obtain the initial clustering result;
[0063] S143. According to the initial clustering result, obtain the adjusted clustering center for each cluster;
[0064] S144. Divide the word vectors corresponding to each field name according to the adjusted clustering center until the number of times the clustering result remains the same is more than the preset number of times, and obtain the clustering clusters corresponding to the number of the clustering targets to form the field name clustering result.
[0065] In this embodiment, the K-means clustering method (i.e., the K-means clustering method) is used to cluster the word vectors corresponding to each field. At this time, after obtaining the field name clustering result, obtain the word vectors corresponding to the current clustering centers of each clustering cluster in the field name clustering result.
[0066] The specific process of using the K-means clustering method to cluster the word vectors corresponding to each field is as follows:
[0067] a) Randomly obtain k word vectors from the n word vectors corresponding in the data table as the initial clustering centers for each cluster; where k is equal to the preset number of clustering cluster targets, and k < n;
[0068] b) Calculate the dissimilarity between the remaining n-k word vectors in the data table and the initial cluster centers of the k clusters respectively, and classify the remaining n-k word vectors into the clusters with the lowest dissimilarity respectively to obtain the initial clustering result; that is, each of the remaining word vectors selects the initial cluster center closest to it and is grouped into the same class as this initial cluster center; in this way, the multiple word vectors are divided into k clusters with the initially selected initial cluster centers, and each cluster of data has an initial cluster center; among them, the distance between two word vectors is obtained by calculating the Euclidean distance between them;
[0069] c) According to the initial clustering result, recalculate the cluster centers of the k clusters respectively; the specific calculation method is to take the arithmetic mean of all the word vectors in each cluster, and select a word vector closest to the arithmetic mean as the new cluster center, and reselect a better cluster center in the data of this cluster.
[0070] d) Re-cluster the n word vectors according to the new cluster centers;
[0071] e) Repeat step d) until the clustering result no longer changes, and obtain the clusters with the target number of clustering clusters.
[0072] After completing the clustering classification, it is possible to quickly group the word vectors to obtain multiple clustering clusters to form the clustering result of the field names, so as to separate the word vectors through clustering.
[0073] S150. Select the field name corresponding to a word vector selected in each cluster in the clustering result of the field names as the initial display field corresponding to the landscape display data table container.
[0074] In this embodiment, after clustering each field in the data table, 4 most core field names can be selected as the initial display fields of the landscape display data table container. In this way, the 4 most representative field names can be displayed, enabling the user to most intuitively focus on the key fields first.
[0075] In one embodiment, as Figure 4 shown, step S150 includes:
[0076] S151. Obtain the word vectors corresponding to the current cluster centers of each cluster in the clustering result of the field names respectively to form a clustering center word vector set;
[0077] S152. Obtain the field names corresponding to each word vector in the clustering center word vector set respectively as the initial display fields of the landscape display data table container.
[0078] In this embodiment, for example, one word vector is obtained from each of the 4 clustering clusters corresponding to the clustering result of the field names. The field names corresponding to these 4 word vectors can be used as the initial display fields of the landscape display data table container. Of course, if there is no serial number or the field of sorting among the 4 most core field names, one can be randomly selected from the previously selected 4 most core fields and replaced with the field of serial number to obtain the final initial display fields corresponding to the landscape display data table container.
[0079] In one embodiment, after step S150, it further includes:
[0080] If a password verification pass instruction corresponding to the entered password is detected, the data table corresponding to the landscape display data table container is displayed according to the initial display fields.
[0081] In this embodiment, when a password input box pops up in the startup interface corresponding to the landscape display data table container, and the user enters a password that is the same as the default encrypted password, a password verification pass instruction is triggered. At this time, the data table corresponding to the landscape display data table container is displayed according to the initial display fields.
[0082] If among these 4 fields, there are fields whose values cannot be fully displayed under the initial maximum column width value, at this time, the actual maximum number of displayable characters for this column can be obtained by subtracting 2 from the maximum number of displayable characters corresponding to the initial maximum column width value, and the remaining non-displayed characters are replaced with "……".
[0083] At this time, the user can Figure 2 manipulate the operation slider, return button, and function operation button on the data table as shown, and can click on any cell with an incompletely displayed character to fully display the field value through a long strip floating layer.
[0084] The other field names in the original data table are not displayed on the initial display page corresponding to the landscape display data table container, but the other fields except the above 4 initial display fields in the original data table are concatenated in the order in the original table after the 4 initial display fields. Only when the user swipes from the right end to the left end of the smart phone can the other non-displayed fields be viewed.
[0085] This method realizes the full utilization of the full-screen visible space of the portable small-screen terminal, fully displays the core fields in the data table, and makes it more convenient to view and operate the table.
[0086] The embodiment of the present invention also provides a small-size terminal table full-screen display device, which is used to execute any embodiment of the foregoing small-size terminal table full-screen display method. Specifically, please refer toFigure 5 , Figure 5 is a schematic block diagram of a small - size terminal table full - screen display device provided by an embodiment of the present invention. The small - size terminal table full - screen display device 100 can be configured in a smart phone with a screen size less than 7 feet.
[0087] As Figure 5 shown, the small - size terminal table full - screen display device 100 includes: a table start instruction detection unit 110, a table cache judgment unit 120, a data cache unit 130, a field clustering unit 140, and an initial display field acquisition unit 150.
[0088] The table start instruction detection unit 110 determines whether a table start instruction is detected.
[0089] In this embodiment, the technical solution is described in a specific application scenario of a smart phone with a small screen size (generally less than 7 inches). When a user starts a table on a smart phone, the opening situations of the table are stored in the following several ways:
[0090] The first is to open a locally downloaded data table (the common file suffixes of data tables are.xls,.xlsx, etc.). In this case, when opening the table, the table does not need to be cached first and then opened. Instead, all the data in the locally downloaded data table is directly transmitted to a custom horizontal - screen display data table container.
[0091] The second is to open a data table received in an instant - messaging type application software (such as WeChat, etc.) of the smart phone that has not been locally stored. In this case, when opening the table, since the currently displayed page is the user interface (i.e., UI interface) of the instant - messaging type application software, the table needs to be cached first and then opened. All the data in the cached data table is transmitted to a custom horizontal - screen display data table container.
[0092] The table cache judgment unit 120 is used to judge whether the data table corresponding to the table start instruction has been cached if the table start instruction is detected.
[0093] In this embodiment, judging whether the data table corresponding to the table start instruction has been cached is to more effectively transfer the data table from the initial position to the horizontal - screen display data table container.
[0094] The data cache unit 130 is used to cache the data in the data table locally if the data table corresponding to the table start instruction has not been cached, and send the cached data to a pre - created horizontal - screen display data table container.
[0095] In this embodiment, the data table corresponding to the table start instruction is not cached, indicating that the user may have opened a table-type message sent by another user using an instant messaging type application on a smart phone. At this time, the data table can be cached and downloaded to the local first, and then the data in the data table can be automatically sent to a horizontally displayed data table container created in advance.
[0096] To better understand the style of the horizontally displayed data table container in this application, the following will be described in conjunction with the above Figure 2 user interface pictures.
[0097] Among them, Figure 2 the horizontally displayed data table container is preset with 4 columns from left to right (indicating that 4 fields of the data table can be displayed).
[0098] If the corresponding field in one of the columns in the horizontally displayed data table container has a field value that is too long (for example, more than 10 characters), at this time, the width of this column can be set according to the initial maximum column width value corresponding to the horizontally displayed data table container. At the same time, an operation slider (the operation slider is a virtual button) is automatically generated on the field name of this column, and the user slides the operation slider left and right to control the increase or decrease of the column width of this column.
[0099] If the field value still cannot be completely displayed under the initial maximum column width value, at this time, the actual maximum number of display characters of this column can be obtained by subtracting 2 from the maximum number of display characters corresponding to the initial maximum column width value, and the remaining un-displayed characters are replaced with "……". Moreover, for all data cells in this column that are not completely displayed, once the user clicks on this type of cell, a long floating layer (similar to a bubble-like character display container) will float above the horizontally displayed data table container to completely display all the field value characters of this data cell.
[0100] Similarly, a return button (the return button is also a virtual button) for the user to exit the horizontally displayed data table with one key can also be set at the lower left corner of the horizontally displayed data table container; and a function operation button (the function operation button is also a virtual button) can be set at the lower right corner of the horizontally displayed data table container. When clicked, it appears in the form of a pull-up pop-up box, where more advanced conditional filtering operations can be performed.
[0101] In one embodiment, the small-size terminal table full-screen display device 100 further includes:
[0102] A table encryption unit for encrypting the horizontally displayed data table container by invoking a locally preset encryption password to obtain an encrypted table container.
[0103] In this embodiment, in order to improve data security performance, generally after the data table is sent to the landscape display data table container, an automatic encryption operation is performed on the landscape display data table container. For example, the default encryption password set by the user is called to encrypt the landscape display data table container. Subsequently, when the user automatically enters the landscape display data table container, the user is first prompted to enter the default encryption password to view the data table.
[0104] In one embodiment, the small-size terminal table full-screen display device 100 further includes:
[0105] A table data sending unit, configured to, if the data table corresponding to the table start instruction has been cached, send the data in the data table from the local to a pre-created landscape display data table container.
[0106] In this embodiment, that the data table corresponding to the table start instruction has been cached means that the user opens the downloaded data table locally on the smart phone, and at this time, the data in the data table is automatically sent to a pre-created landscape display data table container. Similarly, in this case, an automatic encryption operation also needs to be performed on the landscape display data table container. For example, the default encryption password set by the user is called to encrypt the landscape display data table container.
[0107] A field clustering unit 140, configured to obtain the word vectors corresponding to the respective field names in the data table, and cluster the word vectors of the respective field names according to a preset number of clustering cluster targets to obtain a field name clustering result.
[0108] In this embodiment, in order to select the most critical several fields (for example, 4) in the data table for display in the landscape display data table container, at this time, all the fields can be correspondingly converted into word vectors and then clustered in a vector manner.
[0109] Among them, when converting the respective field names in the data table into corresponding word vectors, it can be implemented through a Word2Vec model (the Word2Vec model is a commonly used neural network model for users to convert keywords into word vectors).
[0110] After that, the word vectors of the respective field names are clustered according to a preset number of clustering cluster targets to obtain a field name clustering result. By converting the respective field names in the data table into corresponding word vectors, it is convenient to perform clustering processing after quantization.
[0111] In one embodiment, as Figure 6 shown, the field clustering unit 140 includes:
[0112] The initial clustering center obtaining unit 141 is configured to select the same number of word vectors as the target number of clusters from the word vectors corresponding to each field name, and use the selected word vectors as the initial clustering centers for each cluster;
[0113] The initial clustering unit 142 is configured to divide the word vectors corresponding to each field name according to the Euclidean distance between each word vector and the word vector corresponding to each initial clustering center, and obtain an initial clustering result;
[0114] The clustering center adjusting unit 143 is configured to obtain the adjusted clustering center for each cluster according to the initial clustering result;
[0115] The clustering result obtaining unit 144 is configured to divide the word vectors corresponding to each field name according to the adjusted clustering center until the number of times the clustering result remains the same is more than a preset number of times, and obtain clusters corresponding to the number of the clustering target numbers to form a field name clustering result.
[0116] In this embodiment, the K-means clustering method (i.e., the K-means clustering method) is used to cluster the word vectors corresponding to each field. At this time, after obtaining the field name clustering result, the word vectors corresponding to the current clustering centers corresponding to each cluster in the field name clustering result are obtained.
[0117] The specific process of clustering the word vectors corresponding to each field by using the K-means clustering method is as follows:
[0118] a) Randomly obtain k word vectors from the n word vectors corresponding in the data table as the initial clustering centers for each cluster; where k is equal to the preset target number of clusters, and k < n;
[0119] b) Calculate the dissimilarity between the remaining n - k word vectors in the data table and the initial clustering centers of the k clusters respectively, and classify the remaining n - k word vectors into the clusters with the lowest dissimilarity to obtain an initial clustering result; that is, each of the remaining word vectors selects the initial clustering center closest to it and is grouped with this initial clustering center; in this way, the multiple word vectors are divided into k clusters with the initially selected initial clustering centers, and each cluster of data has an initial clustering center; among them, the distance between two word vectors is obtained by calculating the Euclidean distance between them;
[0120] c) According to the initial clustering result, recalculate the clustering centers of the k clusters respectively; the specific calculation method is to take the arithmetic mean of all the word vectors in each cluster, and select a word vector closest to the arithmetic mean as the new clustering center, and reselect a better clustering center in the data of this cluster.
[0121] d) Re-cluster the n word vectors according to the new clustering centers;
[0122] e) Repeat step d) until the clustering result no longer changes, obtaining clusters corresponding to the target number of clusters.
[0123] After completing the clustering classification, fast word vectors can be grouped to obtain multiple clusters to form the clustering result of field names, thereby separating the word vectors through clustering.
[0124] The initial display field acquisition unit 150 is used to select the field name corresponding to one word vector in each cluster in the clustering result of the field names as the initial display field corresponding to the landscape display data table container.
[0125] In this embodiment, after clustering each field in the data table, 4 most core field names can be selected as the initial display fields of the landscape display data table container. In this way, the 4 most representative field names can be displayed, enabling the user to most intuitively focus on the key fields first.
[0126] In one embodiment, as Figure 7 shown, the initial display field acquisition unit 150 includes:
[0127] The cluster center word vector acquisition unit 151 is used to obtain the word vectors corresponding to the current cluster centers of each cluster in the clustering result of the field names to form a cluster center word vector set;
[0128] The target field acquisition unit 152 is used to obtain the field names corresponding to each word vector in the cluster center word vector set as the initial display fields of the landscape display data table container.
[0129] In this embodiment, for example, 1 word vector is obtained from each of the 4 clusters corresponding to the clustering result of the field names, and the field names corresponding to these 4 word vectors can be used as the initial display fields of the landscape display data table container. Of course, if there is no serial number or the sorting field among the 4 most core field names, one can be randomly selected from the previously selected 4 most core fields and replaced with the serial number field to obtain the final initial display field corresponding to the landscape display data table container.
[0130] In one embodiment, the small - size terminal table full - screen display device 100 further includes:
[0131] The password verification unit is used to display the data table corresponding to the landscape display data table container according to the initial display fields if a password verification pass instruction corresponding to the entered password is detected.
[0132] In this embodiment, when a password input box pops up in the startup interface corresponding to the landscape display data table container, and the user enters a password that is the same as the default encrypted password, a password verification passed instruction is triggered. At this time, the data table corresponding to the landscape display data table container is displayed according to the initial display fields.
[0133] If among these 4 fields, there are fields whose values cannot be fully displayed under the initial maximum column width value, at this time, the actual maximum number of displayable characters for this column can be obtained by subtracting 2 from the maximum number of displayable characters corresponding to the initial maximum column width value, and the remaining non-displayed characters are replaced with "…".
[0134] At this time, the user can Figure 2 manipulate the operation slider, return button, and function operation button on the data table as shown, and can click on any cell with an incompletely displayed character to fully display the field value through a long floating layer.
[0135] The other field names in the original data table are not displayed on the initial display page corresponding to the landscape display data table container, but the other fields in the original data table excluding the above 4 initial display fields are concatenated in the order in the original table after the 4 initial display fields. Only when the user swipes from the right end to the left end of the smart phone can the other non-displayed fields be viewed.
[0136] This device realizes the full utilization of the full-screen visible space of the portable small-screen terminal, fully displays the core fields in the data table, and makes it more convenient to view and operate the table.
[0137] The above small-size terminal table full-screen display device can be implemented in the form of a computer program, and this computer program can run on a computer device as shown Figure 8 in.
[0138] Please refer to Figure 8 , Figure 8 which is a schematic block diagram of the computer device provided by the embodiment of the present invention. This computer device 500 is a smart phone.
[0139] Refer to Figure 8 , this computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory can include a non-volatile storage medium 503 and an internal memory 504.
[0140] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When this computer program 5032 is executed, the processor 502 can be made to execute the small-size terminal table full-screen display method.
[0141] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0142] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the method for full-screen display of small-size terminal forms.
[0143] The network interface 505 is used for network communication, such as providing the transmission of data information, etc. Those skilled in the art can understand that Figure 8 the structure shown in is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0144] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the method for full-screen display of small-size terminal forms disclosed in the embodiments of the present invention when executed in a smart phone.
[0145] Those skilled in the art can understand that Figure 8 the embodiments of the computer device shown in do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are the same as those in Figure 8 the embodiment shown, and will not be described in detail here.
[0146] It should be understood that in the embodiments of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0147] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium can be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, where when the computer program is executed by a processor, it implements the method of full-screen display of a small-size terminal form executed in a smart phone as disclosed in the embodiments of the present invention.
[0148] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again. Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0149] In several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there can be other division methods, or units with the same function can be aggregated into one unit. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings, direct couplings, or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can also be in electrical, mechanical, or other forms of connection.
[0150] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.
[0151] In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-integrated units can be implemented in the form of hardware or in the form of software functional units.
[0152] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROMs), magnetic disks, or optical discs.
[0153] As described above, the above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for full-screen display of a small-size terminal form, characterized in that, including: judging whether a table start instruction is detected; if a table start instruction is detected, judging whether the data table corresponding to the table start instruction has been cached; if the data table corresponding to the table start instruction has not been cached, caching the data in the data table locally and sending the cached data to a pre-created landscape display data table container; obtaining word vectors corresponding to each field name in the data table, clustering the word vectors of each field name according to a preset number of clustering cluster targets to obtain a field name clustering result; and selecting a field name corresponding to a word vector selected in each clustering cluster in the field name clustering result as an initial display field corresponding to the landscape display data table container; after the step of, if the data table corresponding to the table start instruction has not been cached, caching the data in the data table locally and sending the cached data to a pre-created landscape display data table container, further including: invoking a preset encryption password locally to encrypt the landscape display data table container to obtain an encrypted table container.
2. The method for full-screen display of a small-size terminal form according to claim 1, characterized in that, after the step of selecting a field name corresponding to a word vector selected in each clustering cluster in the field name clustering result as an initial display field corresponding to the landscape display data table container, further including: if a password verification pass instruction corresponding to the entered password is detected, displaying the data table corresponding to the landscape display data table container according to the initial display field.
3. The method for full-screen display of a small-size terminal form according to claim 1, wherein The step of clustering the word vectors of each field name according to a preset number of clustering cluster targets to obtain a field name clustering result includes: selecting the same number of word vectors as the number of clustering cluster targets from the word vectors corresponding to each field name respectively, and using the selected word vectors as initial clustering centers for each cluster; dividing the word vectors corresponding to each field name respectively according to the Euclidean distance between each word vector and the word vector corresponding to each initial clustering center to obtain an initial clustering result; obtaining an adjusted clustering center for each cluster according to the initial clustering result; dividing the word vectors corresponding to each field name respectively according to the adjusted clustering center until the number of times the clustering result remains the same is more than a preset number of times, obtaining clustering clusters corresponding to the number of the clustering cluster targets to form a field name clustering result.
4. The method for full-screen display of a small-size terminal form according to claim 3, wherein The step of selecting a field name corresponding to a word vector selected in each clustering cluster in the field name clustering result as an initial display field corresponding to the landscape display data table container includes: obtaining word vectors corresponding to the current clustering centers corresponding to each clustering cluster in the field name clustering result respectively to form a clustering center word vector set; obtaining the field names corresponding to each word vector in the clustering center word vector set respectively as the initial display field of the landscape display data table container.
5. The full-screen display method for the small-size terminal form according to claim 1, wherein after the step of, if a table start instruction is detected, judging whether the data table corresponding to the table start instruction has been cached, further including: if the data table corresponding to the table start instruction has been cached, sending the data in the data table from local to a pre-created landscape display data table container.
6. A full-screen display device for small-size terminal forms, characterized in that, including: A table start instruction detection unit, configured to determine whether a table start instruction is detected; A table cache judgment unit, configured to, if a table start instruction is detected, determine whether the data table corresponding to the table start instruction has been cached; A data cache unit, configured to, if the data table corresponding to the table start instruction has not been cached, cache the data in the data table locally and send the cached data to a pre-created horizontal screen display data table container; A field clustering unit, configured to obtain the word vectors corresponding to the respective field names in the data table, cluster the word vectors of the respective field names according to a preset number of clustering cluster targets, and obtain a field name clustering result; And An initial display field acquisition unit, configured to select, in each clustering cluster in the field name clustering result, a field name corresponding to a selected word vector as the initial display field corresponding to the horizontal screen display data table container; After the data cache unit, further included is: A table encryption unit, configured to encrypt the horizontal screen display data table container by invoking a locally preset encryption password to obtain an encrypted table container.
7. The small-size terminal form full-screen display device according to claim 6, wherein The field clustering unit includes: An initial clustering center acquisition unit, configured to select, in the word vectors corresponding to the respective field names, the same number of word vectors as the number of clustering cluster targets, and use the selected word vectors as the initial clustering center for each cluster; An initial clustering unit, configured to divide the word vectors corresponding to the respective field names according to the Euclidean distance between each word vector and the word vector corresponding to each initial clustering center to obtain an initial clustering result; A clustering center adjustment unit, configured to obtain the adjusted clustering center for each cluster according to the initial clustering result; A clustering result acquisition unit, configured to divide the word vectors corresponding to the respective field names according to the adjusted clustering center until the number of times the clustering result remains the same is more than a preset number of times, and obtain clustering clusters corresponding to the number of the clustering cluster targets to form a field name clustering result.
8. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the small-size terminal table full-screen display method according to any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the small-size terminal table full-screen display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Information display method and information display apparatus
CN105446949A
Keyword extracting method and device
CN106599269A
Method and system for quickly displaying big data virtual table
CN109857742A