Processing method, terminal device, storage medium and program product
By extracting multiple event feature information of the target search information for search, the problems of inaccurate and incomplete search results in the prior art are solved, and more efficient and accurate search results output is achieved.
Patent Information
- Application Number
- CN202510430734.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the search method is relatively single, which affects the accuracy and comprehensiveness of the search results.
Extract multiple event feature information corresponding to the target search information, and search in the file library based on these feature information to output the results.
It improves the comprehensiveness and accuracy of search results, improves search efficiency, avoids multiple search problems caused by inaccurate target search information, and enhances the user experience.
Smart Images

Figure CN120371785A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a processing method, a terminal device, a storage medium, and a program product. Background Art
[0002] In the process of conceiving and implementing this application, the inventors found that when conducting a search, it is mainly based on fixed words or similar words to obtain search results.
[0003] This search method is relatively single, affecting the accuracy and comprehensiveness of the search results.
[0004] The foregoing description is for the purpose of providing general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] In view of the above technical problems, this application provides a processing method, a terminal device, a storage medium, and a program product, enabling users to obtain comprehensive and accurate search results and enhancing the user experience.
[0006] To solve the above technical problems, this application provides a processing method, including:
[0007] S10: Extract multiple event feature information corresponding to the target search information;
[0008] S20: Search in the file library based on the multiple event feature information and output the search results.
[0009] Optionally, S10 includes:
[0010] Process the target search information according to a preset information processing model to obtain the multiple event feature information.
[0011] Optionally, S20 includes at least one of the following:
[0012] Obtain the attribute information of at least one file in the file library;
[0013] Determine the target attribute information that matches the multiple event feature information according to the attribute information of the at least one file;
[0014] Output the search results based on the target file corresponding to the target attribute information.
[0015] Optionally, determining the target attribute information that matches the multiple event feature information according to the attribute information of the at least one file includes at least one of the following:
[0016] Perform a first matching process on the multiple pieces of event feature information and the attribute information of the at least one file to obtain a first matching result;
[0017] If it is determined that there is a target matching result in the first matching result that meets the target requirements, then determine the target attribute information based on the attribute information indicated by the target matching result.
[0018] Optionally, determining the target attribute information that matches the multiple pieces of event feature information according to the attribute information of the at least one file includes at least one of the following:
[0019] Perform a first matching process on each of the multiple pieces of event feature information and the attribute information of the at least one file to obtain a first matching result;
[0020] If it is determined that there is no target matching result in the first matching result that meets the target requirements, then perform a second matching process on the multiple pieces of event feature information and the attribute information of the at least one file to obtain a second matching result;
[0021] Based on the first matching result and the second matching result, determine the matching scores corresponding to the attribute information of each file;
[0022] Based on the matching scores, determine the target attribute information.
[0023] Optionally, it further includes:
[0024] Extract multiple file feature information of the file to be stored, and store the file to be stored based on the multiple file feature information.
[0025] Optionally, it further includes at least one of the following:
[0026] The event feature information includes event key information and / or event description information;
[0027] The event key information includes at least one of person information, time information, and location information; the event description information indicates the description information corresponding to the person information.
[0028] This application also provides a processing device, including:
[0029] An information extraction unit for extracting multiple pieces of event feature information corresponding to the target search information;
[0030] A file search unit for searching in a file library based on the multiple pieces of event feature information and outputting a search result.
[0031] The present application also provides a terminal device, including: a memory and a processor. Wherein, a processing program is stored on the memory, and when the processing program is executed by the processor, the steps of the above method are implemented.
[0032] The present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0033] The present application also provides a computer program product, including computer program code; when the computer program code is executed by a processor, the steps of the above method are implemented.
[0034] As described above, the processing method of the present application includes the steps: S10: Extract a plurality of event feature information corresponding to the target search information; S20: Search in the file library based on the plurality of event feature information and output the search result. Through the above technical solution, it is possible to search by extracting a plurality of event feature information corresponding to the target search information and according to the plurality of event feature information, avoiding the problems of low search accuracy and limited search ability caused by the singularity and one-sidedness of the target search information, thereby improving the comprehensiveness, accuracy and efficiency of the search result. At the same time, it can also avoid the problem that when the target search information input by the user is inaccurate, it is necessary to search multiple times to obtain the desired search result, further improving the search efficiency and the user's search experience. Description of the Drawings
[0035] The drawings here are incorporated into the specification and form a part of the specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0036] Figure 1 Schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application;
[0037] Figure 2 Schematic diagram of a communication network system architecture provided by an embodiment of the present application;
[0038] Figure 3 Schematic diagram of the flow of a processing method provided by the first embodiment of the present application;
[0039] Figure 4 Schematic diagram of the flow of a processing method provided by the second embodiment of the present application;
[0040] Figure 5A schematic flowchart of a processing method provided by the third embodiment of the present application;
[0041] Figure 6 A schematic flowchart of a processing method provided by the fourth embodiment of the present application;
[0042] Figure 7 A schematic implementation flowchart of a processing method provided by the fifth embodiment of the present application;
[0043] Figure 8 A schematic structural diagram of a processing device provided by the sixth embodiment of the present application.
[0044] The implementation, functional features, and advantages of the present application will be further described in conjunction with the embodiments with reference to the accompanying drawings. Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0045] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0046] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article, or device including that element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined based on their explanations in the specific embodiments or further in combination with the context of the specific embodiments.
[0047] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining". Furthermore, as used in this document, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising", "including" indicate the presence of the stated features, steps, operations, elements, components, items, kinds, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" used in this application may be interpreted inclusively, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C". An exception to this definition occurs only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0048] It should be understood that although the steps in the flowcharts in the embodiments of this application are shown sequentially according to the indication of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, the execution of these steps has no strict order limit and may be executed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and their execution order is not necessarily sequential, but may be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0049] Depending on the context, the words "if", "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".
[0050] It should be noted that in this document, step codes such as S10 and S20 are used. The purpose is to more clearly and briefly express the corresponding content, and it does not constitute a substantial limitation in terms of sequence. Those skilled in the art may execute S20 first and then S10 during specific implementation, etc., but all of these should be within the protection scope of this application.
[0051] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0052] In subsequent descriptions, suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of explaining this application, and they have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.
[0053] The terminal device can be implemented in various forms. For example, the terminal devices described in this application can include terminal devices such as mobile phones, tablet computers, laptop computers, palmtop computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0054] In the subsequent description, a mobile terminal will be used as an example for illustration. Those skilled in the art will understand that, except for elements specifically for mobile purposes, the structure according to the embodiments of this application can also be applied to fixed-type terminals.
[0055] Please refer to Figure 1 , Figure 1 FIG. is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of this application. The mobile terminal 100 may include components such as a radio frequency (RF) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art can understand that Figure 1 the mobile terminal structure shown in
[0056] does not limit the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 1 The following specifically introduces each component of the mobile terminal:
[0057] The radio frequency unit 101 can be used for receiving and transmitting information or signals during communication. Specifically, after receiving the downlink information from the base station, it is processed by the processor 110. Additionally, it sends the uplink data to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low-noise amplifiers, duplexers, etc. Moreover, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), 5G, and 6G, etc.
[0058] WiFi belongs to short-distance wireless transmission technology. The mobile terminal can help users send and receive emails, browse the web, and access streaming media through the WiFi module 102, providing users with wireless broadband Internet access. Although Figure 1 the WiFi module 102 is shown, it can be understood that it is not an essential component of the mobile terminal and can be omitted entirely within the scope of not changing the essence of the invention as needed.
[0059] The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in call signal reception mode, call mode, recording mode, voice recognition mode, broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to specific functions executed by the mobile terminal 100 (such as call signal reception sound, message reception sound, etc.). The audio output unit 103 can include speakers, buzzers, etc.
[0060] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes the image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage media) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in operating modes such as a phone call mode, a recording mode, a voice recognition mode, etc., and can process such sounds into audio data. The processed audio (voice) data can be output in a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in the case of the phone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) the noise or interference generated during the reception and transmission of audio signals.
[0061] The mobile terminal 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used in applications for identifying the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be elaborated here.
[0062] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc.
[0063] The user input unit 107 can be used to receive input numeric or character information and generate key signal inputs related to the user settings and function control of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel 1071), and drive the corresponding connection device according to a preset program. The touch panel 1071 can include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 110, and can receive and execute the commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc., and specific details are not limited here.
[0064] Optionally, the touch panel 1071 may cover the display panel 1061. After the touch panel 1071 detects a touch operation on or near it, it transmits the operation to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in Figure 1 the touch panel 1071 and the display panel 1061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, and specific details are not limited here.
[0065] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 108 can be used to receive inputs from an external device (such as data information, power, etc.) and transmit the received inputs to one or more components within the mobile terminal 100 or can be used to transmit data between the mobile terminal 100 and the external device.
[0066] The memory 109 can be used to store software programs and various data. The memory 109 mainly includes a program storage area and a data storage area. Optionally, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 109 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0067] The processor 110 is the control center of the mobile terminal, connecting various parts of the entire mobile terminal through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling the data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby monitoring the mobile terminal as a whole. The processor 110 can include one or more processing units; preferably, the processor 110 can integrate an application processor and a modulation and demodulation processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modulation and demodulation processor mainly processes wireless communication. It can be understood that the above modulation and demodulation processor may not be integrated into the processor 110.
[0068] The mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to each component. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
[0069] Although Figure 1 not shown, the mobile terminal 100 can also include a Bluetooth module, etc., which will not be elaborated here.
[0070] To facilitate understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based will be described below.
[0071] Please refer to Figure 2 , Figure 2 which is an architecture diagram of a communication network system provided by an embodiment of the present application. This communication network system is an LTE system of the general mobile communication technology. This LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an operator's IP service 204 that are communicatively connected in sequence.
[0072] Optionally, the UE 201 may be the aforementioned terminal 100, which will not be elaborated here.
[0073] The E-UTRAN 202 includes an eNodeB 2021 and other eNodeBs 2022, etc. Optionally, the eNodeB 2021 may be connected to other eNodeBs 2022 through a backhaul (e.g., the X2 interface), the eNodeB 2021 is connected to the EPC 203, and the eNodeB 2021 may provide access for the UE 201 to the EPC 203.
[0074] The EPC 203 may include a Mobility Management Entity (MME) 2031, a Home Subscriber Server (HSS) 2032, other MMEs 2033, a Serving Gateway (SGW) 2034, a PDN Gateway (PGW) 2035, a Policy and Charging Rules Function (PCRF) 2036, etc. Optionally, the MME 2031 is a control node that processes the signaling between the UE 201 and the EPC 203 and provides bearer and connection management. The HSS 2032 is used to provide some registers to manage functions such as a home location register (not shown in the figure) and stores some user-specific information such as service characteristics and data rates. All user data can be sent through the SGW 2034. The PGW 2035 may provide IP address allocation for the UE 201 and other functions. The PCRF 2036 is a policy and charging control policy decision point for service data flows and IP bearer resources, and it selects and provides available policy and charging control decisions for a policy and charging enforcement function unit (not shown in the figure).
[0075] The IP service 204 may include the Internet, an intranet, an IP Multimedia Subsystem (IMS), or other IP services, etc.
[0076] Although the above has been described by taking the LTE system as an example, those skilled in the art should be aware that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (such as 6G), etc., which are not limited here.
[0077] Based on the above mobile terminal hardware structure and communication network system, various embodiments of this application are proposed.
[0078] The first embodiment
[0079] Please refer to Figure 3 , Figure 3 , which is a schematic flowchart of a processing method provided by the first embodiment of this application. As Figure 3 shown, the processing method includes the following steps:
[0080] S10: Extract multiple event feature information corresponding to the target search information.
[0081] In the embodiment of this application, files stored in advance can be searched according to the search information (for example, the target search information). For example, video files, audio files, document files, etc. stored in advance can be searched.
[0082] In the related art, when searching for files according to the search information, mainly text search is performed. At this time, the files matching the search information can be determined by matching the text corresponding to the search information or performing semantic understanding, and the search results are obtained. This implementation depends on the accuracy of the text corresponding to the search information, and it is easy to affect the accuracy and comprehensiveness of the search results.
[0083] Based on this, the embodiment of this application provides a processing method, which can search according to multiple event feature information corresponding to the target search information to obtain the search results.
[0084] Among them, the target search information can be understood as the search information input by the user. In the embodiment of this application, the target search information can be text information, audio information, etc. The type of the target search information is not limited here.
[0085] Optionally, the event feature information may include event key information and / or event description information.
[0086] Optionally, the event key information may include at least one of person information, time information, and location information.
[0087] Optionally, the event description information indicates the description information corresponding to the person information.
[0088] Optionally, the person information may indicate the person involved in the file to be searched. For example, the person information may be "me", or "me and my grandfather", etc.
[0089] Optionally, the time information may indicate the time related to the file to be searched, for example, the file storage time. At this time, the time information may be a specific year, month, and day, such as "2021", "September 2021", etc. Or, the time information may also be words that can determine the time, such as "last year", "the year before last", etc.
[0090] Optionally, the location information may indicate the location involved in the file to be searched. At this time, the location information may indicate a specific location or a location including certain landmark information. For example, the location information may be "Huangshan Mountain", "riverside", "tower", etc.
[0091] Optionally, the voice event corresponds to the type of voice feature. At this time, the description information corresponding to the person information indicated by the event description information at least includes the voice event and voice feature of the person indicated by the person information. Among them, the voice features may include, but are not limited to: information such as the accent of the person, the age of the person, the gender of the person, the voiceprint of the person, etc. At this time, the corresponding voice events may be accent events, age events, gender events, voiceprint events, etc.
[0092] At this time, according to the event key information and event description information corresponding to the target search information, multiple event feature information corresponding to the target search information can be determined, so that more abundant information can be extracted from the target search information, which helps to improve the accuracy and comprehensiveness of the search results. At the same time, by including the description information corresponding to the person information in the event feature information, not only can voice search for files be realized, making the search more diverse and efficient, but also the problem of unfriendly search results caused by accentuation, incomplete search information, etc. can be avoided.
[0093] S20: Search in the file library based on multiple event feature information and output the search results.
[0094] Through the technical solution of this embodiment, by extracting multiple event feature information corresponding to the target search information and performing a search based on the multiple event feature information, it is possible to first extract richer content contained in the target search information, and then perform a search, avoiding the problems of low search accuracy and limited search ability caused by the singularity and one-sidedness of the target search information, thereby improving the comprehensiveness, accuracy, and efficiency of the search results. At the same time, it can also avoid the problem that when the target search information input by the user is inaccurate, multiple searches are required to obtain the desired search results, further improving the search efficiency and enhancing the user's search experience.
[0095] Second Embodiment
[0096] Based on the above first embodiment, the second embodiment of the present application is proposed. Please refer to Figure 4 ,Figure 4 This is a flowchart of a processing method provided in the second embodiment of the present application. This embodiment elaborates on step S10 in the above first embodiment: extracting multiple event feature information corresponding to the target search information. As Figure 4 shown, the method includes the following steps:
[0097] S101: Process the target search information according to a preset information processing model to obtain multiple event feature information.
[0098] Optionally, the preset information processing model can be determined according to the type of the target search information.
[0099] Exemplarily, if the target search information is of text type, then the preset information processing model can be a text processing model. For example, this text processing model can be a large language model. At this time, the summary or keywords, and voice events of the target search information can be extracted according to the large language model, and the event key information can be determined according to the extracted summary or keywords, and the event description information can be determined according to the extracted voice events, so as to obtain multiple event feature information.
[0100] For example, if the text content corresponding to the text-type target search information is: "The video taken with my grandfather in Huangshan the year before last", then, according to the above text processing model, the event key information included in the multiple event feature information corresponding to this target search information is: 2023 (assuming this year is 2025, then the year before last can be determined as 2023), me and my grandfather, Huangshan; the event description information included in the multiple event feature information is: the voiceprints of me and my grandfather.
[0101] Exemplarily, if the target search information is of audio type, then the preset information processing model can be an audio processing model. At this time, the audio processing model can include a speech recognition model, a multi-modal information extraction model, and a text processing model. Among them, the speech recognition model is used to determine the text content corresponding to the audio-type target search information, the multi-modal information extraction model can be used to extract the speech features corresponding to the target search information, and the text processing model is used to extract the summary or keywords, and voice events of the text content, so that multiple event feature information can be obtained according to the summary or keywords, speech features, and voice events.
[0102] For example, if the audio content corresponding to the audio-type target search information is: "All the videos taken by me and my partner in 2023", then, according to the above audio processing model, the event key information included in the multiple event feature information corresponding to this target search information is: 2023, me and my partner; the event description information included in the multiple event feature information is: the voiceprints of me and my partner.
[0103] Through the technical solution of this embodiment, different types of target search information can be processed according to a preset information processing model to obtain multiple event feature information, so that searching can be realized according to different types of target search information. For example, searching can be performed according to target search information of text type or audio type, making the processing method more flexible, diverse, and convenient, thereby improving the user's search experience.
[0104] The third embodiment
[0105] Based on the above first embodiment, the third embodiment of this application is proposed. Please refer to Figure 5 , Figure 5 which is a schematic flowchart of a processing method provided for the third embodiment of this application. In this embodiment, step S20 in the above first embodiment: searching in the file library based on multiple event feature information and outputting a search result is described in detail. As Figure 5 shown, the method includes at least one of the following steps:
[0106] S201: Obtain the attribute information of at least one file in the file library.
[0107] Optionally, at least one file can be pre-stored in the file library. At this time, each pre-stored file can have corresponding attribute information. At this time, the attribute information of the file can be used to determine the specific content included in the pre-stored file. At this time, file search can be performed according to the file attribute information, thereby ensuring the accuracy of the search result.
[0108] Exemplarily, the attribute information of the file can include multiple attribute contents. At this time, the attribute content can indicate the person information, time information, location information, event description information, etc. included in the pre-stored file.
[0109] S202: Determine the target attribute information that matches the multiple event feature information according to the attribute information of at least one file.
[0110] Optionally, the target attribute information that matches the multiple event feature information can be determined by calculating the matching degree between the attribute information of the file and the multiple event feature information.
[0111] In specific implementation, the matching degree between the attribute information of the file and the multiple event feature information can be determined by calculating the matching degree between each attribute content included in the attribute information of the file and the corresponding event feature information. At this time, the attribute information that meets the requirements of the matching degree can be determined as the target attribute information.
[0112] S203: Output a search result based on the target file corresponding to the target attribute information.
[0113] At this time, the number of files corresponding to the search results can be N, where N is a natural number greater than or equal to 0.
[0114] Optionally, in the case where the search results correspond to multiple files, after sorting according to the matching degree between the target attribute information and multiple event feature information, the search results can be output.
[0115] Alternatively, in the case where the search results correspond to multiple files, the multiple files can also be sorted according to the time sequence, the most recently viewed sequence, etc., and then the search results can be output.
[0116] Optionally, the output search results can include: specific files, and / or, the addresses where the files are located, so that users can directly view the files according to the search results, or jump to the addresses where the files are located to view the files.
[0117] Optionally, the output search results can also include the types of files, the sizes of files, etc. There is no limitation on the content included in the output search results, and it is subject to actual needs.
[0118] This implementation method can determine the target attribute information that matches multiple event feature information according to the attribute information of the files, and can make the determined target attribute information more comprehensive and accurate with the target search information. Therefore, when determining the target files according to the target attribute information and obtaining the search results, the determined search results are more comprehensive and accurate, avoiding omissions while improving the accuracy.
[0119] In a possible implementation method, when determining the target attribute information that matches multiple event feature information according to the attribute information of at least one file, the multiple event feature information can be subjected to a first matching process with the attribute information of at least one file to obtain a first matching result.
[0120] Optionally, the first matching process can be understood as a process of precise matching. At this time, the similarity between the attribute content included in the attribute information of each file and the corresponding event feature information can be calculated to implement the first matching process, thereby obtaining the first matching result. At this time, the first matching result includes the similarity between the attribute information of each file and multiple event feature information.
[0121] Exemplarily, if the event key information included in the determined multiple event feature information is the above: 2023, me and my grandfather, Huangshan; and the event description information included in the multiple event feature information is the above: the voiceprints of me and my grandfather, then, when performing precise matching, first, videos from 2023 and located in Huangshan can be determined according to the attribute information of the files. Then, among the videos from 2023 in Huangshan, match the attribute information that simultaneously includes the voiceprints of me and my grandfather. That is, calculate the similarity between the voiceprint information included in the attribute information of each file and my voiceprint information, as well as my grandfather's voiceprint information, so as to obtain the first matching result.
[0122] After that, it can be determined whether there is a target matching result that meets the target requirements in the first matching result, so as to determine the target attribute information. Among them, the target requirements can be understood as that the similarity between the file attribute information and multiple event features meets the similarity threshold requirements.
[0123] Optionally, if it is determined that there is a target matching result that meets the target requirements in the first matching result, then based on the attribute information indicated by the target matching result, the target attribute information is determined.
[0124] This implementation method can directly determine the target attribute information when the attribute information and multiple event feature information meet the similarity requirements, so as to determine the search result, and thus directly output the most accurate search result, avoiding the interference of other search results and facilitating the user to view the search result.
[0125] In another implementation method, after the first matching result is determined according to the above process, if it is determined that there is no target matching result that meets the target requirements in the first matching result, then based on the multiple event feature information and the attribute information of at least one file, a second matching process is performed to obtain a second matching result. Then, based on the first matching result and the second matching result, the matching scores corresponding to the attribute information of each file are determined. Finally, based on the matching scores, the target attribute information is determined.
[0126] Optionally, the second matching process can be understood as a fuzzy matching process. At this time, a fuzzy matching process can be performed on the attribute information of each file and the multiple event feature information, so as to obtain the second matching result. At this time, the second matching result includes the fuzzy matching degree between the attribute information of each file and the multiple event feature information.
[0127] Optionally, when performing fuzzy matching on the attribute information of the file and the multiple event feature information, the search intention of the user can be determined first according to the multiple event feature information, and according to this search intention, fuzzy matching is performed on the attribute information of the file. Among them, the search intention of the user can be determined according to the event key information.
[0128] Exemplarily, if the event key information included in the determined multiple event feature information is the above: 2023, me and my grandfather, Huangshan; and the event description information included in the multiple event feature information is the above: the voiceprints of me and my grandfather. Then, in the case where the voiceprint information of the grandfather is not identified in the attribute information of the file, fuzzy matching can be performed. At this time, it can be determined that the user's search intention is to search for the video taken by me and my grandfather in Huangshan in 2023. At this time, the to-be-matched videos including me and at least one other person can be determined from the videos in Huangshan in 2023, and the age corresponding to the voiceprint information can be predicted, so as to determine the fuzzy matching degree between the attribute information of the file and the multiple event feature information according to the age prediction result, and obtain the second matching result.
[0129] At this time, after the first matching result and the second matching result are determined, the respective attribute contents included in the attribute information of the file in the first matching result can be weighted and summed with the corresponding event feature information to obtain the matching score corresponding to the attribute information of the file under the first matching result. At the same time, the matching results between the attribute contents included in the attribute information of the file in the second matching result and the corresponding event feature information are weighted and summed to obtain the matching score corresponding to the attribute information of the file under the second matching result.
[0130] After that, the attribute information whose matching score meets the requirements can be determined as the target attribute information.
[0131] Through the technical solution of this embodiment, in the case where the accurate target attribute information (i.e., the search result) cannot be determined, the target attribute information that most conforms to the user's search intention can be determined by means of fuzzy matching to determine the search result, which improves the determination direction of the search result and helps the user search for the expected search result.
[0132] Fourth Embodiment
[0133] Based on any of the above embodiments, the fourth embodiment of the present application is proposed. Please refer to Figure 6 , Figure 6 which is a schematic flowchart of a processing method provided by the fourth embodiment of the present application. As Figure 6 shown, the method includes the following steps:
[0134] S30: Extract multiple file feature information of the file to be stored, and store the file to be stored based on the multiple file feature information.
[0135] Optionally, the file to be stored can be audio data, video data, document data, etc. The type of the file to be stored is not limited here, and it is subject to actual needs.
[0136] Optionally, before extracting multiple file feature information of the file to be stored, preprocessing operations can be performed on the file to be stored first. For example, the preprocessing operations can include, but are not limited to, noise reduction, typo correction, etc., to improve the accuracy of subsequent searches.
[0137] Optionally, multiple file feature information of the file to be stored can be extracted according to a preset information processing model that matches the type of the file to be stored. Among them, the process of extracting file feature information is the same as the process of extracting event feature information corresponding to the above-mentioned target search information, which will not be elaborated here in detail.
[0138] Optionally, after extracting multiple file feature information of the file to be stored, the multiple file feature information and the file to be stored can be stored together, or the multiple file feature information can be stored separately as an attachment. The storage method of the file feature information is not limited here.
[0139] Compared with the method of storing files only according to the fixed entries determined by the size of the file and the key information corresponding to the file, this implementation method can not only save more comprehensive information of the file, but also make the storage of the file more flexible, so as to realize more flexible searches without being limited to keyword searches, improving the flexibility of searches and the search experience of users.
[0140] Optionally, after storing the file to be stored, the stored file and the attribute information corresponding to the file can be obtained. At this time, the attribute information of the file includes the above-mentioned file feature information. For example, in addition to the above-mentioned file feature information, the file attribute information can also include the name of the file, the size of the file, the file storage time, the file type, the file author, etc. Then, the steps described in S10 and S20 below can be followed to search for the required file from the stored files.
[0141] S10: Extract multiple event feature information corresponding to the target search information.
[0142] Optionally, this step can refer to the content of S10 described in any of the above embodiments, which will not be elaborated here in detail.
[0143] S20: Search in the file library based on multiple event feature information and output the search results.
[0144] Optionally, this step can refer to the content of S20 described in any of the above embodiments, which will not be elaborated here in detail.
[0145] The Fifth Embodiment
[0146] Based on any of the above embodiments, the fifth embodiment of this application is proposed. Please refer to Figure 7 , Figure 7The following is a schematic flowchart of a processing method provided by the fifth embodiment of this application. As shown in Figure 7 the figure, this processing method mainly includes two parts. One part is for users to store files, and the other part is for users to search for files. When a user stores a file, after determining the file to be stored (for example, a newly recorded video file / audio file, etc.), multiple file feature information of the file to be stored can be extracted (for example, including but not limited to: the abstract or keywords corresponding to the audio text, voiceprint information, accent information, age information, gender information, time information, location information, person information, etc.). After that, the file to be stored and the file feature information are stored.
[0147] When a user searches for a file, multiple event feature information corresponding to the target search information can be extracted according to the target search information input by the user. After that, according to the matching degree between the event feature information and the attribute information of the stored files, the target attribute information is determined (for specific details, please refer to the content described in the above third embodiment, which will not be elaborated here in detail). Furthermore, the search result is determined and output for the user to select.
[0148] Sixth Embodiment
[0149] Based on any of the above embodiments, the sixth embodiment of this application is proposed. Please refer to Figure 8 , Figure 8 The following is a schematic structural diagram of a processing device provided by the sixth embodiment of this application. As shown in Figure 8 the figure, this processing device 80 includes:
[0150] An information extraction unit 801, configured to extract multiple event feature information corresponding to the target search information.
[0151] A file search unit 802, configured to search in the file library based on the multiple event feature information and output the search result.
[0152] Optionally, the information extraction unit 801 is configured to:
[0153] Process the target search information according to a preset information processing model to obtain multiple event feature information.
[0154] Optionally, the file search unit 802 is configured to:
[0155] Obtain the attribute information of at least one file in the file library;
[0156] Determine the target attribute information that matches the multiple event feature information according to the attribute information of at least one file;
[0157] Output the search result based on the target file corresponding to the target attribute information.
[0158] Optionally, the file search unit 802 is configured to:
[0159] Perform a first matching process on multiple event feature information and the attribute information of at least one file to obtain a first matching result;
[0160] If it is determined that there is a target matching result in the first matching result that meets the target requirements, determine the target attribute information based on the attribute information indicated by the target matching result.
[0161] Optionally, the file search unit 802 is configured to:
[0162] Perform a first matching process on multiple event feature information and the attribute information of at least one file to obtain a first matching result;
[0163] If it is determined that there is no target matching result in the first matching result that meets the target requirements, perform a second matching process on multiple event feature information and the attribute information of at least one file to obtain a second matching result;
[0164] Determine the matching scores corresponding to the attribute information of each file based on the first matching result and the second matching result;
[0165] Determine the target attribute information based on the matching scores.
[0166] Optionally, the device is further configured to:
[0167] Extract multiple file feature information of the file to be stored and store the file to be stored based on the multiple file feature information.
[0168] Optionally, the event feature information includes event key information and / or event description information;
[0169] The event key information includes at least one of person information, time information, and location information;
[0170] The event description information indicates the description information corresponding to the person information.
[0171] This application also provides a terminal device. The terminal device includes a memory and a processor. A processing program is stored on the memory. When the processing program is executed by the processor, the steps of the processing method in any of the above embodiments are implemented.
[0172] This application also provides a storage medium. A computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the processing method in any of the above embodiments are implemented.
[0173] In the embodiments of the terminal device and storage medium provided in this application, all the technical features of any of the above-described method embodiments may be included. The content of the specification expansion and explanation is basically the same as that of the above method embodiments, and will not be repeated here.
[0174] The embodiments of this application also provide a computer program product. The computer program product includes computer program code, and when the computer program code is executed by a processor, the methods in the above various possible embodiments are implemented.
[0175] The embodiments of this application also provide a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the methods in the above various possible embodiments.
[0176] It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, as known to those of ordinary skill in the art, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0177] The serial numbers of the above embodiments of this application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0178] The steps in the method embodiments of this application can be adjusted, combined, and deleted according to actual needs.
[0179] The units in the device embodiments of this application can be combined, divided, and deleted according to actual needs.
[0180] In this application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only a detailed description is made when it appears for the first time. When it appears repeatedly later, for the sake of brevity, it is generally not repeated. When understanding the technical solutions and other contents of this application, for the same or similar term concepts, technical solutions, and / or application scenarios that are not described in detail later, reference can be made to the relevant detailed descriptions before.
[0181] In this application, the descriptions of the various embodiments have their own emphases. For the parts not described in detail or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0182] The technical features of the technical solutions of this application can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not conflict, it should be considered within the scope recorded in this application.
[0183] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of the present application.
[0184] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (for example, floppy disk, storage disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, solid state disk (SSD)), etc.
[0185] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A processing method, characterized in that, Including: S10: Extract multiple event feature information corresponding to the target search information; S20: Search in the file library based on the multiple event feature information and output the search result.
2. The method according to claim 1, characterized in that, The S10 includes: Process the target search information according to a preset information processing model to obtain the multiple event feature information.
3. The method according to claim 1, wherein The S20 includes at least one of the following: Obtain the attribute information of at least one file in the file library; Determine the target attribute information that matches the multiple event feature information according to the attribute information of the at least one file; Output the search result based on the target file corresponding to the target attribute information.
4. The method according to claim 3, wherein Determining the target attribute information that matches the multiple event feature information according to the attribute information of the at least one file includes at least one of the following: Perform a first matching process on the multiple event feature information and the attribute information of the at least one file to obtain a first matching result; If it is determined that there is a target matching result that meets the target requirements in the first matching result, then determine the target attribute information based on the attribute information indicated by the target matching result.
5. The method according to claim 3, wherein Determining the target attribute information that matches the multiple event feature information according to the attribute information of the at least one file includes at least one of the following: Perform a first matching process on the multiple event feature information and the attribute information of the at least one file to obtain a first matching result; If it is determined that there is no target matching result that meets the target requirements in the first matching result, then perform a second matching process on the multiple event feature information and the attribute information of the at least one file to obtain a second matching result; Determine the matching scores corresponding to the attribute information of each file based on the first matching result and the second matching result; Determine the target attribute information based on the matching scores.
6. The method according to claim 1, wherein It also includes: S30: Extract multiple file feature information of the file to be stored and store the file to be stored based on the multiple file feature information.
7. The method according to any one of claims 1 to 6, characterized in that, It also includes at least one of the following: The event feature information includes event key information and / or event description information; The event key information includes at least one of person information, time information, and location information; The event description information indicates the description information corresponding to the person information.
8. A terminal device, characterized in that, The terminal device includes: a memory and a processor. Among them, a processing program is stored on the memory, and when the processing program is executed by the processor, the steps of the processing method described in any one of claims 1 to 7 are implemented.
9. A storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the processing method described in any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that, Including computer program code; when the computer program code is executed by a processor, the steps of the processing method described in any one of claims 1 to 7 are implemented.