A method, device, equipment and storage medium for quickly querying vehicle network signals

By splitting and matching the initial text to be queried in the Internet of Vehicles system, and filtering and sorting the Internet of Vehicles signals, the problem of difficult signal data query in the Internet of Vehicles system is solved, fast and accurate signal query is achieved, and the user experience is improved.

CN118364095BActive Publication Date: 2024-09-06CHENGDU CELIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410798026.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In the Internet of Vehicles system, there are many vehicle components and complex structures, resulting in a large amount of signal data. The reporting rules vary depending on the vehicle model and configuration, making it difficult for business personnel to quickly query and locate the required signal data.

Method used

By obtaining the source database, the initial text to be queried and the target dictionary database, the initial text to be queried is split into initial query words, and matched with the source database and invalid information database, the target query words are filtered out, the candidate text sequence is sorted, and pushed to the user terminal Achieve fast query.

Benefits of technology

It improves the accuracy and efficiency of signal query, ensures that users can quickly locate the required target text, avoids wasting time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364095B
    Figure CN118364095B
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for rapid query of Internet of Vehicles signals. The method includes obtaining a source database, an initial text to be queried, an invalid information database, and a target dictionary database, splitting the initial text to be queried to obtain multiple initial query words, and matching the initial query words with enumeration values ​​of the source database and enumeration values ​​of the invalid information database respectively to obtain target query words, thereby obtaining multiple candidate texts, sorting the multiple candidate texts and pushing the sorted text sequence to a user end, so as to realize rapid query based on Internet of Vehicles information by the user end; by splitting the query file, matching the query words obtained by the splitting with the information in the source database to obtain candidate texts, and further sorting the candidate texts, the user can obtain the required target text information more accurately, and the matching efficiency of text information is effectively improved without increasing the cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Vehicles, and in particular to a method, device, equipment and storage medium for quickly querying Internet of Vehicles signals. Background Art

[0002] In the Internet of Vehicles system, in order to achieve data intercommunication between the vehicle and the cloud, the vehicle will report tens of thousands of different signal data of each component to the cloud server. By analyzing this data, the cloud can dig out the health status, performance status, usage, etc. of the vehicle, so as to better provide services to users; when the vehicle reports data to the cloud, it usually follows general or specific reporting protocols. Through these protocols, the cloud can successfully parse the signal name and signal value, as well as the specific meaning of each different signal name.

[0003] However, due to the wide variety and complex structure of components inside the vehicle, the amount of signal data generated is also very large. At the same time, the reporting rules may also vary due to factors such as vehicle model and configuration, making it extremely difficult to filter out the necessary signals required for the business from all the signals reported by the vehicle computer. As a result, business personnel are unable to quickly query and locate the target signal data required for the business from the numerous signals reported by the vehicle computer when they have limited understanding of the vehicle cloud data. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present application provides a method, device, equipment and storage medium for quickly querying Internet of Vehicles signals to solve the above-mentioned technical problems.

[0005] The present application provides a method for quickly querying vehicle network signals, the method comprising: obtaining a source database, an initial text to be queried, an invalid information database, and a target dictionary database; splitting the initial text to be queried based on words in the target dictionary database to obtain multiple initial query words; matching the initial query words with enumeration values ​​of the source database and enumeration values ​​of the invalid information database respectively to filter the initial query words to obtain target query words; obtaining multiple candidate texts based on the target query words and the source database; sorting the multiple candidate texts to obtain a sorted text sequence, and pushing the sorted text sequence to a user end to enable the user end to quickly query the vehicle network information.

[0006] In one embodiment of the present application, before obtaining the initial text to be queried and the target dictionary database, it also includes: obtaining a source database, an original text to be queried, and a dictionary database; extracting the enumeration value of the source database, and converting the enumeration value into a Unicode to obtain a first encoding information, so as to determine the selectable language based on the first encoding information; converting the original text to be queried into a Unicode to obtain a second encoding information, and matching the second encoding information with the dictionary database of the selectable language to obtain an updated text to be queried in a different language; determining any updated text to be queried as the initial text to be queried, and determining the dictionary database corresponding to the initial text to be queried as the target dictionary database.

[0007] In one embodiment of the present application, the initial text to be queried is split based on the words in the target dictionary database to obtain multiple initial query words, including: obtaining the length of all words in the target dictionary database to obtain the longest word length of the target dictionary database; based on the longest word length, the initial text to be queried is divided into multiple target texts to be matched, and any target text to be matched is determined as the initial target text; the target dictionary database is searched, and if there is a word identical to the initial target text, the initial target text is determined as an initial query word, and if there is no word identical to the initial target text, the initial target text is split to obtain initial query words, and there is at least one word identical to the initial query word in the target dictionary database; the initial target text without the initial query word is determined as an updated target text, and the updated target text is regarded as a new target text, and the above text splitting steps are repeated until the entire content of the initial target text is split into multiple initial query words.

[0008] In one embodiment of the present application, the initial target text is split to obtain initial query terms, including: treating the initial target text as a text sequence and removing the data at the end of the text sequence to obtain an intermediate text; matching the intermediate text with the information in the target dictionary database, and if the match fails, treating the intermediate text as a text sequence and removing the data at the end of the text sequence to obtain an updated intermediate text sequence; matching the updated intermediate text with the information in the target dictionary database until a word identical to the intermediate text is matched in the target dictionary database, and using the matched word as an initial query term.

[0009] In one embodiment of the present application, the initial query term includes valid information and invalid information, and the initial query term is matched with the enumeration value of the source database and the enumeration value of the invalid information database respectively to screen the initial query term to obtain a target query term, including: determining the enumeration value of the source database as a valid enumeration value, and determining the enumeration value of the invalid information database as an invalid enumeration value; matching any of the initial query terms with the valid enumeration value, if the match is successful, retaining the initial query term, if the match fails, deleting the initial query term from the initial query term list to obtain a first query term list, The initial query word list is obtained based on all the initial query words; any of the initial query words is matched with the invalid enumeration value, if the match fails, the initial query word is retained, if the match succeeds, the initial query word is deleted from the initial query word list to obtain a second query word list; the first query word list and the second query word list are combined, and duplicate items in the first query word list and the second query word list are deleted to obtain a comprehensive query word list; all query words in the first query word list, the second query word list, and any query list in the comprehensive query word list are determined as target query words.

[0010] In one embodiment of the present application, before obtaining multiple candidate texts based on the target query term and the source database, it also includes: converting the target query term into Unicode respectively to obtain multiple query term Unicode ranges; determining any text in the source database as a proposed text, and obtaining the Unicode range of the proposed text, if the Unicode range of the proposed text includes all the query term Unicode ranges, then determining the proposed text as a candidate text; traversing all texts in the source database to obtain multiple candidate texts.

[0011] In one embodiment of the present application, the multiple candidate texts are sorted to obtain a sorted text sequence, including: obtaining all the to-be-matched fields in the source database; splitting the to-be-matched fields to obtain multiple keywords, and combining any two keywords to obtain a keyword group, and assigning an initial distance to each keyword group; determining any keyword group as a target keyword group, traversing the keyword group through all the to-be-matched fields, and obtaining a phrase distance of the target keyword group based on the frequency of occurrence of the target keyword group in the same to-be-matched field and the initial distance of the target keyword group, traversing all keyword groups to obtain the phrase distance of each keyword group, and constructing a keyword distance table based on the keywords, the keyword groups, and the phrase distances.

[0012] In one embodiment of the present application, the multiple candidate texts are sorted, including: determining any candidate text as a target candidate text, and splitting the target candidate text to obtain a target candidate query term; calculating the text distance between the target candidate query terms based on the keyword distance table, and obtaining a comprehensive text distance of the target candidate text; traversing all candidate texts to obtain a comprehensive text distance of each candidate text, and sorting all candidate texts based on the increasing order of the comprehensive text distance.

[0013] In one embodiment of the present application, the valid information enumeration value and the invalid information enumeration value respectively have initial validity values. After the sorted text sequence is pushed to the user end, the method includes: if the user selects any text from the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is lowered, or the initial validity value of the valid information enumeration value is increased; if the user does not select any text in the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is increased, or the initial validity value of the valid information enumeration value is lowered.

[0014] In one embodiment of the present application, after the sorted text sequence is pushed to the user end, the method further includes: dividing the sorted text sequence into a front text sequence, a middle text sequence, and a back text sequence; if the user selects any text from the front text sequence as the target text, obtaining the keyword group corresponding to the query term of the first preset number of texts in the sorted text sequence, and reducing the text distance of the corresponding keyword group; if the user selects any text from the middle text sequence or the back text sequence as the target text, obtaining the keyword group corresponding to the query term of all candidate texts before the target text, and increasing the text distance of the corresponding keyword group; if the user does not select any text in the sorted text sequence as the target text, obtaining the keyword group corresponding to the query term of the first second preset number of texts in the sorted text sequence, and increasing the text distance of the corresponding keyword group.

[0015] The present application provides a fast query device for vehicle network signals, the device comprising: a data acquisition module for a source database, an initial text to be queried, and a target dictionary database; a text splitting module for splitting the initial text to be queried based on words in the target dictionary database to obtain a plurality of initial query words; an information query module for matching the initial query words with enumeration values ​​of the source database and enumeration values ​​of the invalid information database, respectively, to filter the initial query words to obtain target query words; a text construction module for obtaining a plurality of candidate texts based on the target query words and the source database; an information query module for sorting the plurality of candidate texts to obtain a sorted text sequence, and pushing the sorted text sequence to a user end, so as to enable the user end to quickly query based on vehicle network information.

[0016] The present application provides an electronic device, including a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement the method for quickly querying vehicle network signals as described above.

[0017] The present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to enable a computer to execute the method for quickly querying vehicle network signals as described above.

[0018] Beneficial effects of the present application: The method for quickly querying Internet of Vehicles signals in the present application obtains a source database, an initial text to be queried, and a target dictionary database, splits the initial text to be queried based on words in the target dictionary database to obtain multiple initial query words, matches the initial query words with enumeration values ​​of the source database to screen the initial query words to obtain target query words, obtains multiple candidate texts based on the target query words and the source database, sorts the multiple candidate texts and pushes the sorted text sequence to the user end, thereby realizing a quick query based on Internet of Vehicles information by the user end; by finely splitting the query file into several specific Query words with specific meanings are obtained, and the obtained query words are accurately matched with the rich information in the source database, so as to screen out candidate texts that are highly consistent with the query intent, ensure the accuracy of the query, and greatly improve the matching efficiency; the screened candidate texts are also sorted to ensure that the user first sees the target text information that best meets their needs; therefore, the fast query method for Internet of Vehicles signals proposed in this application significantly improves the matching efficiency of text information without adding any additional costs, so that users can quickly locate the required target text, avoid wasting time due to browsing irrelevant text information, and effectively improve the user experience.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 It is a schematic diagram of an implementation environment of a method for quickly querying vehicle networking signals according to an exemplary embodiment of the present application;

[0022] Figure 2 is a flowchart of a method for quickly querying vehicle networking signals according to an exemplary embodiment of the present application;

[0023] Figure 3 is an information screening flow chart of a method for quickly querying vehicle networking signals shown in an exemplary embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of the overall steps of a method for quickly querying vehicle networking signals shown in an exemplary embodiment of the present application;

[0025] Figure 5 is a block diagram of a fast query device for vehicle networking signals shown in an exemplary embodiment of the present application;

[0026] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0028] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0029] Figure 1 It is a schematic diagram of the implementation environment of a method for quickly querying vehicle network signals shown as an exemplary embodiment of the present application.

[0030] like Figure 1 As shown, the implementation environment of the method for rapid query of vehicle network signals includes a data acquisition device 101 and a computer device 102, wherein the data acquisition device 101 is used to obtain the text information to be queried and the source database, and send the collected text information to be queried and the source database to the computer device 102, and the data acquisition device can be a vehicle-mounted unit or an external information unit, and the present application does not impose any restrictions on this; the computer device 102 is used to split the text information to be queried based on the data collected by the data acquisition device 101 to obtain query words, and to obtain multiple candidate texts based on the query words matching the text in the source database, and then sort the candidate texts and send the sorted text information to the user end, so that the user can select the target text based on the sorted text, so as to realize the rapid query of vehicle network signals. Among them, the computer device 102 can be at least one of a desktop graphics processing unit (GPU) computer, a GPU computing cluster, a neural network computer, etc., or it can be an intelligent processor integrated in the current vehicle, and the present application does not impose any restrictions on this.

[0031] like Figure 2 As shown, in an exemplary embodiment, the method for quickly querying vehicle networking signals includes at least steps S210 to S250, which are described in detail as follows:

[0032] Step S210, obtaining a source database, an initial text to be queried, and a target dictionary database.

[0033] In one embodiment of the present application, before obtaining the initial text to be queried and the target dictionary database, it also includes: obtaining a source database, the original text to be queried, and the dictionary database; extracting the enumeration value of the source database, and converting the enumeration value into a Unicode to obtain a first encoding information, so as to determine the selectable language based on the first encoding information; converting the original text to be queried into a Unicode to obtain a second encoding information, and matching the second encoding information with the dictionary database of the selectable language to obtain an updated text to be queried in a different language; determining any updated text to be queried as the initial text to be queried, and determining the dictionary database corresponding to the initial text to be queried as the target dictionary database.

[0034] In a specific embodiment of the present application, first, in a data storage (data storage is not limited to files, databases, cloud services, and blockchains. For the sake of ease of description, this article uses a MySQL database as an example), a table named "signal_details" is created to store signal-related data of all vehicle computer signals. The table fields generally include but are not limited to protocol type, protocol version, component type, signal name, signal description, and signal data type, where the signal name and signal description fields will be used as matching words in the source database to match the initial text to be queried, for subsequent rapid signal retrieval.

[0035] Taking some signals related to the battery temperature of a certain vehicle as an example, the source database is shown in Table 1:

[0036] Table 1

[0037]

[0038] In addition, after constructing the source database, it is also necessary to download publicly available digital resources of dictionaries based on national classification standards (such as American dictionaries, Chinese dictionaries, and Spanish dictionaries) and use them as the basis for query word extraction, that is, to obtain a dictionary database in multiple languages.

[0039] Then, since vehicles are widely used in various regions of the world, vehicle data reports may also be reported in different languages. Before performing matching, the content of different languages ​​of the original query text needs to be separated, such as Chinese and English.

[0040] In one embodiment of the present application, first, based on the source database obtained as described above, the enumeration values ​​of all fields that may be used for matching in the source database are extracted, and each character thereof is converted into a Unicode code. For example, the Unicode codes of the two words "temperature" are: U+6E29, U+5EA6. It should be noted that Unicode is a character encoding standard. Languages ​​and symbols from all over the world are included in Unicode, and different languages ​​have divided ranges in Unicode. For example, the range of Chinese is approximately [0x4E00, 0x9FFF], and the range of English is approximately [0x00, 0x7F]. Therefore, based on the codes involved in the source database, it can be preliminarily determined which languages ​​​​are contained in the source database. Taking the example of a source database including Chinese and English, the available Unicode encoding ranges based on the above steps are shown in Table 2.

[0041] Table 2

[0042]

[0043] Then, the encoding range of the source database is determined by converting the enumeration value of the field to be matched in the source database to obtain the Unicode encoding, thereby determining the language of the source database, and the language corresponding to the source database (such as Chinese and English as shown in Table 2) is regarded as the language information corresponding to the initial text to be queried, and then the dictionary data of the corresponding language is obtained as the target dictionary data. For example, the enumeration value of the field to be matched in the source database is converted into Unicode encoding, and its encoding range is obtained as [0f4E00, 0x9F00] and [0F00, 0x6F]. It is compared with the Unicode encoding ranges of different languages, and it is determined that its range falls into the Unicode encoding range of Chinese [0x4E00, 0x9FFF] and the Unicode encoding range of English [0x00, 0x7F]. Therefore, it is determined that the language information of the source database is Chinese, and the text to be queried is a mixed text of Chinese and English.

[0044] Then, after determining that the initial text to be queried is a mixed text of Chinese and English, the initial text to be queried is converted character by character into Unicode encoding, and the corresponding text information is obtained by querying in the target dictionary based on the Unicode encoding of each character. It should be noted that each character has a unique corresponding Unicode encoding in the target dictionary. For example, the Chinese character "温" corresponds to the Unicode encoding "U+6E29". Thus, by querying and matching based on the converted Unicode encoding of the initial text to be queried, all the text information of the initial text to be queried is obtained, which is the content of the initial text to be queried. For example, after converting a text to be queried character by character into Unicode encoding, it is "U+6E29", "U+5EA6", "U+0077", "U+0061", "U+0072", "U+006E", "U+0069", "U+0067", "U+4FE1", "U+606F", then the content of the text to be queried is "temperature information" and "warning".

[0045] In a specific embodiment of the present application, taking the text to be queried as "temperature warning information" as an example, converting it into Unicode encoding and mapping it to the target dictionary database, the encoding information shown in Table 3 is obtained:

[0046] Table 3

[0047]

[0048] Finally, the mapped content is combined into texts in multiple different groups. For example, the mapped content in the above embodiment is combined to obtain two text combinations: "temperature information" and "warning".

[0049] It should be noted that when determining the language category of the text to be queried, the corresponding language information can also be identified through natural language processing (NLP) technology. The identification process includes the following steps:

[0050] Step 1: Obtain a dataset containing samples of multiple languages. This dataset contains text samples of known languages, which are used to train or evaluate our language identification model.

[0051] Step 2: Use various NLP tools and libraries to extract features from the text. These NLP tools and libraries include but are not limited to NLTK and spaCy in Python. Among them, common features include character-level features, lexical-level features, and syntactic-level features.

[0052] Step 3: Select a suitable model to train the obtained dataset above to obtain a training model that can be used to identify the language of the text.

[0053] Step 4: Input the text to be queried into the trained model to obtain the language category of the text to be queried.

[0054] It should be noted that in the process of selecting a suitable model for training, any model including but not limited to a rule-based model, a machine learning model, and a deep learning model can be selected based on actual needs. This application does not impose any restrictions on its training model and training method.

[0055] Step S220: Split the initial text to be queried based on the words in the target dictionary database to obtain multiple initial query words.

[0056] In an embodiment of the present application, splitting the initial text to be queried based on the words in the target dictionary database includes: obtaining the word lengths of all words in the target dictionary database to obtain the longest word length of the target dictionary database; splitting the initial text to be queried into multiple target texts to be matched based on the longest word length, and determining any target text to be matched as the initial target text; retrieving the target dictionary database, if there is a word identical to the initial target text, determining the initial target text as an initial query word, if there is no word identical to the initial target text, performing the text splitting step; the text splitting step includes, regarding the initial target text as a text sequence, removing the data at the end of the text sequence to obtain an intermediate text, and matching the intermediate text with the information in the target dictionary database until a word identical to the intermediate text is matched in the target dictionary database, and taking the matched word as an initial query word; determining the initial target text after removing the initial query word as the updated target text, regarding the updated target text as a new target text, and repeating the above text splitting step until all the content of the initial target text is split into multiple initial query words.

[0057] It should be noted that the determination of the longest word length is involved in the process of splitting the initial text to be queried. Specifically: First, obtain the lengths of all words in the target dictionary. For example, in a Chinese dictionary, "温度" as an independent word has a word length of 2, and "举重若轻" as an independent word has a word length of 4. Similarly, in an English dictionary, "warning" as an independent word has a word length of 7, and "alert" as an independent word has a word length of 5. By analogy, obtain the word lengths of all independent words in the target dictionary, and determine the longest word length among them as the longest word length of the target dictionary.

[0058] In an embodiment of the present application, the text splitting and query word extraction based on the longest word length of the target dictionary database include the following steps:

[0059] Step 1: Obtain the longest word length. First, obtain the length information of all words in the target dictionary database, and determine the longest word length in the target dictionary database by comparing these lengths.

[0060] Step 2: Segmentation of the initial query text. Based on the longest word length obtained, segment the initial query text. During the segmentation process, ensure that the length of each target text to be matched does not exceed the longest word length to ensure the accuracy of subsequent matching. Any target text to be matched is determined as the initial target text to start the subsequent matching and splitting process.

[0061] Step 3: Search the target dictionary database. The initial target text is searched and matched with the target dictionary database. If there are words in the target dictionary database that are exactly the same as the initial target text, the initial target text is determined as an initial query word. In this case, no further text splitting is required and it is directly determined as a target query word.

[0062] Step 4: Text splitting step. If the target dictionary database does not contain the same words as the initial target text, the text splitting step is performed. This step includes:

[0063] 1. Treat the initial target text as a text sequence.

[0064] 2. Remove a character or a group of characters from the end of the text sequence to get the middle text.

[0065] 3. Match the intermediate text with the target dictionary database.

[0066] 4. Repeat the above removal and matching process until a word identical to the intermediate text is matched in the target dictionary database. This matched word will be used as an initial query word.

[0067] Step 5: Update the target text and repeat the splitting. Remove the part that has been matched and determined as the initial query word from the initial target text to obtain the updated target text. The updated target text is regarded as a new target text, and the above text splitting steps are repeated. This process will continue until the entire content of the initial target text is split into multiple initial query words.

[0068] It should be noted that the segmentation and matching of the initial text to be queried based on the longest word length of the target dictionary database proposed in this embodiment achieves efficient segmentation of the text and accurate extraction of query terms, which not only improves the accuracy of text matching, but also reduces the computational complexity of the matching process.

[0069] In an embodiment of the present application, splitting the initial text to be queried includes the following steps: Step 1, traverse each type of text, and cut out a text a to be matched from left to right or from right to left based on the length of the longest word in the dictionary of the corresponding language. Step 2, check whether text a exists in the target dictionary. If it exists, a can be extracted as a query term. Step 3, if text a does not exist in the dictionary, remove the rightmost character of a to get a-, and check whether text a- exists in the dictionary. Step 4, repeat the splitting and searching steps of the above Steps 1 to 3 until a matching word is obtained. Step 5, if a has only 1 character left, treat it as a query term. Step 6, repeat the above steps until the entire original query text is completely extracted.

[0070] In a specific embodiment of the present application, taking the text to be queried as "alert signal related to the temperature of the in-vehicle machine battery" as an example, it will first be split into Chinese text "related to the temperature of the in-vehicle machine battery, signal" and English text "alert". Taking the Chinese text as the target text as an example:

[0071] First, identify and match the entire text "related to the temperature of the in-vehicle machine battery, signal" with the dictionary information;

[0072] Then, after determining that the text "related to the temperature of the in-vehicle machine battery, signal" does not exist in the dictionary, update the text to "related to the temperature of the in-vehicle machine battery, letter" and match it with the dictionary again; if the match still fails, further update it to "related to the temperature of the in-vehicle machine battery" for matching, and so on, until the query term "in-vehicle machine" is obtained;

[0073] Then, take "battery temperature related, signal" after removing "in-vehicle machine" as the new target text and repeat the above matching process until all Chinese query terms "in-vehicle machine, battery, temperature, related, of, signal" are obtained.

[0074] Finally, take the English text as another target text for matching to obtain the English query term "alert".

[0075] Step S230, match the initial query terms with the enumerated values in the source database and the enumerated values in the invalid information database respectively to screen the initial query terms to obtain the target query terms.

[0076] It should be noted that in some spoken and written texts, there are often some function words that have no practical meaning. They are usually used to express logical relationships, make grammar more fluent, or express tone. Since these words have no practical meaning and have no value in participating in matching in queries, these words are excluded. Similarly, there are some stop words, punctuation marks, repeated words, etc., and such information can be classified as general invalid information. In addition, in addition to general invalid information, in some business scenarios, users need to exclude some specific invalid information according to actual needs. For example, in some scenarios that do not involve geographical locations, administrative divisions can be considered invalid information. Therefore, before screening the initial query words, it is also necessary to establish an invalid information database for storing the above invalid information. The sources of invalid information in its invalid information database are usually divided into general invalid information and specific invalid information. The invalid information can be generated through historical experience or downloaded through standard files, while the specific invalid information is usually generated based on data uploaded by relevant users. However, in actual application, its data can also be obtained by any other means. Therefore, this application does not impose any restrictions on the content and generation method of its invalid data.

[0077] In one embodiment of the present application, the initial query word is matched with the enumeration value of the source database and the enumeration value of the invalid information database respectively to screen the initial query word to obtain the target query word, including: determining the enumeration value of the source database as a valid enumeration value, and determining the enumeration value of the invalid information database as an invalid enumeration value; matching any initial query word with a valid enumeration value, if the match is successful, retaining the initial query word, if the match fails, deleting the initial query word from the initial query word list to obtain a first query word list, and the initial query word list is obtained based on all the initial query words; matching any initial query word with an invalid enumeration value, if the match fails, retaining the initial query word, if the match is successful, deleting the initial query word from the initial query word list to obtain a second query word list; combining the first query word list and the second query word list, and deleting duplicate items in the first query word list and the second query word list to obtain a comprehensive query word list; determining all query words in the first query word list, the second query word list, and any query list in the comprehensive query word list as target query words.

[0078] It should be noted that in the above embodiments, the initial query terms are respectively matched with valid enumerated values and invalid enumerated values, so it is necessary to determine the valid enumerated values and invalid enumerated values in advance. First, valid enumerated values are generated from the terms to be matched in the source database for matching with the initial text to be queried. For example, "highest temperature value", "highest alarm level", and "battery high temperature alarm" are each regarded as an independent valid enumerated value. Similarly, words such as "de", "di", "de", and "zhi" in the invalid information database are also each independent invalid enumerated values. Then, the initial query terms are respectively matched with the valid enumerated values and invalid enumerated values. Taking the initial query terms as "temperature, battery, de, rise, le", the valid enumerated values including "temperature" and "battery", and the invalid enumerated values including "de" and "le" as examples, when the initial query terms are matched with the valid enumerated values, the first query term list "temperature, battery" is obtained, and when the initial query terms are matched with the invalid enumerated values, the second query term list "temperature, battery, rise" is obtained. Then, the first query term list and the second query term list are further combined to obtain the comprehensive query term list "temperature, battery, rise". It should be noted that "deleting the duplicate items in the first query term list and the second query term list" mentioned in the embodiments means that when a query term is included in both the first query term list and the second query term list, only one of them is retained in the final comprehensive query term list, rather than completely deleting it from the comprehensive query term list.

[0079] Figure 3 It is the information screening flowchart of the fast query method for vehicle networking signals shown in an exemplary embodiment of the present application.

[0080] As Figure 3 shown, during the process of screening the query terms, first determine its purification type, including two methods: valid information filtering and invalid information filtering. If the invalid information filtering method is adopted, first determine whether the user has configured specific invalid information. If so, obtain its specific invalid information. If not, directly obtain the general invalid information, and match its query terms with the enumerated values of all invalid information. If any query term matches an invalid information enumerated value, it is deleted from the query term list; if the valid information filtering method is adopted, directly match its query terms with the enumerated values of all valid information. If any query term does not match a valid information enumerated value, it is deleted from the query term list; combine the two query term lists after deleting some query terms and delete the duplicate items therein, then the final query term list is obtained.

[0081] In an embodiment of the present application, first obtain invalid information and valid information, and the obtaining of invalid information includes the following content:

[0082] Taking MySQL as an example, first, a new MySQL table named "common_useless_info" is created for common invalid information. The table stores the enumeration of common invalid information. At the same time, for each enumeration value, a special "validity" field is stored. The initial value of this "validity" for each enumeration value is 0.1. During the program running, this field will dynamically store the validity calculated when each enumeration value is actually used. The value of the validity field can be used to dynamically optimize the content of common invalid information. Secondly, the specific invalid information is obtained by actively uploading by the user or downloading from the Internet using the keywords entered by the user. After obtaining such specific invalid information, a specific MySQL table is established for each independent user or user group. The table name can be named in a similar way to "user ID_useless_info" to store the specific invalid information enumeration value of each user.

[0083] Obtaining effective information includes:

[0084] First, select the relevant fields used for query in the source database in step 1, and extract all enumeration values ​​of these fields.

[0085] Secondly, split each field enumeration value into keywords. The splitting scheme can refer to the query term extraction scheme in step 2. In addition, some keywords in specific languages ​​can be split according to specific naming methods. For example, the underscore connection method can be split according to the underscore, the camel case naming method can be split according to the case, and the English text can be split according to the space.

[0086] Then, after all the field enumeration values ​​are split, all the keywords are counted and stored. A new table named "useful_info" can be created in the database to store the useful information enumeration values ​​and the total number of times they appear in the source database. At the same time, according to the total number of occurrences of each enumeration value, the value of a "validity" field is initialized, which is distributed in the range of 0-1. The larger the number, the more commonly used the corresponding enumeration value is, that is, the higher the validity is.

[0087] Finally, monitor the source database storage, and when there are additions, changes, or deletions in the source database, update the "useful_info" table data synchronously.

[0088] In another embodiment of the present application, after obtaining invalid information and valid information, the initial query words are screened to obtain the target query words as follows:

[0089] Step 1: Access parameters, including query word list, purification type, and user ID;

[0090] Step 2: If the purification type is invalid information filtering, obtain the common invalid information enumeration value list from the common_useless_info table mentioned above. According to the user ID, obtain the specific invalid information enumeration value list from the user ID_useless_info table mentioned above (if any), and merge the invalid information enumeration value lists of the two specific invalid information sources.

[0091] Step 3: If the purification type is useful information filtering, obtain the useful information enumeration value list from the useful_info table mentioned above.

[0092] Step 4: traverse the query word list. If the purification type is invalid information filtering, the query words that match the invalid information enumeration value are deleted from the query word list; if the purification type is valid information filtering, the query words that do not match the valid information enumeration value are deleted from the query list.

[0093] Step 5: After each query word has been matched, the result query words are deduplicated to remove repeated query words.

[0094] Step 6: The query word list after filtering and deduplication is returned as a value, namely, the target query word.

[0095] In addition, in the process of users specifying unique invalid information, some intelligent means can be used to simplify the operations that users need to perform, making the system more friendly and easier to operate. For example, a recommended method for unique invalid information is provided, which is as follows:

[0096] First, when other users enter particular invalid information, in addition to storing it in the particular invalid information data table corresponding to the user, all invalid information enumeration values ​​mentioned by the user can also be stored separately in a common table "particular_useless_info" as the basic data for recommending invalid information enumeration values ​​for other users. In this table, in addition to the invalid information enumeration value, the number of occurrences of each enumeration value should also be stored to determine whether this invalid information is an invalid information enumeration value commonly used by the user.

[0097] Then, a table "particular_useless_info_distance" is created to store the distance between invalid information keywords. The initial distance between each two keywords is set to 1. According to the invalid information lists configured by different users, when each two enumeration values ​​appear in the invalid information list of the same user at the same time, the distance between the two enumeration values ​​is reduced to obtain a new distance value, which is expressed as follows:

[0098] Formula (1)

[0099] in,D new Represents the new query term distance value, D old Represents the initial query term distance value, n % indicates the preset distance adjustment parameter.

[0100] Then, when the user enters the particular invalid information configuration page for the first time, a "Common invalid information" pop-up window is provided to the user, which displays the n enumeration values ​​with the highest number of occurrences in the particular_useless_info table, where n can generally be 3-10, and can also be configured according to needs in special cases.

[0101] Finally, when the user submits some invalid information enumeration values, a floating window of "Invalid information related to your submission" can also be provided to the user, which displays the n enumeration values ​​closest to the enumeration value keyword submitted by the user in the particular_useless_info_distance table, where n can generally be 3-10, and can also be configured according to needs in special cases.

[0102] Step S240: obtaining a plurality of candidate texts based on the target query term and the source database.

[0103] In one embodiment of the present application, a plurality of candidate texts are obtained based on a target query word and a source database, including: converting the target query words into Unicode respectively to obtain a plurality of query word Unicode ranges; determining any text in the source database as a proposed text, and obtaining the Unicode range of the proposed text, if the Unicode range of the proposed text includes all query word Unicode ranges, determining the proposed text as a candidate text; traversing all texts in the source database to obtain a plurality of candidate texts.

[0104] In one embodiment of the present application, the target query words are taken as "battery, temperature, alert". First, when storing in the source database, for each set of fields that may be queried, a Unicode range is calculated (all English letters are unified as lowercase letters), and a list of optional texts is obtained as shown in Table 4:

[0105] Table 4

[0106]

[0107] Then, the Unicode range of each query word in the final query word list obtained above is calculated to obtain the query word Unicode range table shown in Table 5:

[0108] Table 5

[0109]

[0110] Then, the source database containing the Unicode range of the source query term is obtained from the Unicode range of the source database. The list of information to be selected is obtained as shown in Table 6:

[0111] Table 6

[0112]

[0113] Finally, the field values ​​that contain the source query word range and are not empty are selected from Table 6 as the matching results, i.e., candidate texts of the relevant query texts, such as "tempMax", "alertLevelMax", "tempDifferAlert", "fcTempMaxAlert", "batteryTempMaxAlert", "maximum temperature value", "maximum alarm level", "temperature difference alarm", and "battery high temperature alarm" in this application.

[0114] It should be noted that, in the specific implementation process of the present application, the candidate text can also be obtained by regular expression matching. Taking Mysql as an example, matching is performed based on the query words "battery, temperature, alert" obtained above, and the steps include:

[0115] First, connect the keywords with “|” to generate a regular expression that meets the conditions, that is, the regular expression “battery|temperature|alert” is obtained;

[0116] Then, based on the source database obtained above, the "signal name" and "signal description" fields are taken as source database columns to be matched. The following texts to be matched are obtained: "tempMax, maximum temperature value, alertLevelMax, maximum alarm level, tempDifferAlert, temperature difference alarm, fcTempMaxAlert, battery high temperature alarm, batteryTempMaxAlert, battery high temperature alarm";

[0117] Finally, by matching the regular expression "battery|temperature|alert" obtained above, the target query terms "maximum temperature value, alertLevelMax, tempDifferAlert, temperature difference alarm, fcTempMaxAlert, battery high temperature alarm, batteryTempMaxAlert, battery high temperature alarm" are obtained.

[0118] It should be noted that both character encoding matching and regular expression matching are efficient and practical methods, and both can accurately screen out candidate texts corresponding to the query terms of the text to be queried. Character encoding matching achieves fast and accurate matching by comparing the encoding information of text characters; while regular expression matching is more flexible and can accurately screen according to complex matching rules. In actual application, it may be necessary to select a suitable matching method according to specific usage scenarios and requirements. For example, when the structure of the text to be queried is relatively fixed and the matching rules are relatively simple, character encoding matching may be a more efficient choice, and when faced with complex text structures and changing matching requirements, regular expression matching can provide a more flexible and accurate solution. Therefore, this application does not impose any restrictions on the matching method used.

[0119] Step S250, sorting the multiple candidate texts, and pushing the sorted text sequence to the user end, so as to enable the user end to quickly query based on the Internet of Vehicles information.

[0120] In one embodiment of the present application, a plurality of candidate texts are sorted to obtain a sorted text sequence, including: obtaining all to-be-matched fields in a source database; splitting the to-be-matched fields to obtain a plurality of keywords, combining any two keywords to obtain a keyword group, and assigning an initial distance to each keyword group; determining any keyword group as a target keyword group, traversing the keyword group through all to-be-matched fields, and obtaining a phrase distance of the target keyword group based on the frequency of the target keyword group appearing in the same to-be-matched field and the initial distance of the target keyword group, traversing all keyword groups to obtain the phrase distance of each keyword group, and constructing a keyword distance table based on the keywords, keyword groups, and phrase distances; determining any candidate text as a target candidate text, splitting the target candidate text to obtain target candidate query terms, calculating the text distance between the target candidate query terms based on the keyword distance table, and obtaining a comprehensive text distance of the target candidate text; traversing all candidate texts to obtain a comprehensive text distance of each candidate text, and sorting all candidate texts based on the increasing order of the comprehensive text distance.

[0121] In one embodiment of the present application, sorting multiple candidate texts includes the following steps:

[0122] Step 1: extract all fields to be matched from the source database, which include signal name, signal description, data type, etc.

[0123] Step 2: Based on the method for splitting the query text mentioned in the above embodiment, each field to be matched is split into multiple keywords, and any two keywords are combined to form a keyword group, and an initial distance is assigned to each keyword group.

[0124] Step three, select a keyword group as the target keyword group, traverse all the fields to be matched, count the frequency of the target keyword group appearing in the same field to be matched, and combine its initial distance to calculate a comprehensive phrase distance. This distance reflects the overall relevance of the target keyword group in the field to be matched. Repeat this process until all keyword groups are traversed and the phrase distance of each keyword group is obtained.

[0125] Step 4: Based on the keywords, keyword phrases and the calculated phrase distances, a keyword distance table is constructed. The table stores the keywords, keyword phrases and the associated distance information between them, providing data support for subsequent text matching.

[0126] Step 5: Select a candidate text as the target candidate text, split it into target candidate query words, use the keyword distance table to calculate the text distance between the target candidate query words, and combine all text distances to obtain a comprehensive text distance. It should be noted that the text distance reflects the degree of association between the keywords and keyword groups in the candidate text, and the comprehensive text distance is used to evaluate the matching degree between the target candidate text and the field to be matched.

[0127] Step 6, repeat the above steps, traverse all candidate texts, obtain the comprehensive text distance of each candidate text, and then sort the candidate texts in ascending order of comprehensive text distance, so that the candidate text with the smallest comprehensive text distance, that is, the highest matching degree, will be ranked in front.

[0128] It should be noted that this embodiment realizes text matching and sorting based on keywords and keyword groups by constructing a keyword distance table, taking into account both the matching of a single keyword and the combination and relevance between keywords, thereby improving the accuracy and efficiency of text matching. In practical applications, the splitting, combination and distance calculation strategies of keywords can be adjusted according to specific needs to achieve better matching results.

[0129] In a specific embodiment of the present application, the specific steps of sorting multiple candidate texts are as follows:

[0130] Step 1: Get all the fields involved in the query in the source database and perform keyword splitting on them.

[0131] Step 2: After the keywords are split, all the keywords that appear are grouped in pairs, and an initial distance d=1 is assigned to each group of keywords.

[0132] Step 3: traverse the source database text, where the keyword groups that appear simultaneously in a single text are proportionally reduced in distance d. For example, each time a keyword group appears once, its corresponding distance , that is, the distance decreases.

[0133] Step 4: After the traversal in step 3 is completed, an initial set of keyword distance relationship data sets is obtained. The structure data is stored in the database, and a new table is created for it, named "words_distance", which mainly contains the following fields: keyword 1, keyword 2, distance.

[0134] Step 5, calculate the text distance between the query text and all the matched texts: traverse each matched text, split out all the keywords in it, and calculate the distance with the query word list. The following calculation formula can be used: D(ab) represents the distance between keyword a and query word b.

[0135] Formula (2)

[0136] Among them, D(11) represents the distance between keyword 1 and keyword 1, D(12) represents the distance between keyword 1 and keyword 2, and similarly D(x, y) represents the distance between keyword x and keyword y.

[0137] Step 6: After calculating the comprehensive distance between each matched result text and the query word list, sort them from small to large by distance.

[0138] In addition, in addition to the above-mentioned sorting by text distance, multiple candidate texts can also be sorted by any other method, such as sorting based on text length.

[0139] The steps of sorting multiple candidate texts based on text length are as follows:

[0140] Step 1, select one of the texts text1 from all text lists;

[0141] Step 2: traverse the query word list, delete all matching query words from text1, and get text2 after deletion;

[0142] Step 3: Subtract the length of text2 from the length of text1 to get the total length of the query term matching in the text;

[0143] Step 4: Repeat steps 1 to 3 until all texts are matched;

[0144] Step 5: sort all the matching result texts from largest to smallest according to the total length of the matching query word texts.

[0145] It should be noted that sorting based on text distance and sorting based on text length are both widely used sorting methods, but they are not the only choice. In fact, the choice of sorting method should be closely aligned with actual needs to ensure the accuracy and efficiency of the results. Among them, the sorting method based on text distance focuses on considering the similarity or correlation between the candidate text and the field to be matched. By calculating the text distance, the matching degree between each candidate text and the field to be matched can be obtained, thereby achieving accurate sorting of the candidate text. This sorting method is particularly applicable in scenarios that require accurate matching, such as search engines, recommendation systems, etc.; while the sorting method based on text length pays more attention to the characteristics of the candidate text itself. In some cases, the text length may be used as an indicator to measure the richness or importance of text information. For example, in news summaries or article recommendations, longer texts may contain more information and are therefore more likely to be paid attention to by users. However, it should be emphasized that these two sorting methods are not applicable to all scenarios. In actual application, it may be necessary to select an appropriate sorting method based on specific business needs, data characteristics, and user preferences. In addition, multiple sorting methods can be combined for comprehensive consideration to achieve better sorting results. Therefore, this application does not impose any restrictions on the text sorting method.

[0146] Figure 4 It is a schematic diagram of the overall steps of a method for quickly querying vehicle network signals shown in an exemplary embodiment of the present application.

[0147] like Figure 4 As shown, the fast query method for Internet of Vehicles signals proposed in the present application first obtains the original query text, then splits the source query words, purifies the source query words, and matches the query words based on the source database, and then obtains multiple candidate texts and sorts them, and finally optimizes the aforementioned source query word purification step and candidate text sorting step based on the user's selection results.

[0148] It should be noted that in the actual process, a List is usually generated based on the sorted candidate texts, and the List is returned to the user so that the user can select the appropriate target text. In addition, for ease of management, the List is usually implicitly grouped into three parts: head, middle, and tail. When the system is first put into use, an initial value is specified as the basis for splitting the three parts, for example: top10 as the head list; top11-30 as the middle list; top31+ as the tail list. In the subsequent use process, the split rules of the head, middle, and tail can be updated according to the user's click rate. The update rules are as follows:

[0149] Header element change: When the click rate of the current List header option is >80%, the length of the header element is -1, and the minimum length cannot exceed the minimum header length (such as 5). For example, top10 becomes top9, and at the same time, the middle list elements are synchronously changed to top10-top30.

[0150] Changes to the elements in the middle: When the click rate of the options in the middle is >50%, the last element in the middle moves one position to the right, that is, the top 10 in the head, top 11-30 in the middle, and top 31+ in the tail changes to the top 10 in the head, top 11-31 in the middle, and top 32+ in the tail. When the click rate of the options in the middle is <10%, the last element in the middle moves one position to the left, that is, the top 10 in the head, top 11-30 in the middle, and top 31+ in the tail changes to the top 10 in the head, top 11-29 in the middle, and top 30+ in the tail.

[0151] Tail element change: The tail element follows the change of the middle element and is not processed separately.

[0152] In addition, after the List is returned to the user, the user usually has the following three feedback results: first, the acceptable candidate text is selected from the head of the returned result list as the target text; second, the acceptable candidate text is selected from the middle and back of the returned result list as the target text; third, no text in the candidate text is selected as the target text, and the query is directly re-queried or exited. In addition, in the purified auxiliary information, except for the special invalid information, which comes from the user's subjective definition and input, the other two types of auxiliary information (general invalid information, valid information) save a "validity" field for each enumeration value. Therefore, in different situations, different upgraded feedback will be given to the purification process of the auxiliary information (valid information and invalid information) based on the user's feedback results.

[0153] In one embodiment of the present application, the valid information enumeration value and the invalid information enumeration value respectively have initial validity values. After the sorted text sequence is pushed to the user end, the method includes: if the user selects any text from the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is lowered, or the initial validity value of the valid information enumeration value is increased; if the user does not select any text in the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is increased, or the initial validity value of the valid information enumeration value is lowered.

[0154] In a specific embodiment of the present application, the first feedback result of selecting an acceptable candidate text as the target text from the head of the returned result list and the second feedback result of selecting an acceptable candidate text as the target text from the middle and rear part of the returned result list are regarded as positive feedback; the third feedback result of not selecting any text among the candidate texts as the target text and directly re-querying or exiting is regarded as negative feedback.

[0155] When the feedback result is positive, the user can obtain acceptable results from the returned results. The difference lies in whether the ranking meets the user's needs. Therefore, in the query word purification step, different optimization processes are performed based on the query word purification method (and screening method), as follows:

[0156] If the invalid information purification method is used, the value of the "Validity" field of the invalid information enumeration value involved in this query is reduced, and the new validity value is as follows:

[0157] Formula (3)

[0158] in, V new represents the new validity value, V old represents the initial validity value, m % indicates the pre-information adjustment parameter.

[0159] If the valid information purification method is used, the value of the "Validity" field of the valid information enumeration value involved in this query will be increased, and the new validity value is as follows:

[0160] Formula (4)

[0161] in, V new represents the new validity value, V old represents the initial validity value, m % indicates preset information adjustment parameters.

[0162] When the feedback result is negative feedback, it means that the user failed to obtain the required results from the result list. Similarly, in the query word purification step, different optimization processes are performed based on the query word purification method (and screening method), as follows:

[0163] If the invalid information purification method is used, the value of the "validity" field of the invalid information enumeration value involved in this query is increased, and the new validity value is obtained as shown in formula (4);

[0164] If the valid information purification method is used, the value of the "validity" field of the valid information enumeration value involved in this query is reduced, and a new validity value is obtained as shown in formula (3).

[0165] In addition, when sorting the results, if a method based on text distance sorting is used, user feedback can also be used as a basis for optimizing the sorting algorithm, and the user feedback results are also divided into positive feedback and negative feedback. Therefore, in different situations, the process of sorting candidate texts can be further optimized based on user feedback results.

[0166] In one embodiment of the present application, after the sorted text sequence is pushed to the user end, the method also includes: dividing the sorted text sequence into a front text sequence, a middle text sequence, and a back text sequence; if the user selects any text from the front text sequence as the target text, then the keyword group corresponding to the query term of the first preset number of texts in the sorted text sequence is obtained, and the text distance of the corresponding keyword group is reduced; if the user selects any text from the middle text sequence or the back text sequence as the target text, then the keyword group corresponding to the query term of all candidate texts before the target text is obtained, and the text distance of the corresponding keyword group is increased; if the user does not select any text in the sorted text sequence as the target text, then the keyword group corresponding to the query term of the first second preset number of texts in the sorted text sequence is obtained, and the text distance of the corresponding keyword group is increased.

[0167] In a specific embodiment of the present application, feedback situation 1 is regarded as positive feedback, and feedback situation 2 and feedback situation 3 are regarded as negative feedback. Take the head sequence as the first 10% of the sorted candidate text sequence as an example.

[0168] When the feedback result is positive, the user can obtain acceptable results from the returned results, and the valid information in this sorting is the sorting result text of the top 10 text distances, then take the combination of keywords and query words, reduce the value of the distance field in the keyword distance table corresponding to them, and get a new distance value. The expression is as follows:

[0169] Formula (5)

[0170] in, D new Represents the new query term distance value, D old Represents the initial query term distance value, n % indicates the preset distance adjustment parameter.

[0171] When the feedback is negative, the user fails to quickly obtain the target result from the sorted results. However, considering the accuracy of query result matching, the negative feedback degree of case 2 should be greater than that of case 3, so they need to be distinguished and processed as follows:

[0172] When the feedback result is the second type, it means that the first half of the returned results do not meet the user's needs. Take all the text before the result finally selected by the user, increase the distance corresponding to the combination of its keyword and query word, and get a new distance value. Its expression is as follows:

[0173] Formula (6)

[0174] in, D new Represents the new query term distance value, D old Represents the initial query term distance value, n % indicates the preset distance adjustment parameter.

[0175] When the feedback result is the third type, it means that at least the top result in the returned results does not meet the user's needs. The top 10 texts are taken and the distance corresponding to the combination of their keywords and query words is increased to obtain a new distance value, which is expressed as shown in formula (6).

[0176] It should be noted that the above-mentioned embodiments mention nodes for segmenting the sorted text sequence, and in this process involve adjustment parameters for adjusting the data. These adjustment parameters, including information adjustment parameters and distance adjustment parameters, are flexibly set according to actual application scenarios and needs. It should be emphasized that the specific values ​​and determination methods of these adjustment parameters are not fixed. They should be generated according to actual conditions, such as dynamic adjustment based on factors such as text content, user preferences, and application scenarios. Therefore, this application does not impose any restrictions on the determination methods and specific values ​​of these parameters. In actual applications, these parameters can be flexibly set and adjusted according to specific needs to achieve the best text segmentation and presentation effects.

[0177] Finally, it should be noted that the method for fast querying vehicle network signals proposed in this application screens out multiple candidate texts by accurately splitting the query text and efficiently matching it with the source database. Subsequently, these candidate texts are scientifically sorted to ensure that users can quickly locate the required target text. This method shows significant advantages over the traditional signal query method. First, this method does not require the introduction of additional storage or query components, thereby greatly reducing the procurement and operation and maintenance costs, making the entire system more concise and efficient; secondly, in the matching process, the information of the source database is fully utilized to prioritize the target dictionary database, effectively reducing the amount of data processing in the matching process, significantly improving the matching efficiency, and enabling this method to remain efficient and stable when processing large-scale data; furthermore, this method has good adaptability, and can flexibly select or adjust the target dictionary database according to the matching needs of different regions and languages, so that this method can be widely used in various scenarios; finally, this method also adopts a variety of feedback optimization mechanisms, so that the system can self-learn and continuously optimize the query effect, so that this method can continue to provide accurate and efficient query services when facing complex and changing query needs. To sum up, the method for rapid query of Internet of Vehicles signals proposed in this application not only has cost advantages and high efficiency, but also has good adaptability and self-learning ability, providing a new solution for rapid query of Internet of Vehicles signals.

[0178] Figure 5 is a block diagram of a fast query device for vehicle networking signals shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The device may also be applicable to other exemplary implementation environments and specifically configured in other devices, and this embodiment does not limit the implementation environment to which the device is applicable.

[0179] like Figure 5 As shown, the exemplary fast query device for Internet of Vehicles signals includes: a data acquisition module 510, a text segmentation module 520, an information query module 530, a text construction module 540, and an information query module 550.

[0180] Among them, the data acquisition module 510 is used for the source database, the initial text to be queried, and the target dictionary database; the text splitting module 520 is used to split the initial text to be queried based on the words in the target dictionary database to obtain multiple initial query words; the information query module 530 is used to match the initial query words with the enumeration values ​​of the source database and the enumeration values ​​of the invalid information database respectively to filter the initial query words to obtain the target query words; the text construction module 540 is used to obtain multiple candidate texts based on the target query words and the source database; the information query module 550 is used to sort the multiple candidate texts to obtain a sorted text sequence, and push the sorted text sequence to the user end to realize the user end's fast query based on the Internet of Vehicles information.

[0181] It should be noted that the quick query device for the Internet of Vehicles signal provided in the above embodiment and the quick query method for the Internet of Vehicles signal provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In actual application, the quick query device for the Internet of Vehicles signal provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0182] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the method for quickly querying the Internet of Vehicles signal provided in the above-mentioned embodiments.

[0183] Figure 6 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0184] like Figure 6 As shown, the computer system 600 includes a central processing unit 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 or the program loaded from the storage part 608 into the random access memory 603, such as executing the method in the above embodiment. In the random access memory 603, various programs and data required for system operation are also stored. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other through a bus 604. The input / output interface 605 is also connected to the bus 604.

[0185] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0186] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit 601, various functions defined in the system of the present application are executed.

[0187] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0188] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the above-mentioned module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0189] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.

[0190] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the aforementioned method for quickly querying vehicle network signals. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0191] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for quickly querying vehicle network signals provided in each of the above embodiments.

[0192] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for quickly querying vehicle networking signals, characterized in that: The method comprises, Obtaining a source database, an initial text to be queried, an invalid information database, and a target dictionary database; Splitting the initial text to be queried based on the words in the target dictionary database to obtain a plurality of initial query words; Matching the initial query word with the enumeration value of the source database and the enumeration value of the invalid information database respectively, so as to filter the initial query word to obtain the target query word; Obtaining a plurality of candidate texts based on the target query term and the source database; Sorting the plurality of candidate texts comprises: acquiring all to-be-matched fields in the source database; splitting the to-be-matched fields to obtain a plurality of keywords, combining any two keywords to obtain a keyword group, and assigning an initial distance to each keyword group; determining any keyword group as a target keyword group, traversing the keyword group through all to-be-matched fields, and obtaining a phrase distance of the target keyword group based on the frequency of occurrence of the target keyword group in the same to-be-matched field and the initial distance of the target keyword group; traversing all keyword groups to obtain the phrase distance of each keyword group, constructing a keyword distance table based on the keywords, the keyword groups, and the phrase distance, and sorting the plurality of candidate texts based on the keyword distance table; The sorted text sequence is pushed to the user end to enable the user end to quickly query based on the Internet of Vehicles information.

2. The method for quickly querying vehicle networking signals according to claim 1, characterized in that: Before obtaining the initial query text and the target dictionary database, it also includes: Obtaining a source database, original text to be queried, and a dictionary database; Extracting the enumeration value of the source database, and converting the enumeration value into a Unicode to obtain first coding information, so as to determine the selectable language based on the first coding information; Converting the original text to be queried into Unicode to obtain second encoding information, and matching the second encoding information with the dictionary database of the selectable language to obtain an updated text to be queried in a different language; Any updated text to be queried is determined as an initial text to be queried, and a dictionary database corresponding to the initial text to be queried is determined as a target dictionary database.

3. The method for quickly querying vehicle networking signals according to claim 1, characterized in that: The initial query text is split based on the words in the target dictionary database to obtain a plurality of initial query words, including: Obtaining the lengths of all words in the target dictionary database to obtain the longest word length in the target dictionary database; Based on the longest word length, the initial to-be-queried text is divided into a plurality of to-be-matched target texts, and any to-be-matched target text is determined as the initial target text; Searching the target dictionary database, if there is a word identical to the initial target text, determining the initial target text as an initial query word, if there is no word identical to the initial target text, splitting the initial target text to obtain initial query words, and the target dictionary database has at least one word identical to the initial query word; The initial target text without the initial query words is determined as the updated target text, and the updated target text is regarded as a new target text, and the above text splitting step is repeated until the entire content of the initial target text is split into multiple initial query words.

4. The method for quickly querying vehicle networking signals according to claim 3 is characterized in that: The initial target text is split to obtain initial query words, including: The initial target text is regarded as a text sequence, and data at the end of the text sequence is removed to obtain an intermediate text; Matching the intermediate text with the information in the target dictionary database, if the match fails, treating the intermediate text as a text sequence, and removing the data at the end of the text sequence to obtain an updated intermediate text sequence; The updated intermediate text is matched with the information in the target dictionary database until a word identical to the intermediate text is matched in the target dictionary database, and the matched word is used as an initial query word.

5. The method for quickly querying vehicle networking signals according to claim 1, characterized in that: Matching the initial query word with the enumeration value of the source database and the enumeration value of the invalid information database respectively to filter the initial query word to obtain the target query word, including: Determine the enumeration value of the source database as a valid enumeration value, and determine the enumeration value of the invalid information database as an invalid enumeration value; Match any of the initial query words with the valid enumeration value, retain the initial query word if the match succeeds, and delete the initial query word from the initial query word list to obtain a first query word list if the match fails, wherein the initial query word list is obtained based on all the initial query words; Match any of the initial query words with the invalid enumeration value, retain the initial query word if the match fails, and delete the initial query word from the initial query word list to obtain a second query word list if the match succeeds; combining the first query word list and the second query word list, and deleting duplicate items in the first query word list and the second query word list to obtain a comprehensive query word list; All query words in any query list of the first query word list, the second query word list, and the comprehensive query word list are determined as target query words.

6. The method for quickly querying vehicle networking signals according to claim 1, characterized in that: The step of sorting the plurality of candidate texts based on the keyword distance table includes: Determine any candidate text as a target candidate text, and split the target candidate text to obtain a target candidate query word; Calculating the text distances between the target candidate query words based on the keyword distance table to obtain the comprehensive text distances of the target candidate texts; All candidate texts are traversed to obtain the comprehensive text distance of each candidate text, and all candidate texts are sorted based on the increasing order of the comprehensive text distance.

7. A method for quickly querying vehicle network signals, characterized in that: The method comprises: obtaining a source database, an initial text to be queried, an invalid information database, and a target dictionary database; Splitting the initial text to be queried based on the words in the target dictionary database to obtain a plurality of initial query words; Matching the initial query word with the enumeration value of the source database and the enumeration value of the invalid information database respectively, so as to filter the initial query word to obtain the target query word; Obtaining a plurality of candidate texts based on the target query term and the source database; Sorting the plurality of candidate texts and pushing the sorted text sequence to the user end, so as to enable the user end to quickly query based on the Internet of Vehicles information; Determining the enumeration value of the source database as a valid enumeration value, and determining the enumeration value of the invalid information database as an invalid enumeration value, wherein the valid enumeration value and the invalid enumeration value respectively have an initial validity value, and after pushing the sorted text sequence to the user end, the method further includes: If the user selects any text from the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is reduced, or the initial validity value of the valid information enumeration value is increased; If the user does not select any text in the sorted text sequence as the target text, the initial validity value of the invalid information enumeration value is increased, or the initial validity value of the valid information enumeration value is decreased; The larger the initial validity value is, the more commonly used the corresponding enumeration value is.

8. The method for quickly querying vehicle networking signals according to claim 7, characterized in that: After pushing the sorted text sequence to the user end, the method further includes: Dividing the sorted text sequence into a front text sequence, a middle text sequence, and a back text sequence; If the user selects any text from the preceding text sequence as the target text, then the keyword groups corresponding to the query words of the first preset number of texts in the sorted text sequence are obtained, and the text distance of the corresponding keyword groups is reduced; If the user selects any text from the middle text sequence or the latter text sequence as the target text, then the keyword groups corresponding to the query terms of all candidate texts before the target text are obtained, and the text distance of the corresponding keyword groups is increased; If the user does not select any text in the sorted text sequence as the target text, the keyword groups corresponding to the query terms of the first second preset number of text items in the sorted text sequence are obtained, and the text distance of the corresponding keyword groups is increased.

9. A fast query device for vehicle networking signals, characterized in that: The device comprises, A data collection module, for the source database, the initial text to be queried, the invalid information database, and the target dictionary database; A text splitting module, used for splitting the initial text to be queried based on the words in the target dictionary database to obtain a plurality of initial query words; An information query module, used to match the initial query word with the enumeration value of the source database and the enumeration value of the invalid information database respectively, so as to filter the initial query word to obtain a target query word; A text construction module, used to obtain a plurality of candidate texts based on the target query term and the source database; An information query module is used to sort the multiple candidate texts, including: obtaining all the to-be-matched fields in the source database; splitting the to-be-matched fields to obtain multiple keywords, combining any two keywords to obtain a keyword group, and assigning an initial distance to each keyword group; determining any keyword group as a target keyword group, traversing the keyword group through all the to-be-matched fields, and obtaining a phrase distance of the target keyword group based on the frequency of occurrence of the target keyword group in the same to-be-matched field and the initial distance of the target keyword group; traversing all keyword groups to obtain the phrase distance of each keyword group, constructing a keyword distance table based on the keywords, the keyword groups, and the phrase distances, and sorting the multiple candidate texts based on the keyword distance table; pushing the sorted text sequence to a user end to enable the user end to quickly query based on Internet of Vehicles information.

10. An electronic device, characterized in that: It includes a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement a fast query method for vehicle network signals as described in any one of claims 1-6.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to enable a computer to execute the method for quickly querying vehicle network signals as described in any one of claims 1-6.