Vehicle-mounted dialogue log processing method, device and equipment, medium and vehicle
By sorting and dividing the in-vehicle dialogue statement logs, sample data is generated for training the in-vehicle dialogue system, which solves the problem of inaccurate semantic understanding of a single statement in different scenarios and improves user satisfaction.
Patent Information
- Application Number
- CN202310323596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Existing in-vehicle dialogue systems only use a single statement during the training process, resulting in inaccurate semantic understanding in different scenarios and often incorrect answers, affecting user satisfaction.
By obtaining the in-vehicle dialogue statement log, sorting and dividing the sessions according to the initiation time, sample data in a preset format is generated for training the in-vehicle dialogue system and enhancing semantic understanding.
The accuracy of the training sample data of the in-vehicle dialogue system is improved, allowing the system to understand user semantics more accurately and improving user satisfaction.
Smart Images

Figure CN118733718A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing, and in particular, relates to a method, device, equipment, medium and vehicle for processing vehicle-mounted conversation logs. Background Art
[0002] With the development of intelligent vehicles, more and more vehicles are using intelligent in-vehicle dialogue systems to improve the intelligent operation of vehicles. The intelligent in-vehicle dialogue system in the car needs to understand the user's intention based on the user's voice and make corresponding execution actions based on the user's intention. Therefore, the in-vehicle dialogue system's understanding of the user's voice has a huge impact on user satisfaction.
[0003] Currently, in-vehicle dialogue systems often only use a single sentence for training, and the meaning of a single sentence is different in different scenarios.
[0004] Therefore, the in-vehicle dialogue system often cannot accurately recognize the true meaning of the user's voice, and often misunderstands the user's voice, such as answering questions irrelevantly, which seriously affects the user's satisfaction with the vehicle. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, medium and vehicle for processing an in-vehicle dialogue log, which improves the accuracy of constructing training samples for an in-vehicle dialogue system.
[0006] According to a first aspect of the present application, a method for processing an in-vehicle conversation log is provided, and the method may include:
[0007] Obtaining an in-vehicle conversation statement log, the in-vehicle conversation statement log includes multiple conversation statement records; each conversation statement record includes a vehicle identification, a user query statement, a system answer statement, and the time when the user initiated the user query statement;
[0008] The dialogue statement records belonging to the same vehicle identification are sorted in the order of initiation time to obtain a dialogue statement record sequence;
[0009] According to a preset session division rule, the dialogue statement records in the same dialogue statement record sequence are divided into sessions to obtain at least one session; the preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to a preset time length into the same session, and the initiation time interval is the interval between the initiation times of two adjacent dialogue statement records;
[0010] The format of each dialogue statement record of the same conversation is processed to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
[0011] Optionally, according to a preset session division rule, the dialogue statement records in the dialogue statement record sequence are divided into sessions to obtain at least one session, including:
[0012] According to a preset session division rule, the dialogue statement records in the dialogue statement record sequence are divided into sessions, and a session identifier corresponding to each dialogue statement record is determined;
[0013] For each dialogue statement record, respectively perform: adding the session identifier corresponding to the dialogue statement record to the dialogue statement record to obtain an updated vehicle-mounted dialogue statement log;
[0014] The updated vehicle dialogue statement logs with the same session identifier are divided into the same session to obtain at least one session.
[0015] Optionally, the preset format of the sample data includes a statement initiator identifier and a corresponding slot, and the same conversation includes at least one round of dialogue statement records.
[0016] The format of each dialogue statement record of the same conversation is processed to obtain sample data in a preset format, including:
[0017] According to the chronological order of initiation time in at least one round of dialogue statement records, the user query statements and system answer statements in each round of dialogue statement records are sequentially filled into corresponding slots to obtain sample data in a preset format.
[0018] Optionally, before dividing the updated in-vehicle conversation statement logs having the same session identifier into the same session to obtain at least one session, the session division further includes:
[0019] Merging the user query statements and the system answer statements in the updated in-vehicle dialogue statement log to obtain the target in-vehicle dialogue statement log;
[0020] The updated vehicle dialogue statement logs with the same session identifier are divided into the same session to obtain at least one session, including:
[0021] The target vehicle-mounted conversation statement logs belonging to the same vehicle identification are divided according to the session identification to obtain at least one session.
[0022] According to a second aspect of the present application, an embodiment of the present application provides a vehicle-mounted conversation log processing device, which includes:
[0023] An acquisition module is used to acquire a vehicle-mounted conversation statement log, which includes multiple conversation statement records; each conversation statement record includes a vehicle identification, a user query statement, a system answer statement, and the time when the user initiated the user query statement;
[0024] A sorting module, used to sort the dialogue statement records belonging to the same vehicle identification in the order of initiation time to obtain a dialogue statement record sequence;
[0025] A division module, used to divide the dialogue statement records in the same dialogue statement record sequence into sessions according to a preset session division rule to obtain at least one session; the preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to a preset time length into the same session;
[0026] The processing module is used to process the format of each dialogue statement record of the same conversation to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
[0027] Optionally, the partitioning module includes:
[0028] A determination unit, configured to divide the conversation statement records in the conversation statement record sequence into conversations according to a preset conversation division rule, and determine a conversation identifier corresponding to each conversation statement record;
[0029] The adding unit is used to execute, for each dialogue statement record, respectively: adding the session identifier corresponding to the dialogue statement record to the dialogue statement record to obtain an updated vehicle-mounted dialogue statement log;
[0030] The dividing unit is used to divide the updated vehicle-mounted dialogue statement logs with the same session identifier into the same session to obtain at least one session.
[0031] According to a third aspect of the present application, an embodiment of the present application provides a vehicle-mounted conversation log processing device, which includes: a processor and a memory storing computer program instructions;
[0032] When the processor executes the computer program instructions, it implements the in-vehicle conversation log processing method as described in any one of the first aspects.
[0033] According to the fourth aspect of the present application, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the vehicle-mounted conversation log processing method of any one of the first aspect is implemented.
[0034] According to the fifth aspect of the present application, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device executes the in-vehicle conversation log processing method of any one of the first aspects.
[0035] According to the sixth aspect of the present application, an embodiment of the present application provides a vehicle, the vehicle comprising the in-vehicle conversation log processing apparatus in the second aspect or the in-vehicle conversation log processing device in the third aspect.
[0036] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0037] The embodiments of the present application provide a method, apparatus, device, medium and vehicle for processing an in-vehicle dialogue log, which obtains dialogue statement records in an in-vehicle dialogue statement log, sorts each dialogue statement record in chronological order of initiation time to obtain a dialogue statement record sequence, thereby more accurately simulating a scenario in which a user and an in-vehicle dialogue system have a dialogue, divides the dialogue according to the time interval, and determines whether two adjacent dialogue statement records belong to the same conversation, thereby enhancing the semantic understanding of the dialogue statement records from the upper and lower adjacent dialogue statement records, and then processes the format of the conversation to obtain sample data, and uses the sample data to train the in-vehicle dialogue system, which helps the in-vehicle dialogue system to correctly understand the semantics of each pair of dialogue statement records to a great extent, and improves the accuracy of constructing sample data for training the in-vehicle dialogue system, so that the trained in-vehicle dialogue system can more accurately understand the user's semantics, thereby improving the user's satisfaction with the in-vehicle dialogue system.
[0038] 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
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0040] Figure 1 is a flow chart of a method for processing an in-vehicle conversation log according to an exemplary embodiment;
[0041] Figure 2 is another flow chart of a method for processing an in-vehicle conversation log according to an exemplary embodiment;
[0042] Figure 3 is another flow chart of a method for processing an in-vehicle conversation log according to an exemplary embodiment;
[0043] Figure 4 is a structural block diagram of a vehicle-mounted conversation log processing device according to an exemplary embodiment;
[0044] Figure 5 The figure is a structural block diagram of a vehicle-mounted conversation log processing device according to an exemplary embodiment. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0047] As described in the background technology, the current in-vehicle dialogue system often only uses a single sentence for training during the training process, and the meaning of a single sentence is different in different scenarios. As a result, the in-vehicle dialogue system often cannot accurately recognize the true meaning of the user's voice, and often misunderstands the user's voice, such as answering questions irrelevantly, which seriously affects the user's satisfaction with the vehicle.
[0048] In order to solve the problems of the prior art, the inventive concept of the request processing method provided in the embodiment of the present application is as follows: each dialogue statement record is divided into different sessions according to the context semantics, and the session is formatted to obtain sample data, and the sample data is used to train the in-vehicle dialogue system, so that the sample data for training the in-vehicle dialogue system can recognize the context semantics, thereby improving the accuracy of constructing the sample data for training the in-vehicle dialogue system, so that the trained in-vehicle dialogue system can understand the user's semantics more accurately.
[0049] Based on this, by obtaining the dialogue statement records in the in-vehicle dialogue statement log, the dialogue statement records are sorted in order of initiation time to obtain a dialogue statement record sequence, thereby more accurately simulating the scenario of the user and the in-vehicle dialogue system having a conversation, dividing the conversation according to the time interval, and judging whether two adjacent dialogue statement records belong to the same conversation, so as to enhance the semantic understanding of the dialogue statement records from the upper and lower adjacent dialogue statement records, and then processing the format of the conversation to obtain sample data, and using the sample data to train the in-vehicle dialogue system, it helps the in-vehicle dialogue system to correctly understand the semantics of each pair of dialogue statement records to a great extent, and improves the accuracy of sample data construction for training the in-vehicle dialogue system, so that the trained in-vehicle dialogue system can understand the user's semantics more accurately and improve the user's satisfaction with the in-vehicle dialogue system.
[0050] Based on this, the present application provides a vehicle-mounted conversation log processing method, device, equipment, medium and vehicle. The following first introduces the vehicle-mounted conversation log processing method provided in the embodiment of the present application.
[0051] Figure 1 A flow chart of a method for processing vehicle-mounted conversation logs provided by an embodiment of the present application is shown. Figure 1 As shown, the method may include the following steps:
[0052] S101, obtaining an in-vehicle conversation statement log, where the in-vehicle conversation statement log includes a plurality of conversation statement records;
[0053] S102, sorting the dialogue statement records belonging to the same vehicle identification in the order of initiation time to obtain a dialogue statement record sequence;
[0054] S103, dividing the dialogue statement records in the same dialogue statement record sequence into dialogues according to a preset dialogue division rule to obtain at least one dialogue;
[0055] S104, processing the format of each dialogue statement record of the same conversation to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
[0056] Based on the above embodiment, by obtaining the dialogue statement records in the in-vehicle dialogue statement log, the dialogue statement records are sorted in order of the initiation time to obtain a dialogue statement record sequence, thereby more accurately simulating the scenario of the user and the in-vehicle dialogue system having a dialogue, dividing the dialogue according to the time interval, and judging whether two adjacent dialogue statement records belong to the same conversation, so that the semantic understanding of the dialogue statement records can be enhanced from the upper and lower adjacent dialogue statement records, and then the format of the conversation is processed to obtain sample data, and the sample data is used to train the in-vehicle dialogue system, which helps the in-vehicle dialogue system to correctly understand the semantics of each pair of dialogue statement records to a great extent, and improves the accuracy of constructing the sample data for training the in-vehicle dialogue system, so that the trained in-vehicle dialogue system can understand the user's semantics more accurately, and improve the user's satisfaction with the in-vehicle dialogue system.
[0057] In the above S101, the in-vehicle dialogue log statement log records the dialogue statement records exchanged between the user and the in-vehicle dialogue system when the vehicle is running.
[0058] Specifically, the dialogue statement record may include vehicle identification, user inquiry statements, system answer statements, and the time when the user initiates the user inquiry statement, wherein the user inquiry statement is a query statement that the user asks the in-vehicle dialogue system; the system answer statement is an answer statement made by the system based on the query statement issued by the user; the vehicle identification is used to indicate which vehicle the dialogue statement record comes from, and is used to identify the source of the dialogue statement record.
[0059] As an example, the in-vehicle dialogue statement log includes many user query statements and system answer statements. By obtaining the identification code in the user query statement, the system answer statement with the same identification code can be queried in the in-vehicle dialogue statement log. Two user query statements and system answer statements with the same identification code exist in the same dialogue statement record.
[0060] In the above S102, since the in-vehicle conversation log records conversation statements of multiple vehicles, and it is possible that user query statements in different vehicles have the same initiation time, but for a vehicle, there is only one user query statement at a time, so it is necessary to first select the conversation statement records of the same vehicle with the same vehicle identification from the numerous conversation statement records according to the vehicle identification, so as to ensure the uniqueness of the initiation time of the user's query statement.
[0061] Now that the uniqueness of the initiation time has been determined, each conversation can be sorted in sequence according to the order of the initiation time. The purpose of this is to make the dialogue sentence record sequence closer to the actual dialogue process between the user and the in-vehicle dialogue system, and to obtain an accurate dialogue sentence record sequence.
[0062] In the above S103, since the dialogue statement record sequence has been arranged in chronological order, and the initiation time of the user's query statement is unique for the same vehicle, the dialogue statement record sequence can also reflect the entire conversation process from start to end. However, which user query statement is the beginning of the conversation and which user query statement is the end of the dialogue statement record needs to be determined according to the preset conversation rules.
[0063] Specifically, the preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to the preset time length into the same session, and the initiation time interval is the interval between the initiation times of two adjacent dialogue statement records. According to the initiation time in the dialogue statement record sequence, the initiation time interval of adjacent user-initiated user query statements can be obtained, and by comparing the initiation time intervals of each user query statement with the next user query statement in turn, if the initiation time interval is always less than or equal to the preset time length, the compared user query statements belong to the same session until the initiation time interval is greater than the preset time length, then the session is ended. As for the next user query statement after this user query statement, the next query statement opens another session. Since the user query statement is determined, the dialogue statement record corresponding to it can naturally be confirmed according to the user query statement.
[0064] As an example, as shown in Table 1 below:
[0065] Table 1: Schematic diagram of vehicle conversation log
[0066]
[0067]
[0068] Assuming that the preset duration is 30 seconds, according to the above table, the initiation time corresponding to dialogue statement records 2 and 7 is the same time, and the time interval between dialogue statement record 6 and dialogue statement record 2 is 5 seconds. If this time interval is compared with the preset duration, it will be mistakenly believed that dialogue statement record 6 is the dialogue statement record belonging to session 2. In fact, dialogue statement records 2, 6 and 7 belong to different vehicles respectively, and there is no semantic association between them. Therefore, it is necessary to first obtain the dialogue statement records on the same vehicle based on the vehicle identification.
[0069] By comparing the time interval between the initiation times of dialogue statement records 1 and 2, we can see that it is 60s, which exceeds the preset duration of 30s. We can consider dialogue statement record 2 as the start statement of conversation 2, and the corresponding dialogue statement record 1 as the end statement of conversation 1. Similarly, the time interval between the initiation times of dialogue statement records 4 and 5 is also greater than 30s, so dialogue statement record 4 is the end statement of conversation 2, and dialogue statement record 5 is the start statement of conversation 3. By inferring in sequence, we can classify many dialogue statement records into corresponding conversation logs.
[0070] In the above S104, the in-vehicle dialogue system cannot recognize the user query statements and system answer statements in the conversation, so it is necessary to process the format of the conversation to obtain sample data in a preset format so that the in-vehicle dialogue system can recognize the sample data, thereby training the in-vehicle dialogue system.
[0071] As an example, the preset format of the sample data includes a statement initiator identifier and a corresponding slot. The same conversation includes at least one round of dialogue statement records. According to the chronological order of the initiation time in the at least one round of dialogue statement records, the user query statements and system answer statements in each round of dialogue statement records are filled into the corresponding slots respectively to obtain sample data in a preset format.
[0072] The statement initiator identifier of the user query statement is the user, and the statement initiator identifier of the system answer statement is the system.
[0073] Specifically, referring to Table 1 above, the sample data format corresponding to session 2 can be: [user] user query statement 2 [system] system reply statement 2 [user] user query statement 3 [system] system reply statement 3 [user] user query statement 4 [system] system reply statement 4.
[0074] In other embodiments, depending on the different in-vehicle dialogue systems, the format of the sample data may also be other specific formats, and the present application does not impose any specific limitation on the format of the sample data.
[0075] In order to accurately divide the conversation statement records, the present application also provides another implementation of the vehicle-mounted conversation log processing method.
[0076] like Figure 2 Another flow chart of a method for processing vehicle-mounted conversation logs provided by an embodiment of the present application is shown. Figure 2 As shown, the above S103 may include:
[0077] S201, dividing the conversation statement records in the conversation statement record sequence into conversations according to a preset conversation division rule, and determining a conversation identifier corresponding to each conversation statement record;
[0078] S202, for each dialogue statement record, respectively performing: adding a session identifier corresponding to the dialogue statement record to the dialogue statement record, to obtain an updated vehicle-mounted dialogue statement log;
[0079] S203: group the updated in-vehicle conversation statement logs having the same session identifier into the same session to obtain at least one session.
[0080] Based on the above embodiment, by setting a session identifier to determine the corresponding session, the session corresponding to each dialogue statement record can be directly confirmed through the updated dialogue statement log, and different sessions can be divided from the updated dialogue statement log more quickly through the session identifier.
[0081] In the above S201, after determining the conversation to which each dialogue statement record in the dialogue statement sequence belongs according to the preset rules, a unique session identifier for indicating the conversation to which it belongs is attached to each dialogue statement record. The conversation to which the dialogue statement record belongs can be determined by the session identifier. Specifically, the session identifier can be session 1, session 2, etc. in Table 1 above.
[0082] In the above S202, since it is concluded that a corresponding session identifier has been attached to each conversation statement record, it is necessary to re-update the in-vehicle conversation statement log so that the conversation statement records in the updated in-vehicle conversation statement log all carry the session identifier.
[0083] In the above S203, by querying the updated conversation statement log, the conversation to which each conversation statement record belongs can be known through the session identifier. According to different session identifiers, the conversation statement records with the same session identifier are classified into the same session to obtain an accurate session.
[0084] In order to improve the processing speed of the in-vehicle conversation log processing, the present application also provides another implementation of the in-vehicle conversation log processing method.
[0085] like Figure 3 Another flow chart of a method for processing vehicle-mounted conversation logs provided by an embodiment of the present application is shown. Figure 3 As shown, before the above S203, the method may further include:
[0086] S301, merging the user query statement and the system answer statement in the updated in-vehicle dialogue statement log to obtain a target in-vehicle dialogue statement log;
[0087] The above S203 may include:
[0088] S302: Divide the target vehicle-mounted conversation statement logs belonging to the same vehicle identifier according to the session identifier to obtain at least one session.
[0089] Based on the above embodiment, by obtaining the target vehicle-mounted conversation statement logs of different vehicles and performing conversation division according to the target vehicle-mounted conversation statement logs of different vehicles, conversation division can be performed on the target vehicle-mounted conversation statement logs of multiple different vehicles at the same time, thereby saving the processing time of conversation division and improving the processing efficiency.
[0090] In the above S301, since the target vehicle can be distinguished according to the vehicle identification, the target vehicle can be represented by any vehicle identification. Then, according to the vehicle identification, each user query statement and the system answer statement are merged to form a target vehicle-mounted dialogue statement log, which can be the target vehicle-mounted dialogue statement log of any vehicle, even if there are multiple different vehicle identifications, that is, there are as many target vehicle-mounted dialogue statement logs.
[0091] In the above S302, since the target vehicle-mounted conversation statement logs of different vehicles have been divided according to the vehicle identification, no matter how many different vehicle identifications there are, only the target vehicle-mounted conversation logs belonging to the same vehicle identification are divided to obtain at least one session. However, during the session division process, the sentence record sequences of each vehicle can be simultaneously divided into sessions, which speeds up the processing speed, saves the division time, and improves the efficiency of session division.
[0092] As an example, suppose there are 100,000 conversation statement records, and according to the vehicle identification information, there are 50,000 different vehicles. If we divide the 100,000 conversation statement records into sessions one by one, then the time we need is 100,000 units of time. Because the conversation statement records on different vehicles must belong to different conversations, we can divide the conversations of 50,000 vehicles at the same time according to different vehicles. The corresponding conversation statement record sequence of each vehicle is evenly divided into 2 conversation statement records. Therefore, the time we actually spend on conversation division is 2 units of time, which will greatly shorten the time of conversation division and improve the efficiency of conversation division.
[0093] It should be noted that the application scenarios described in the above-mentioned embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0094] Based on the same inventive concept, the present application also provides a vehicle-mounted conversation log processing device. Figure 4 Provide detailed explanation.
[0095] Figure 4 A schematic diagram of the hardware structure of a vehicle-mounted conversation log processing device 400 provided in an embodiment of the present invention is shown.
[0096] like Figure 4 As shown, the vehicle-mounted conversation log processing device 400 may include:
[0097] The acquisition module 410 is used to acquire the vehicle-mounted conversation statement log, which includes multiple conversation statement records; each conversation statement record includes a vehicle identification, a user query statement, a system answer statement, and the time when the user initiated the user query statement;
[0098] A sorting module 420 is used to sort the dialogue statement records belonging to the same vehicle identification according to the order of initiation time to obtain a dialogue statement record sequence;
[0099] The division module 430 is used to divide the dialogue statement records in the same dialogue statement record sequence into sessions according to a preset session division rule to obtain at least one session; the preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to a preset time length into the same session;
[0100] The processing module 440 is used to process the format of each dialogue statement record of the same conversation to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
[0101] In the vehicle-mounted dialogue log processing device 400 provided in this embodiment, the acquisition module 410 acquires dialogue statement records in the vehicle-mounted dialogue statement log, and the sorting module 420 sorts the dialogue statement records in the order of initiation time to obtain a dialogue statement record sequence, thereby more accurately simulating the scenario of the user and the vehicle-mounted dialogue system having a dialogue. The division module 430 divides the dialogue according to the time interval and determines whether two adjacent dialogue statement records belong to the same conversation, so that the semantic understanding of the dialogue statement records can be enhanced from the upper and lower adjacent dialogue statement records. The processing module 440 then processes the format of the conversation to obtain sample data, and uses the sample data to train the vehicle-mounted dialogue system, which helps the vehicle-mounted dialogue system to correctly understand the semantics of each pair of dialogue statement records to a great extent, and improves the accuracy of constructing the sample data for training the vehicle-mounted dialogue system, so that the trained vehicle-mounted dialogue system can understand the user's semantics more accurately and improve the user's satisfaction with the vehicle-mounted dialogue system.
[0102] Optionally, the partitioning module 430 may include:
[0103] A determination unit, configured to divide the conversation statement records in the conversation statement record sequence into conversations according to a preset conversation division rule, and determine a conversation identifier corresponding to each conversation statement record;
[0104] The adding unit is used to execute, for each dialogue statement record, respectively: adding the session identifier corresponding to the dialogue statement record to the dialogue statement record to obtain an updated vehicle-mounted dialogue statement log;
[0105] The dividing unit is used to divide the updated vehicle-mounted dialogue statement logs with the same session identifier into the same session to obtain at least one session.
[0106] Optionally, the division module 430 may further include:
[0107] A merging unit is used to merge the user query statements and system answer statements in the updated vehicle dialogue statement log to obtain the target vehicle dialogue statement log.
[0108] The division units may include:
[0109] The division subunit is used to divide the target vehicle-mounted conversation statement logs belonging to the same vehicle identification according to the session identification to obtain at least one session.
[0110] The vehicle-mounted conversation log processing device 400 provided in the embodiment of the present application can realize Figures 1 to 3 The various processes implemented by the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0111] Figure 5A schematic diagram of the hardware structure of a vehicle-mounted conversation log processing device provided by an embodiment of the present invention is shown.
[0112] The vehicle-mounted conversation log processing device may include a processor 501 and a memory 502 storing computer program instructions.
[0113] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0114] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.
[0115] In certain embodiments, the memory 502 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 502 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors 501), it is operable to perform the operations described with reference to the method according to an aspect of the present application.
[0116] The processor 501 implements any one of the vehicle-mounted conversation log processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .
[0117] In one example, the vehicle-mounted conversation log processing device may further include a communication interface 503 and a bus 504. As shown in the figure, the processor 501, the memory 502, and the communication interface 503 are connected through the bus 504 and communicate with each other.
[0118] The communication interface 503 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0119] The bus 504 includes hardware, software or both. For example, but not limitation, the bus 54 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industry standard architecture (ISA) bus, a wireless bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral control interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 504 may include one or more buses 504. Although the present application embodiment describes and shows a specific bus 504, the present application considers any suitable bus 504 or interconnection.
[0120] The vehicle-mounted conversation log processing device can be based on the current vehicle-mounted conversation log processing method, thereby realizing the combination of Figure 1-Figure 4 The invention describes a method and device for processing vehicle-mounted conversation logs.
[0121] In addition, an embodiment of the present application further provides a computer program product, including computer program instructions, which can implement the steps and corresponding contents of the aforementioned method embodiment when the computer program product is executed by the processor 501.
[0122] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0123] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0124] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0125] The above reference is made to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure, and describe various aspects of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable vehicle-mounted conversation log processing device to produce a machine, so that these instructions executed by the processor of the computer or other programmable vehicle-mounted conversation log processing device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] Based on the same inventive concept, the present application also provides a vehicle, which includes the above-mentioned vehicle-mounted conversation log processing device 400 or vehicle-mounted conversation log processing equipment.
[0127] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for processing vehicle-mounted conversation logs, characterized in that: include: Obtaining an in-vehicle conversation statement log, wherein the in-vehicle conversation statement log includes a plurality of conversation statement records; Each of the dialogue statement records includes the vehicle identification, the user query statement, the system answer statement, and the time when the user initiated the user query statement; Sorting the dialogue statement records belonging to the same vehicle identification in the order of initiation time to obtain a dialogue statement record sequence; According to a preset session division rule, the dialogue statement records in the same dialogue statement record sequence are divided into sessions to obtain at least one session; The preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to a preset time length into the same session, and the initiation time interval is the interval between the initiation times of two adjacent dialogue statement records; The format of each dialogue statement record of the same conversation is processed to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
2. The vehicle-mounted conversation log processing method according to claim 1, characterized in that: The step of dividing the conversation statement records in the conversation statement record sequence into conversations according to a preset conversation division rule to obtain at least one conversation comprises: According to a preset session division rule, the conversation statement records in the conversation statement record sequence are divided into sessions, and a session identifier corresponding to each conversation statement record is determined; For each dialogue statement record, respectively perform: adding the session identifier corresponding to the dialogue statement record to the dialogue statement record to obtain an updated vehicle-mounted dialogue statement log; The updated vehicle dialogue statement logs with the same session identifier are divided into the same session to obtain at least one session.
3. The vehicle-mounted conversation log processing method according to claim 1 or 2, characterized in that: The preset format of the sample data includes a statement initiator identifier and a corresponding slot, and the same conversation includes at least one round of conversation statement records. The processing of the format of each of the dialogue statement records of the same conversation to obtain sample data in a preset format includes: According to the chronological order of the initiation time in the at least one round of dialogue statement record, the user query statements and the system answer statements in each round of dialogue statement record are sequentially filled into corresponding slots to obtain sample data in a preset format.
4. The vehicle-mounted conversation log processing method according to claim 2, characterized in that: Before dividing the updated in-vehicle conversation statement logs having the same session identifier into the same session to obtain at least one session, the session division further includes: Merging the user query statements and the system answer statements in the updated in-vehicle dialogue statement log to obtain a target in-vehicle dialogue statement log; The step of dividing the updated vehicle-mounted conversation statement logs having the same session identifier into the same session to obtain at least one session includes: The target vehicle-mounted conversation statement logs belonging to the same vehicle identifier are divided according to the session identifier to obtain at least one session.
5. A vehicle-mounted conversation log processing device, characterized in that: The device comprises: An acquisition module, used to acquire a vehicle-mounted conversation statement log, wherein the vehicle-mounted conversation statement log includes a plurality of conversation statement records; each of the conversation statement records includes a vehicle identification, a user query statement, a system answer statement, and a time when the user initiates the user query statement; A sorting module, used for sorting the dialogue statement records belonging to the same vehicle identification in the order of initiation time to obtain a dialogue statement record sequence; A division module, configured to divide the dialogue statement records in the same dialogue statement record sequence into sessions according to a preset session division rule to obtain at least one session; the preset session division rule is to divide multiple dialogue statement records whose initiation time interval is less than or equal to a preset time length into the same session; The processing module is used to process the format of each dialogue statement record of the same conversation to obtain sample data in a preset format, and the sample data is used to train the in-vehicle dialogue system.
6. The vehicle-mounted conversation log processing device according to claim 5, characterized in that: The division module comprises: A determination unit, configured to perform session division on the dialogue statement records in the dialogue statement record sequence according to a preset session division rule, and determine a session identifier corresponding to each dialogue statement record; The adding unit is used to respectively perform, for each dialogue statement record: adding the session identifier corresponding to the dialogue statement record to the dialogue statement record to obtain an updated vehicle-mounted dialogue statement log; The dividing unit is used to divide the updated vehicle-mounted dialogue statement logs with the same session identifier into the same session to obtain at least one session.
7. A vehicle-mounted conversation log processing device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the in-vehicle conversation log processing method as described in any one of claims 1-4 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the vehicle-mounted conversation log processing method according to any one of claims 1 to 4 is implemented.
9. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the in-vehicle conversation log processing method as described in any one of claims 1-4.
10. A vehicle, comprising the vehicle-mounted conversation log processing apparatus according to claim 5 or the vehicle-mounted conversation log processing device according to claim 7.
Citation Information
Patent Citations
Dialogue system training data construction method and device, electronic equipment and storage medium
CN109947924A
Information pushing method, device, electronic equipment and storage medium
CN113505293A
Task-oriented 1 + N-based multi-round dialogue method and system
CN115525753A
System and method for prediction based preemptive generation of dialogue content
US20190251956A1
