WO2021254046A1 - Information query method and device - Google Patents

Information query method and device Download PDF

Info

Publication number
WO2021254046A1
WO2021254046A1 PCT/CN2021/093570 CN2021093570W WO2021254046A1 WO 2021254046 A1 WO2021254046 A1 WO 2021254046A1 CN 2021093570 W CN2021093570 W CN 2021093570W WO 2021254046 A1 WO2021254046 A1 WO 2021254046A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
target
weather
target time
information
Prior art date
Application number
PCT/CN2021/093570
Other languages
French (fr)
Chinese (zh)
Inventor
林雅婷
申冬
胡胜男
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2021254046A1 publication Critical patent/WO2021254046A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Definitions

  • the present disclosure relates to the technical field of information query, and in particular, to an information query method and device.
  • the embodiments of the present disclosure provide at least one information query method and device.
  • embodiments of the present disclosure provide an information query method, including:
  • the parsing the target time indication information in the weather search request includes:
  • the keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
  • the determining the target time indicated by the target time indication information includes:
  • the target time calculation method corresponds to the time keyword matched by the target time indication information
  • the target time indicated by the target time indication information is determined.
  • the determining the target time indicated by the target time indication information includes:
  • the weather search request carries location information
  • the acquiring target weather information corresponding to the target time includes:
  • the generating a search result card corresponding to the search request based on the target time and the target weather information includes:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the generating the search result card corresponding to the search request according to the search result card style based on the target weather information includes:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • determining the search result card style according to the time interval includes:
  • the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
  • the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target
  • the weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
  • the embodiments of the present disclosure also provide an information query method, including:
  • the weather search request includes target time indication information
  • the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the target time and The time interval between the current time is determined;
  • the card style of the search card is determined according to the time interval between the target time and the current time, including:
  • the search result card corresponds to a first card style;
  • the first card style displays the first card style that includes the target time Weather information for the time period;
  • the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
  • the first card style includes a first display area and a second display area
  • the target weather information of the target time is displayed in the first display area
  • the target weather information at the target time is displayed in the second display area.
  • the weather information of the first time period including the target time is displayed in the form of a broken line.
  • the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
  • the embodiments of the present disclosure also provide an information query device, including:
  • Obtaining module used to obtain weather search request
  • a determining module configured to parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information
  • the card generation module is configured to obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
  • the determining module is configured to: when parsing the target time indication information in the weather search request:
  • the keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
  • the determining module is configured to: when determining the target time indicated by the target time indication information:
  • the target time calculation method corresponds to the time keyword matched by the target time indication information
  • the target time indicated by the target time indication information is determined.
  • the determining module is configured to: when determining the target time indicated by the target time indication information:
  • the weather search request carries location information
  • the card generation module when acquiring target weather information corresponding to the target time, is used to:
  • the card generation module is configured to: when generating a search result card corresponding to the search request based on the target time and the target weather information:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the card generation module when the card generation module generates a search result card corresponding to the search request according to the search result card style based on the target weather information, it is used to:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the card generation module is used to: when determining the search result card style according to the time interval:
  • the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
  • the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target
  • the weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
  • an embodiment of the present disclosure also provides an information query device, including:
  • the receiving module is configured to receive a weather search request; the weather search request includes target time indication information;
  • the obtaining module is used to obtain a search result card corresponding to the weather search request;
  • the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on The time interval between the target time and the current time is determined;
  • the display module is used to display the search result card on the search result page.
  • the card style of the search card is determined according to the time interval between the target time and the current time, including:
  • the search result card corresponds to a first card style;
  • the first card style displays the first card style that includes the target time Weather information for the time period;
  • the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
  • the first card style includes a first display area and a second display area
  • the target weather information of the target time is displayed in the first display area
  • the target weather information at the target time is displayed in the second display area.
  • the weather information of the first time period including the target time is displayed in the form of a broken line.
  • the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
  • embodiments of the present disclosure also provide a computer device, including a processor, a memory, and a bus.
  • the memory stores machine-readable instructions executable by the processor.
  • the processing communicates with the memory through a bus.
  • the machine-readable instructions are executed by the processor, the above-mentioned first aspect or the steps in any one of the possible implementations of the first aspect are executed, or the above-mentioned first aspect is executed.
  • the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the first aspect or any of the first aspects when the computer program is run by a processor.
  • the target time indicated by the target time indication information can be automatically determined according to the target time indication information in the acquired weather search request, and then the target weather information corresponding to the target time is obtained, And it is displayed on the search result page in the form of a search result card. In this way, the user does not need to manually search for specific time information, which simplifies the query steps for weather information and improves the query efficiency.
  • FIG. 1 shows a flowchart of an information query method provided by an embodiment of the present disclosure
  • Figure 2 shows a flowchart of a neural network training method provided by an embodiment of the present disclosure
  • FIG. 3 shows a schematic diagram of a weather information display page provided by an embodiment of the present disclosure
  • FIG. 4 shows a schematic diagram of another weather information display page provided by an embodiment of the present disclosure
  • FIG. 5 shows a schematic diagram of another weather information display page provided by an embodiment of the present disclosure
  • FIG. 6 shows a schematic flowchart of another information query method provided by an embodiment of the present disclosure
  • FIG. 7 shows a schematic structural diagram of an information query device provided by an embodiment of the present disclosure
  • FIG. 8 shows a schematic structural diagram of another information query device provided by an embodiment of the present disclosure.
  • FIG. 9 shows a schematic structural diagram of a computer device 900 provided by an embodiment of the present disclosure.
  • FIG. 10 shows a schematic structural diagram of a computer device 1000 provided by an embodiment of the present disclosure.
  • users In related technologies, users generally need to manually select the date on which the weather needs to be checked when making weather queries, and then the corresponding weather information can be queried. If the time interval between the date when the weather needs to be checked and the current date is long, the user queries Need to check the weather date will waste a certain amount of time. For example, if the current date is May 1st, and the user needs to check the weather on June 10th, the user needs to manually search for the weather information on June 10th. During this period, a certain amount of time will be wasted. Therefore, the operation of this method is more complicated and the query efficiency is lower.
  • the embodiments of the present disclosure provide an information query method and device, which can automatically determine the target time indicated by the target time indication information according to the target time indication information in the acquired weather search request, and then obtain the target time corresponding to the target time.
  • the target weather information is displayed on the search result page in the form of a search result card. In this way, the user does not need to manually search for specific time information, which simplifies the weather information query steps and improves the query efficiency.
  • FIG. 1 a flowchart of an information query method provided by an embodiment of the present disclosure is shown. Including steps 101 to 103, where:
  • Step 101 Obtain a weather search request.
  • Step 102 Parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information.
  • Step 103 Obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
  • the search information input by the user may be received first, a search request is generated based on the search information, and then it is determined whether the search request is a weather search request. For example, it can be detected whether the search request has keyword information that matches the weather keywords stored in the database, and if so, it is determined that the search request is a weather search request.
  • a search request input by the user can be received, and the search request carries the search information input by the user.
  • the search request can be word segmented to obtain at least one keyword contained in the search request, and then The keywords included in the search request are matched with the weather keywords stored in the database, and if the matching is successful, it is determined that the search request is a weather search request.
  • weather keywords may include weather, air temperature, temperature, wind direction, air quality, humidity, and the like.
  • matching the keywords contained in the search request with the weather keywords stored in the database can be to detect whether the keywords in the search request are included in the pre-stored weather keywords, or for the keywords contained in the search request. For each keyword in, the similarity between the keyword and the weather keywords stored in the database can be calculated. If any calculated similarity is greater than the preset similarity, the search request is determined as a weather search request.
  • step 102 For step 102:
  • the keywords contained in the weather search request can be determined first (for example, word segmentation processing can be performed), and then the keywords contained in the weather search request can be used respectively.
  • the included keywords are matched with pre-stored time keywords, and the successfully matched keywords are used as target time indication information.
  • the pre-stored time keywords may include time keywords in different time types, and the time types include multiple of the following types:
  • Relative time type absolute time type, holidays.
  • the preset time keyword in the relative time type indicates the relative time relationship with the current time, for example, it may include tomorrow, the day after tomorrow, the day after tomorrow, next week, the next X days, the next X weeks, etc.;
  • the forecast in the absolute time type Set the time keyword to indicate the absolute time, for example, it may include the first ten days of X month, the first week of X month, etc.;
  • the preset time keywords in the holiday type may include, for example, Mid-Autumn Festival, Dragon Boat Festival, Ching Ming Festival, Father's Day , Mother's Day, etc.
  • the target time calculation method corresponding to the time keyword matching the target time indication information may be determined first, and the target time calculation method corresponding to each time keyword may be pre-stored in the database Then, based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
  • the target time indication information is the day after tomorrow
  • the time keyword matching the target time indication information is also the day after tomorrow
  • the calculation method of the time matching the time keyword is the current date + 2
  • the current date is May 1st
  • the target time indicated by the target time indication information is May 3
  • the target time indication information is one week in the future
  • the time keyword matching the target time indication information is X weeks in the future
  • the time calculation method matching the time keyword is If the current date is +1 ⁇ current date + 7*X, and the current date is May 1, it is determined that the target time indicated by the target time indication information is May 2 to May 8.
  • the target time indication information when determining the target time indicated by the target time indication information, may also be input to a pre-trained neural network, and the output may obtain the target time indicated by the target time indication information.
  • the training method of the neural network can be parameterized as shown in Figure 2, including the following steps:
  • Step 201 Obtain sample time indication information and a time label corresponding to the sample time indication information, where the time label is the time information indicated by the sample time indication information.
  • Step 202 Input the sample time indication information into the neural network model to be trained, and output the predicted time information.
  • Step 203 Determine the loss value in this training process based on the predicted time information and the time label corresponding to the sample time indication information.
  • Step 204 Determine whether the loss value in this training process is less than a preset loss value.
  • step 205 executes step 205 in sequence
  • Step 205 Determine the neural network model used in this training process as the trained neural network model.
  • the time indication information "the day after tomorrow" can be input into the neural network model.
  • the neural network model can automatically obtain the current time during execution. If the current time is May 10 Day, the neural network model output forecast time is May 13th.
  • the weather search request may also carry location information; when the target weather information corresponding to the target time is acquired, the target weather information corresponding to the location information and the target time may be acquired.
  • the weather search request is "What's the weather like tomorrow in Beijing” and the current date is May 1, when it is detected that the weather search request includes the location information "Beijing”, when obtaining the target weather information, it is necessary to contact If "Beijing" and "May 2nd” match, the weather information of "Beijing" and "May 2nd” are obtained.
  • the weather search request information does not carry location information, but the weather search request can carry location information.
  • the target weather corresponding to the target time and location information can also be obtained. information.
  • the weather search request is "How is the weather tomorrow", the weather search request does not carry any location information, but the weather search request sent by the user to the server carries the current location information of the user (ie location information) ), the target weather information corresponding to the target time and location information can be obtained according to the current location information of the user terminal.
  • the weather search request information does not carry location information, and the weather search request does not carry the current location information of the user terminal. Therefore, when obtaining weather information, the default location and target time can be obtained. Corresponding target weather information.
  • the target weather information corresponding to the target time is determined.
  • the target weather information corresponding to different time intervals may also be different.
  • the weather information may include air quality, weather and meteorology, morning and evening temperature, wind direction, sunrise and sunset time, etc.
  • the weather information may include weather meteorology, morning and evening temperature, wind direction, sunrise and sunset time, and the like.
  • the target time indicated by the target time indication information in the weather search request is a period of time, for example, half a month in the future
  • the time interval between the last day of the period and the current time As the time interval between the target time indicated by the target time indication information and the current time.
  • the time interval between the current time and the target time may be calculated first, and then the search result may be determined according to the target time interval Card style, and based on the target weather information, the search result card corresponding to the search request is generated according to the search result card.
  • the first card style when the search result card style is determined according to the time interval, when the time interval is less than the first preset time interval, the first card style may be used as the search result card style corresponding to the time interval, wherein the first card style The weather information of the first time period including the target time is displayed in.
  • the second card style can be used as the search result card style corresponding to the time interval, wherein, The second card style displays weather information of a second time period including the target time, and the time length of the second time period is longer than the time length of the first time period. In this way, the display form of weather information can be enriched, making the display effect more intuitive.
  • the first preset time interval is one week (7 days), and if it is detected that the time indication information in the weather search request information is the day after tomorrow, the time interval from the current time is two days, which is less than the first preset time If it is detected that the time indication information in the weather search request information is half a month in the future and the time interval between the current time and the current time is 15 days, the second card will be displayed Style to display weather information for the next half month.
  • the target weather information corresponding to the target time may be displayed, and the information corresponding to the target time may be displayed at the same time. Weather information corresponding to other times than the target weather information.
  • other weather information other than the target weather information corresponding to the target time can be determined according to the time interval, and then based on the other weather information and target weather information, it is generated according to the search result card style The search result card corresponding to the search request.
  • weather search request information is "Tomorrow’s Weather" and the current date is June 12, it can be determined that the target time indicated by the time indication information is June 13, and it can be generated based on the first card style
  • the search result card corresponding to tomorrow’s weather information.
  • the displayed page can be as shown in Figure 3.
  • the weather information on June 13 is displayed at the top of the card, including temperature (minimum temperature and maximum temperature), wind direction, and air Information such as quality and weather conditions.
  • the displayed page can also display the location information corresponding to the current weather information. The user can click the location information to change the location information.
  • weather search request information is "Beijing Chaoyang District weather on weekdays this week"
  • users need to inquire about the weather on weekdays in Haidian District, Beijing, they can click on the location information to update the location information to "Haidian District, Beijing”.
  • the weather information corresponding to June 15th can display the weather information from June 11th to June 15th, including weather conditions, temperature (minimum temperature and maximum temperature), wind direction, air quality and other information, here ,
  • the first time period is from June 11th to June 15th.
  • the second card style can be used as the search result card style.
  • the displayed interface diagram can be as shown in Figure 4, showing the indication information from the current date to the time in a calendar format
  • the weather information between the indicated time, the detailed weather information of June 21 is displayed below the calendar, including weather, temperature, wind force, wind direction, sunrise and sunset time, etc.
  • weather search request information is "weather for the next 30 days" and the current date is May 13
  • the weather information for the next 30 days can be displayed in the form of a calendar.
  • the display page is shown in Figure 5, which can be displayed at the bottom of the calendar. Detailed weather information for the current time.
  • the target time indicated by the target time indication information can be automatically determined according to the target time indication information in the acquired weather search request, and then the target weather information corresponding to the target time is obtained, and passed The form of the search result card is displayed on the search result page. In this way, users do not need to manually search for specific time information, which simplifies the query steps for weather information and improves query efficiency.
  • a schematic flowchart of another information query method provided by the embodiment of the present disclosure includes the following steps:
  • Step 601 Receive a weather search request; the weather search request includes target time indication information.
  • the receiving weather search request may be receiving a weather search request input by the user.
  • a search box may be displayed on the search page of the user terminal, and the user may enter search information in the search box, and then click the search button to receive The weather search request entered by the user with search information.
  • Step 602 Obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the The time interval between the target time and the current time is determined.
  • the card style of the search card may be determined by the server or the user terminal.
  • the search result card corresponds to the first time interval.
  • the search result card corresponds to a second card style; the second card style displays weather information of a second time period including the target time, and the time length of the second time period is greater than the first time The length of the segment.
  • the first card style includes a first display area and a second display area
  • the target weather information of the target time is displayed in the first display area
  • the first time period including the target time is displayed in the form of a broken line in the second display area
  • the weather information for example, can be a card style as shown in Figure 3.
  • the second card style also includes a first display area and a second display area.
  • the weather information of the second time period including the target time is displayed in the form of a calendar in the first display area, and the weather information corresponding to the target time is displayed in the second display area.
  • Target weather information is displayed in the second display area.
  • the target weather information corresponding to the target time is the weather information of the target time, as shown in example in Figure 4, if the target time is multiple days in the future, then The target weather information corresponding to the future time may be the weather information of the day, as shown in FIG. 5 for example.
  • Step 603 Display the search result card on the search result page.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • the embodiment of the present disclosure also provides an information query device corresponding to the information query method. Since the principle of the device in the embodiment of the present disclosure to solve the problem is similar to the above-mentioned information query method of the embodiment of the present disclosure, the implementation of the device You can refer to the implementation of the method, and the repetition will not be repeated.
  • FIG. 7 it is a schematic structural diagram of an information query device provided by an embodiment of the present disclosure.
  • the device includes: an acquisition module 701, a determination module 702, and a card generation module 703; among them,
  • the obtaining module 701 is used to obtain a weather search request
  • the determining module 702 is configured to parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
  • the card generation module 703 is configured to obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
  • the determining module 702 is configured to: when parsing the target time indication information in the weather search request:
  • the keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
  • the determining module 702 is configured to: when determining the target time indicated by the target time indication information:
  • the target time calculation method corresponds to the time keyword matched by the target time indication information
  • the target time indicated by the target time indication information is determined.
  • the determining module 702 is configured to: when determining the target time indicated by the target time indication information:
  • the weather search request carries location information
  • the card generation module 703 is used to: when acquiring target weather information corresponding to the target time:
  • the card generation module 703 is configured to: when generating a search result card corresponding to the search request based on the target time and the target weather information:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the card generation module 703 when generating the search result card corresponding to the search request according to the search result card style based on the target weather information, is used to:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the card generation module 703 is used to: when determining the search result card style according to the time interval:
  • the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
  • the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target
  • the weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
  • FIG. 8 for a schematic structural diagram of another information query device provided by the embodiment of the disclosure, including a receiving module 801 and an acquiring module 802. , And the display module 803, specifically:
  • the receiving module 801 is configured to receive a weather search request; the weather search request includes target time indication information;
  • the obtaining module 802 is configured to obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card Determined according to the time interval between the target time and the current time;
  • the display module 803 is configured to display the search result card on the search result page.
  • the card style of the search card is determined according to the time interval between the target time and the current time, including:
  • the search result card corresponds to a first card style;
  • the first card style displays the first card style that includes the target time Weather information for the time period;
  • the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
  • the first card style includes a first display area and a second display area
  • the target weather information of the target time is displayed in the first display area
  • the target weather information at the target time is displayed in the second display area.
  • the weather information of the first time period including the target time is displayed in the form of a broken line.
  • the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
  • a schematic structural diagram of a computer device 900 provided in an embodiment of this application includes a processor 901, a memory 902, and a bus 903.
  • the memory 902 is used to store execution instructions, including the memory 9021 and the external memory 9022; the memory 9021 here is also called internal memory, which is used to temporarily store the calculation data in the processor 901 and the data exchanged with the external memory 9022 such as the hard disk.
  • the processor 901 exchanges data with the external memory 9022 through the memory 9021.
  • the processor 901 and the memory 902 communicate through the bus 903, so that the processor 901 executes the following instructions:
  • the parsing of the target time indication information in the weather search request includes:
  • the keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
  • the determining the target time indicated by the target time indication information includes:
  • the target time calculation method corresponds to the time keyword matched by the target time indication information
  • the target time indicated by the target time indication information is determined.
  • the determining the target time indicated by the target time indication information includes:
  • the weather search request carries location information
  • the acquiring target weather information corresponding to the target time includes:
  • the generation of the search result card corresponding to the search request based on the target time and the target weather information includes:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • the generation of the search result card corresponding to the search request according to the search result card style based on the target weather information includes:
  • a search result card corresponding to the search request is generated according to the search result card style.
  • determining the search result card style according to the time interval includes:
  • the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
  • the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target
  • the weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
  • a schematic structural diagram of a computer device 1000 provided by an embodiment of this application includes a processor 1001, a memory 1002, and a bus 1003.
  • the memory 1002 is used to store execution instructions, including memory 10021 and external memory 10022; here, the memory 10021 is also called internal memory, which is used to temporarily store the calculation data in the processor 1001 and the data exchanged with the external memory 10022 such as a hard disk.
  • the processor 1001 exchanges data with the external memory 10022 through the memory 10021.
  • the processor 1001 and the memory 1002 communicate through the bus 1003, so that the processor 1001 executes the following instructions:
  • the weather search request includes target time indication information
  • the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the target time and The time interval between the current time is determined;
  • the card style of the search card is determined according to the time interval between the target time and the current time, including:
  • the search result card corresponds to a first card style;
  • the first card style displays the first card style that includes the target time Weather information for the time period;
  • the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
  • the first card style includes a first display area and a second display area, and the target weather information at the target time is displayed in the first display area , Displaying the weather information of the first time period including the target time in the form of a broken line in the second display area.
  • the second card style in the instruction executed by the processor 1001, includes a first display area and a second display area; the first display area is displayed in a calendar format including the target time The weather information for the second time period in the second display area displays the target weather information corresponding to the target time.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, and the computer program executes the steps of the information query method described in the above method embodiment when the computer program is run by a processor.
  • the storage medium may be a volatile or nonvolatile computer readable storage medium.
  • the computer program product of the information query method provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the steps of the information query method described in the above method embodiment
  • the program code includes instructions that can be used to execute the steps of the information query method described in the above method embodiment
  • the embodiments of the present disclosure also provide a computer program, which, when executed by a processor, implements any one of the methods in the foregoing embodiments.
  • the computer program product can be specifically implemented by hardware, software, or a combination thereof.
  • the computer program product is specifically embodied as a computer storage medium.
  • the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
  • SDK software development kit
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor.
  • the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An information query method and device. The method comprises: obtaining a weather search request (101); analyzing target time indication information in the weather search request, and determining target time indicated by the target time indication information (102); and obtaining target weather information corresponding to the target time, and on the basis of the target time and the target weather information, generating a search result card corresponding to the search request (103).

Description

一种信息查询方法及装置Information query method and device
相关申请的交叉引用Cross-references to related applications
本申请要求于2020年06月17日提交的,申请号为202010555306.9、发明名称为“一种信息查询方法及装置”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 17, 2020 with the application number 202010555306.9 and the invention title "An information query method and device". The full text of the application is incorporated into this application by reference.
技术领域Technical field
本公开涉及信息查询技术领域,具体而言,涉及一种信息查询方法及装置。The present disclosure relates to the technical field of information query, and in particular, to an information query method and device.
背景技术Background technique
目前,用户在进行天气信息查询时,一般是需要进入展示天气的界面中,然后手动点击日期,才能查询到该日期对应的天气信息。例如,用户需要查看某个节日当天的天气信息,需要先确定该节日对应的具体的时间,然后再手动去查找该具体的时间所对应的天气信息,这种方法操作较为复杂,搜索效率较低。At present, when users query weather information, they generally need to enter the interface displaying the weather, and then manually click on the date to query the weather information corresponding to that date. For example, if a user needs to view the weather information of a certain festival day, he needs to determine the specific time corresponding to the festival first, and then manually find the weather information corresponding to the specific time. This method is more complicated to operate and the search efficiency is low. .
发明内容Summary of the invention
本公开实施例至少提供一种信息查询方法及装置。The embodiments of the present disclosure provide at least one information query method and device.
第一方面,本公开实施例提供了一种信息查询方法,包括:In the first aspect, embodiments of the present disclosure provide an information query method, including:
获取天气搜索请求;Get weather search request;
解析所述天气搜索请求中的目标时间指示信息,并确定所述目标 时间指示信息指示的目标时间;Parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。Obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
一种可能的实施方式中,所述解析所述天气搜索请求中的目标时间指示信息,包括:In a possible implementation manner, the parsing the target time indication information in the weather search request includes:
确定所述天气搜索请求中所包含的至少一个关键词;Determine at least one keyword included in the weather search request;
分别利用所述关键词与预先存储的时间关键词进行匹配,将匹配成功的关键词确定为所述天气搜索请求中的目标时间指示信息。The keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
一种可能的实施方式中,所述确定所述目标时间指示信息指示的目标时间,包括:In a possible implementation manner, the determining the target time indicated by the target time indication information includes:
确定目标时间计算方法;所述目标时间计算方法与所述目标时间指示信息匹配的时间关键词相对应;Determine the target time calculation method; the target time calculation method corresponds to the time keyword matched by the target time indication information;
基于所述目标时间计算方法和所述目标时间指示信息,确定所述目标时间指示信息指示的目标时间。Based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
一种可能的实施方式中,所述确定所述目标时间指示信息指示的目标时间,包括:In a possible implementation manner, the determining the target time indicated by the target time indication information includes:
将所述目标时间指示信息输入至预先训练的神经网络模型中,输出所述目标时间指示信息指示的目标时间,其中,所述神经网络模型是基于样本时间指示信息以及样本时间指示信息对应的时间标签训练得到的。Input the target time indication information into a pre-trained neural network model, and output the target time indicated by the target time indication information, wherein the neural network model is based on the sample time indication information and the time corresponding to the sample time indication information Obtained from label training.
一种可能的实施方式中,所述天气搜索请求中携带有地点信息;In a possible implementation manner, the weather search request carries location information;
所述获取与所述目标时间对应的目标天气信息,包括:The acquiring target weather information corresponding to the target time includes:
获取与所述地点信息和所述目标时间对应的天气信息。Obtain weather information corresponding to the location information and the target time.
一种可能的实施方式中,所述基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片,包括:In a possible implementation manner, the generating a search result card corresponding to the search request based on the target time and the target weather information includes:
计算当前时间与所述目标时间之间的时间间隔;Calculating the time interval between the current time and the target time;
根据所述时间间隔确定搜索结果卡片样式;Determine the search result card style according to the time interval;
基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,所述基于所述目标天气信息,按照所述 搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片,包括:In a possible implementation manner, the generating the search result card corresponding to the search request according to the search result card style based on the target weather information includes:
根据所述时间间隔确定除所述目标时间对应的目标天气信息外的其他天气信息;Determine other weather information except for the target weather information corresponding to the target time according to the time interval;
基于所述其他天气信息和所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the other weather information and the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,根据所述时间间隔确定搜索结果卡片样式,包括:In a possible implementation manner, determining the search result card style according to the time interval includes:
当所述时间间隔小于第一预设时间间隔时,将第一卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval is less than the first preset time interval, the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
当所述时间间隔大于或等于所述第一预设时间间隔时,将第二卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度比所述第一时间段的时间长度长。When the time interval is greater than or equal to the first preset time interval, the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target The weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
第二方面,本公开实施例还提供一种信息查询方法,包括:In the second aspect, the embodiments of the present disclosure also provide an information query method, including:
接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;Receiving a weather search request; the weather search request includes target time indication information;
获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;Acquire a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the target time and The time interval between the current time is determined;
在搜索结果页面展示所述搜索结果卡片。Display the search result card on the search result page.
一种可能的实施方式中,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定,包括:In a possible implementation manner, the card style of the search card is determined according to the time interval between the target time and the current time, including:
当所述目标时间与当前时间之间的时间间隔小于第一预设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to a first card style; the first card style displays the first card style that includes the target time Weather information for the time period;
当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval between the target time and the current time is greater than or equal to the first preset time interval, the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
一种可能的实施方式中,所述第一卡片样式中包含第一展示区域和第二展示区域,在所述第一展示区域展示所述目标时间的目标天气信息,在所述第二展示区域以折线形式展示包括所述目标时间的第一时间段的天气信息。In a possible implementation manner, the first card style includes a first display area and a second display area, the target weather information of the target time is displayed in the first display area, and the target weather information at the target time is displayed in the second display area. The weather information of the first time period including the target time is displayed in the form of a broken line.
一种可能的实施方式中,所述第二卡片样式中包含第一展示区域和第二展示区域;在所述第一展示区域以日历形式展示包括所述目标时间的第二时间段的天气信息,在所述第二展示区域展示与所述目标时间对应的目标天气信息。In a possible implementation manner, the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
第三方面,本公开实施例还提供一种信息查询装置,包括:In the third aspect, the embodiments of the present disclosure also provide an information query device, including:
获取模块,用于获取天气搜索请求;Obtaining module, used to obtain weather search request;
确定模块,用于解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间;A determining module, configured to parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
卡片生成模块,用于获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。The card generation module is configured to obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
一种可能的实施方式中,所述确定模块,在解析所述天气搜索请求中的目标时间指示信息时,用于:In a possible implementation manner, the determining module is configured to: when parsing the target time indication information in the weather search request:
确定所述天气搜索请求中所包含的至少一个关键词;Determine at least one keyword included in the weather search request;
分别利用所述关键词与预先存储的时间关键词进行匹配,将匹配成功的关键词确定为所述天气搜索请求中的目标时间指示信息。The keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
一种可能的实施方式中,所述确定模块,在确定所述目标时间指示信息指示的目标时间时,用于:In a possible implementation manner, the determining module is configured to: when determining the target time indicated by the target time indication information:
确定目标时间计算方法;所述目标时间计算方法与所述目标时间指示信息匹配的时间关键词相对应;Determine the target time calculation method; the target time calculation method corresponds to the time keyword matched by the target time indication information;
基于所述目标时间计算方法和所述目标时间指示信息,确定所述目标时间指示信息指示的目标时间。Based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
一种可能的实施方式中,所述确定模块,在确定所述目标时间指示信息指示的目标时间时,用于:In a possible implementation manner, the determining module is configured to: when determining the target time indicated by the target time indication information:
将所述目标时间指示信息输入至预先训练的神经网络模型中,输出所述目标时间指示信息指示的目标时间,其中,所述神经网络模型 是基于样本时间指示信息以及样本时间指示信息对应的时间标签训练得到的。Input the target time indication information into a pre-trained neural network model, and output the target time indicated by the target time indication information, wherein the neural network model is based on the sample time indication information and the time corresponding to the sample time indication information Obtained from label training.
一种可能的实施方式中,所述天气搜索请求中携带有地点信息;In a possible implementation manner, the weather search request carries location information;
所述卡片生成模块,在获取与所述目标时间对应的目标天气信息时,用于:The card generation module, when acquiring target weather information corresponding to the target time, is used to:
获取与所述地点信息和所述目标时间对应的天气信息。Obtain weather information corresponding to the location information and the target time.
一种可能的实施方式中,所述卡片生成模块,在基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片时,用于:In a possible implementation manner, the card generation module is configured to: when generating a search result card corresponding to the search request based on the target time and the target weather information:
计算当前时间与所述目标时间之间的时间间隔;Calculating the time interval between the current time and the target time;
根据所述时间间隔确定搜索结果卡片样式;Determine the search result card style according to the time interval;
基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,所述卡片生成模块,在基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片时,用于:In a possible implementation manner, when the card generation module generates a search result card corresponding to the search request according to the search result card style based on the target weather information, it is used to:
根据所述时间间隔确定除所述目标时间对应的目标天气信息外的其他天气信息;Determine other weather information except for the target weather information corresponding to the target time according to the time interval;
基于所述其他天气信息和所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the other weather information and the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,所述卡片生成模块,在根据所述时间间隔确定搜索结果卡片样式时,用于:In a possible implementation manner, the card generation module is used to: when determining the search result card style according to the time interval:
当所述时间间隔小于第一预设时间间隔时,将第一卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval is less than the first preset time interval, the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
当所述时间间隔大于或等于所述第一预设时间间隔时,将第二卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度比所述第一时间段的时间长度长。When the time interval is greater than or equal to the first preset time interval, the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target The weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
第四方面,本公开实施例还提供了一种信息查询装置,包括:In a fourth aspect, an embodiment of the present disclosure also provides an information query device, including:
接收模块,用于接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;The receiving module is configured to receive a weather search request; the weather search request includes target time indication information;
获取模块,用于获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;The obtaining module is used to obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on The time interval between the target time and the current time is determined;
展示模块,用于在搜索结果页面展示所述搜索结果卡片。The display module is used to display the search result card on the search result page.
一种可能的实施方式中,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定,包括:In a possible implementation manner, the card style of the search card is determined according to the time interval between the target time and the current time, including:
当所述目标时间与当前时间之间的时间间隔小于第一预设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to a first card style; the first card style displays the first card style that includes the target time Weather information for the time period;
当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval between the target time and the current time is greater than or equal to the first preset time interval, the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
一种可能的实施方式中,所述第一卡片样式中包含第一展示区域和第二展示区域,在所述第一展示区域展示所述目标时间的目标天气信息,在所述第二展示区域以折线形式展示包括所述目标时间的第一时间段的天气信息。In a possible implementation manner, the first card style includes a first display area and a second display area, the target weather information of the target time is displayed in the first display area, and the target weather information at the target time is displayed in the second display area. The weather information of the first time period including the target time is displayed in the form of a broken line.
一种可能的实施方式中,所述第二卡片样式中包含第一展示区域和第二展示区域;在所述第一展示区域以日历形式展示包括所述目标时间的第二时间段的天气信息,在所述第二展示区域展示与所述目标时间对应的目标天气信息。In a possible implementation manner, the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
第五方面,本公开实施例还提供一种计算机设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤,或执行上述第二方面,或第二方面中任一种可能的实施方式中的步骤。In a fifth aspect, embodiments of the present disclosure also provide a computer device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processing The processor communicates with the memory through a bus. When the machine-readable instructions are executed by the processor, the above-mentioned first aspect or the steps in any one of the possible implementations of the first aspect are executed, or the above-mentioned first aspect is executed. The second aspect, or a step in any possible implementation of the second aspect.
第六方面,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤,或执行上述第二方面,或第二方面中任一种可能的实施方式中的步骤。In a sixth aspect, the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the first aspect or any of the first aspects when the computer program is run by a processor. A step in a possible implementation manner, or execute the above-mentioned second aspect, or a step in any one of the possible implementation manners in the second aspect.
本公开实施例提供的信息查询方法及装置中,可以自动根据获取的天气搜索请求中的目标时间指示信息,确定目标时间指示信息所指示的目标时间,然后获取与目标时间对应的目标天气信息,并通过搜索结果卡片的形式在搜索结果页面进行展示,通过这种方法,用户无需手动去查找具体的时间信息,简化了天气信息的查询步骤,提高了查询效率。In the information query method and device provided by the embodiments of the present disclosure, the target time indicated by the target time indication information can be automatically determined according to the target time indication information in the acquired weather search request, and then the target weather information corresponding to the target time is obtained, And it is displayed on the search result page in the form of a search result card. In this way, the user does not need to manually search for specific time information, which simplifies the query steps for weather information and improves the query efficiency.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and understandable, preferred embodiments accompanied with accompanying drawings are described in detail as follows.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the drawings needed in the embodiments. The drawings here are incorporated into the specification and constitute a part of the specification. These attachments The figure shows an embodiment conforming to the present disclosure, and is used together with the description to explain the technical solution of the present disclosure. It should be understood that the following drawings only show certain embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, they can also Obtain other related drawings based on these drawings.
图1示出了本公开实施例所提供的一种信息查询方法的流程图;FIG. 1 shows a flowchart of an information query method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种神经网络的训练方法的流程图;Figure 2 shows a flowchart of a neural network training method provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种天气信息展示页面的示意图;FIG. 3 shows a schematic diagram of a weather information display page provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的另一种天气信息展示页面的示意图;FIG. 4 shows a schematic diagram of another weather information display page provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的另一种天气信息展示页面的示意图;FIG. 5 shows a schematic diagram of another weather information display page provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的另一种信息查询方法的流程示意图;FIG. 6 shows a schematic flowchart of another information query method provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供一种信息查询装置的架构示意图;FIG. 7 shows a schematic structural diagram of an information query device provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供另一种信息查询装置的架构示意图;FIG. 8 shows a schematic structural diagram of another information query device provided by an embodiment of the present disclosure;
图9示出了本公开实施例所提供的计算机设备900的结构示意图;FIG. 9 shows a schematic structural diagram of a computer device 900 provided by an embodiment of the present disclosure;
图10示出了本公开实施例所提供的计算机设备1000的结构示意图。FIG. 10 shows a schematic structural diagram of a computer device 1000 provided by an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are a part of the embodiments of the present disclosure, but not all of the embodiments. The components of the embodiments of the present disclosure generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present disclosure.
相关技术中,用户在进行天气查询时,一般需要手动去选择需要查看天气的日期,然后才能查询到对应的天气信息,若需要查看天气的日期与当前日期之间的时间间隔较长,用户查询需要查看天气的日期会浪费一定的时间,例如若当前日期为5月1日,用户需要查看6 月10日的天气,则需要用户去手动查找6月10日的天气信息,这期间会浪费一定的时间,因此,这种方法操作较为复杂,查询效率较低。In related technologies, users generally need to manually select the date on which the weather needs to be checked when making weather queries, and then the corresponding weather information can be queried. If the time interval between the date when the weather needs to be checked and the current date is long, the user queries Need to check the weather date will waste a certain amount of time. For example, if the current date is May 1st, and the user needs to check the weather on June 10th, the user needs to manually search for the weather information on June 10th. During this period, a certain amount of time will be wasted. Therefore, the operation of this method is more complicated and the query efficiency is lower.
基于此,本公开实施例提供了一种信息查询方法及装置,可以自动根据获取的天气搜索请求中的目标时间指示信息,确定目标时间指示信息所指示的目标时间,然后获取与目标时间对应的目标天气信息,并通过搜索结果卡片的形式在搜索结果页面进行展示,通过这种方法,用户无需手动去查找具体的时间信息,简化了天气信息的查询步骤,提高了查询效率。Based on this, the embodiments of the present disclosure provide an information query method and device, which can automatically determine the target time indicated by the target time indication information according to the target time indication information in the acquired weather search request, and then obtain the target time corresponding to the target time. The target weather information is displayed on the search result page in the form of a search result card. In this way, the user does not need to manually search for specific time information, which simplifies the weather information query steps and improves the query efficiency.
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects in the above solutions are all the results of the inventors after practice and careful study. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure below to solve the above problems should be the inventors. Contributions made to this disclosure in the course of this disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种信息查询方法进行详细介绍,参见图1所示,为本公开实施例提供的一种信息查询方法的流程图,所述方法包括步骤101~步骤103,其中:In order to facilitate the understanding of this embodiment, an information query method disclosed in an embodiment of the present disclosure is first introduced in detail. As shown in FIG. 1, a flowchart of an information query method provided by an embodiment of the present disclosure is shown. Including steps 101 to 103, where:
步骤101、获取天气搜索请求。Step 101: Obtain a weather search request.
步骤102、解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间。Step 102: Parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information.
步骤103、获取与所述目标时间对应的目标天气信息,基于所述 目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。Step 103: Obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
以下是对上述步骤101~步骤103的详细介绍。The following is a detailed introduction to the above steps 101 to 103.
针对步骤101:For step 101:
在一种可能的实施方式中,可以先接收用户输入的搜索信息,基于搜索信息生成搜索请求,然后判断该搜索请求是否为天气搜索请求。例如可以检测搜索请求中是否具有与数据库中存储的天气关键词匹配的关键词信息,若有,则确定该搜索请求为天气搜索请求。In a possible implementation manner, the search information input by the user may be received first, a search request is generated based on the search information, and then it is determined whether the search request is a weather search request. For example, it can be detected whether the search request has keyword information that matches the weather keywords stored in the database, and if so, it is determined that the search request is a weather search request.
具体的,可以接收用户输入的搜索请求,搜索请求中携带有用户输入的搜索信息,在接收到搜索请求之后,可以对搜索请求进行分词处理,获得搜索请求中所包含的至少一个关键词,然后将搜索请求中所包含的关键词和数据库中存储的天气关键词进行匹配,若匹配成功,则确定该搜索请求为天气搜索请求。Specifically, a search request input by the user can be received, and the search request carries the search information input by the user. After receiving the search request, the search request can be word segmented to obtain at least one keyword contained in the search request, and then The keywords included in the search request are matched with the weather keywords stored in the database, and if the matching is successful, it is determined that the search request is a weather search request.
示例性的,天气关键词可以包括天气、气温、温度、风向、空气质量、湿度等。Exemplarily, weather keywords may include weather, air temperature, temperature, wind direction, air quality, humidity, and the like.
其中,在将搜索请求中所包含的关键词和数据库中存储的天气关键词进行匹配,可以是检测预先存储的天气关键词中是否包括搜索请求中的关键词,或者,针对搜索请求中所包含的每一个关键词,可以计算该关键词与数据库中存储的天气关键词之间的相似度,若计算出的任一相似度大于预设相似度,则将该搜索请求确定为天气搜索请求。Among them, matching the keywords contained in the search request with the weather keywords stored in the database can be to detect whether the keywords in the search request are included in the pre-stored weather keywords, or for the keywords contained in the search request. For each keyword in, the similarity between the keyword and the weather keywords stored in the database can be calculated. If any calculated similarity is greater than the preset similarity, the search request is determined as a weather search request.
针对步骤102:For step 102:
在一种可能的实施方式中,在解析天气搜索请求中的目标时间指 示信息时,可以先确定天气搜索请求中所包含的关键字(例如可以进行分词处理),然后分别利用天气搜索请求中所包含的关键字与预先存储的时间关键词进行匹配,并将匹配成功的关键词作为目标时间指示信息。In a possible implementation manner, when parsing the target time indication information in the weather search request, the keywords contained in the weather search request can be determined first (for example, word segmentation processing can be performed), and then the keywords contained in the weather search request can be used respectively. The included keywords are matched with pre-stored time keywords, and the successfully matched keywords are used as target time indication information.
其中,所述预先存储的时间关键词可以包括不同时间类型下的时间关键词,所述时间类型包括以下类型中的多种:Wherein, the pre-stored time keywords may include time keywords in different time types, and the time types include multiple of the following types:
相对时间类型、绝对时间类型、节假日。Relative time type, absolute time type, holidays.
所述相对时间类型中的预设时间关键字表示与当前时间之间的相对时间关系,例如可以包括明天,后天,大后天,下周,未来X天,未来X周等;绝对时间类型中的预设时间关键字表示绝对的时间,例如可以包括X月上旬,X月第一个星期等;所述节假日类型中的预设时间关键词,例如可以包括中秋节,端午节,清明节,父亲节,母亲节等。The preset time keyword in the relative time type indicates the relative time relationship with the current time, for example, it may include tomorrow, the day after tomorrow, the day after tomorrow, next week, the next X days, the next X weeks, etc.; the forecast in the absolute time type Set the time keyword to indicate the absolute time, for example, it may include the first ten days of X month, the first week of X month, etc.; the preset time keywords in the holiday type may include, for example, Mid-Autumn Festival, Dragon Boat Festival, Ching Ming Festival, Father's Day , Mother's Day, etc.
在确定目标时间指示信息指示的目标时间时,可以先确定与目标时间指示信息匹配的时间关键词对应的目标时间计算方法,与每个时间关键词对应的目标时间计算方法可以是预先存储在数据库中的,然后基于目标时间计算方法和目标时间指示信息,确定目标时间指示信息指示的目标时间。When determining the target time indicated by the target time indication information, the target time calculation method corresponding to the time keyword matching the target time indication information may be determined first, and the target time calculation method corresponding to each time keyword may be pre-stored in the database Then, based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
示例性的,若目标时间指示信息为后天,与目标时间指示信息匹配的时间关键词也为后天,与时间关键词匹配的时间的计算方法为当前日期+2,若当前日期为5月1日,则目标时间指示信息指示的目标时间为5月3日;若目标时间指示信息为未来一周,与目标时间指示 信息匹配的时间关键词为未来X周,与时间关键词匹配的时间计算方法为当前日期+1~当前日期+7*X,当前日期为5月1日,则确定目标时间指示信息指示的目标时间为5月2日~5月8日。Exemplarily, if the target time indication information is the day after tomorrow, the time keyword matching the target time indication information is also the day after tomorrow, and the calculation method of the time matching the time keyword is the current date + 2, if the current date is May 1st , The target time indicated by the target time indication information is May 3; if the target time indication information is one week in the future, the time keyword matching the target time indication information is X weeks in the future, and the time calculation method matching the time keyword is If the current date is +1 ~ current date + 7*X, and the current date is May 1, it is determined that the target time indicated by the target time indication information is May 2 to May 8.
在另外一种可能的实施方式中,在确定目标时间指示信息指示的目标时间时,还可以将目标时间指示信息输入至预先训练的神经网络中,输出可以得到目标时间指示信息指示的目标时间。In another possible implementation manner, when determining the target time indicated by the target time indication information, the target time indication information may also be input to a pre-trained neural network, and the output may obtain the target time indicated by the target time indication information.
其中,神经网络的训练方法可以参数如图2所示的方法,包括以下几个步骤:Among them, the training method of the neural network can be parameterized as shown in Figure 2, including the following steps:
步骤201、获取样本时间指示信息,以及样本时间指示信息对应的时间标签,所述时间标签为所述样本时间指示信息所指示的时间信息。Step 201: Obtain sample time indication information and a time label corresponding to the sample time indication information, where the time label is the time information indicated by the sample time indication information.
步骤202、将所述样本时间指示信息输入至待训练的神经网络模型中,输出得到预测时间信息。Step 202: Input the sample time indication information into the neural network model to be trained, and output the predicted time information.
步骤203、基于预测时间信息、以及样本时间指示信息对应的时间标签确定本次训练过程中的损失值。Step 203: Determine the loss value in this training process based on the predicted time information and the time label corresponding to the sample time indication information.
步骤204、判断本次训练过程中的损失值是否小于预设损失值。Step 204: Determine whether the loss value in this training process is less than a preset loss value.
若判断结果为是,则顺序执行步骤205;If the judgment result is yes, then execute step 205 in sequence;
若判断结果为否,则调整本次训练过程中的神经网络的网络参数,并返回执行步骤202。If the judgment result is no, adjust the network parameters of the neural network in this training process, and return to step 202.
步骤205、将本次训练过程中使用的神经网络模型确定为训练好的神经网络模型。Step 205: Determine the neural network model used in this training process as the trained neural network model.
示例性的,若目标时间指示信息为“大后天”,则可以将时间指 示信息“大后天”输入至神经网络模型中,神经网络模型在执行过程中可以自动获取当前时间,若当前时间为5月10日,则神经网络模型输出预测时间为5月13日。Exemplarily, if the target time indication information is "the day after tomorrow", the time indication information "the day after tomorrow" can be input into the neural network model. The neural network model can automatically obtain the current time during execution. If the current time is May 10 Day, the neural network model output forecast time is May 13th.
在一种可能的实施方式中,天气搜索请求中还可以携带有地点信息;在获取与目标时间对应的目标天气信息时,可以获取与地点信息和目标时间对应的目标天气信息。In a possible implementation manner, the weather search request may also carry location information; when the target weather information corresponding to the target time is acquired, the target weather information corresponding to the location information and the target time may be acquired.
示例性的,若天气搜索请求为“北京明天天气怎么样”,当前日期为5月1日,则在检测到天气搜索请求中包括地点信息“北京”时,在获取目标天气信息时,需要与“北京”和“5月2日”相匹配,即获取“北京”“5月2日”的天气信息。Exemplarily, if the weather search request is "What's the weather like tomorrow in Beijing" and the current date is May 1, when it is detected that the weather search request includes the location information "Beijing", when obtaining the target weather information, it is necessary to contact If "Beijing" and "May 2nd" match, the weather information of "Beijing" and "May 2nd" are obtained.
在另外一种可能的实施方式中,天气搜索请求信息中并未携带地点信息,但是天气搜索请求中可以携带地点信息,在这种情况下,也可以获取与目标时间和地点信息对应的目标天气信息。In another possible implementation manner, the weather search request information does not carry location information, but the weather search request can carry location information. In this case, the target weather corresponding to the target time and location information can also be obtained. information.
示例性的,天气搜索请求为“明天天气怎么样”,该天气搜索请求中并未携带有任何地点信息,但是用户端向服务器发送的天气搜索请求中携带有用户端的当前位置信息(即地点信息),则可以根据用户端的当前位置信息,获取与目标时间和地点信息对应的目标天气信息。Exemplarily, the weather search request is "How is the weather tomorrow", the weather search request does not carry any location information, but the weather search request sent by the user to the server carries the current location information of the user (ie location information) ), the target weather information corresponding to the target time and location information can be obtained according to the current location information of the user terminal.
在另外一种可能的实施方式中,天气搜索请求信息中未携带地点信息,天气搜索请求中也并未携带用户端的当前位置信息,因此,在获取天气信息时,可以获取与默认地点和目标时间对应的目标天气信息。In another possible implementation manner, the weather search request information does not carry location information, and the weather search request does not carry the current location information of the user terminal. Therefore, when obtaining weather information, the default location and target time can be obtained. Corresponding target weather information.
考虑到距离当前日期越远的日期,其对应的天气信息的预测精度 越低,因此,具体实施中,在获取与目标时间相匹配的天气信息时,可以先确定当前时间与目标时间之间对应的时间间隔,当时间间隔小于预设时间间隔时,再确定与目标时间对应的目标天气信息。Considering that the farther the date is from the current date, the lower the prediction accuracy of the corresponding weather information. Therefore, in specific implementation, when obtaining weather information that matches the target time, you can first determine the correspondence between the current time and the target time When the time interval is less than the preset time interval, the target weather information corresponding to the target time is determined.
不同时间间隔下所对应的目标天气信息也可以不同,例如,当时间间隔小于第一预设时间间隔时,天气信息可以包括空气质量、天气气象、早晚温度、风力风向、日出日落时间等,当时间间隔大于或等于第一预设时间间隔时,天气信息可以包括天气气象、早晚温度、风力风向、日出日落时间等。The target weather information corresponding to different time intervals may also be different. For example, when the time interval is less than the first preset time interval, the weather information may include air quality, weather and meteorology, morning and evening temperature, wind direction, sunrise and sunset time, etc. When the time interval is greater than or equal to the first preset time interval, the weather information may include weather meteorology, morning and evening temperature, wind direction, sunrise and sunset time, and the like.
这里,需要说明的是,当天气搜索请求中的目标时间指示信息所指示的目标时间为一段时间时,例如为未来半个月,则将该一段时间中最后一天与当前时间之间的时间间隔作为目标时间指示信息所指示的目标时间与当前时间之间的时间间隔。Here, it should be noted that when the target time indicated by the target time indication information in the weather search request is a period of time, for example, half a month in the future, then the time interval between the last day of the period and the current time As the time interval between the target time indicated by the target time indication information and the current time.
针对步骤103:For step 103:
具体实施中,在基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片时,可以先计算当前时间与目标时间之间的时间间隔,然后根据目标时间间隔确定搜索结果卡片样式,并基于目标天气信息,按照搜索结果卡片生成搜索请求对应的搜索结果卡片。In specific implementation, when generating the search result card corresponding to the search request based on the target time and the target weather information, the time interval between the current time and the target time may be calculated first, and then the search result may be determined according to the target time interval Card style, and based on the target weather information, the search result card corresponding to the search request is generated according to the search result card.
其中,在根据时间间隔确定搜索结果卡片样式时,当时间间隔小于第一预设时间间隔时,可以将第一卡片样式作为与时间间隔对应的搜索结果卡片样式,其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;当时间间隔大于或等于第一预设时间 间隔时,可以将第二卡片样式作为与时间间隔对应的搜索结果卡片样式,其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度比所述第一时间段的时间长度长。通过这种方法,可以丰富天气信息的展示形式,使得展示效果更佳直观。Wherein, when the search result card style is determined according to the time interval, when the time interval is less than the first preset time interval, the first card style may be used as the search result card style corresponding to the time interval, wherein the first card style The weather information of the first time period including the target time is displayed in. When the time interval is greater than or equal to the first preset time interval, the second card style can be used as the search result card style corresponding to the time interval, wherein, The second card style displays weather information of a second time period including the target time, and the time length of the second time period is longer than the time length of the first time period. In this way, the display form of weather information can be enriched, making the display effect more intuitive.
示例性的,第一预设时间间隔为一周(7天),若检测到天气搜索请求信息中的时间指示信息为后天,与当前时间之间的时间间隔为两天,小于第一预设时间间隔,则通过第一卡片样式展示后天的天气信息;若检测到天气搜索请求信息中的时间指示信息为未来半个月,与当前时间之间的时间间隔为15天,则将通过第二卡片样式来展示未来半个月的天气信息。Exemplarily, the first preset time interval is one week (7 days), and if it is detected that the time indication information in the weather search request information is the day after tomorrow, the time interval from the current time is two days, which is less than the first preset time If it is detected that the time indication information in the weather search request information is half a month in the future and the time interval between the current time and the current time is 15 days, the second card will be displayed Style to display weather information for the next half month.
在另外一种可能的实施方式中,在基于目标天气信息,按照搜索结果卡片样式生成搜索请求对应的搜索结果卡片时,可以在展示目标时间对应的目标天气信息外,同时展示除目标时间对应的目标天气信息外的其他时间对应的天气信息。In another possible implementation, when the search result card corresponding to the search request is generated based on the target weather information according to the search result card style, the target weather information corresponding to the target time may be displayed, and the information corresponding to the target time may be displayed at the same time. Weather information corresponding to other times than the target weather information.
具体的,在基于目标天气,生成搜索结果卡片时,可以先根据时间间隔确定除目标时间对应的目标天气信息外的其他天气信息,然后基于其他天气信息和目标天气信息,按照搜索结果卡片样式生成搜索请求对应的搜索结果卡片。Specifically, when generating a search result card based on the target weather, other weather information other than the target weather information corresponding to the target time can be determined according to the time interval, and then based on the other weather information and target weather information, it is generated according to the search result card style The search result card corresponding to the search request.
示例性的,若用户的天气搜索请求信息为“明天天气”,当前日期为6月12日,则可以确定时间指示信息所指示的目标时间为6月13日,则可以基于第一卡片样式生成明天的天气信息对应的搜索结果卡 片,展示的页面示例性的可以如图3所示,在卡片上方的位置展示6月13日的天气信息,包括气温(最低气温和最高气温)、风向、空气质量、天气情况等信息,展示的页面上还可以展示当前天气信息对应的地点信息,用户可以通过点击该地点信息,进行地点信息的更改,例如,若用户的天气搜索请求信息为“北京市朝阳区本周工作日天气”,当用户需要查询“北京市海淀区本周工作日天气”时,可以通过点击该地点信息,将地点信息更新为“北京市海淀区”。Exemplarily, if the user’s weather search request information is "Tomorrow’s Weather" and the current date is June 12, it can be determined that the target time indicated by the time indication information is June 13, and it can be generated based on the first card style The search result card corresponding to tomorrow’s weather information. The displayed page can be as shown in Figure 3. The weather information on June 13 is displayed at the top of the card, including temperature (minimum temperature and maximum temperature), wind direction, and air Information such as quality and weather conditions. The displayed page can also display the location information corresponding to the current weather information. The user can click the location information to change the location information. For example, if the user’s weather search request information is "Beijing Chaoyang District weather on weekdays this week", when users need to inquire about the weather on weekdays in Haidian District, Beijing, they can click on the location information to update the location information to "Haidian District, Beijing".
另外,还可以基于“明天”与当前时刻对应的时间间隔,确定搜索结果卡片中还展示有与时间间隔相匹配的其他天气信息,即6月11日、6月13日、6月14日、6月15日对应的天气信息,在卡片下方的位置可以展示6月11日~6月15日的天气信息,包括天气情况、气温(最低气温和最高气温)、风向、空气质量等信息,这里,第一时间段为6月11日~6月15日。In addition, based on the time interval between "tomorrow" and the current moment, it can be determined that other weather information matching the time interval is displayed in the search result card, that is, June 11, June 13, June 14, The weather information corresponding to June 15th, the position below the card can display the weather information from June 11th to June 15th, including weather conditions, temperature (minimum temperature and maximum temperature), wind direction, air quality and other information, here , The first time period is from June 11th to June 15th.
若用户的天气搜索请求信息为“父亲节天气”,当前日期为5月26日,则可以确定“父亲节”指示的目标时间为6月21日,且6月21日与当前日期之间的时间间隔大于第一预设时间间隔(7天),则可以将第二卡片样式作为搜索结果卡片样式,展示的界面图可以如图4所示,以日历的格式展示从当前日期到时间指示信息指示的时间之间的天气信息,在日历下方展示6月21日的详细的天气信息,包括天气、温度、风力、风向、日出日落时间等。If the user’s weather search request information is "Father's Day Weather" and the current date is May 26, it can be determined that the target time indicated by "Father's Day" is June 21st, and the time between June 21st and the current date If the time interval is greater than the first preset time interval (7 days), the second card style can be used as the search result card style. The displayed interface diagram can be as shown in Figure 4, showing the indication information from the current date to the time in a calendar format The weather information between the indicated time, the detailed weather information of June 21 is displayed below the calendar, including weather, temperature, wind force, wind direction, sunrise and sunset time, etc.
若用户的天气搜索请求信息为“未来30天天气”,当前日期为5月13日,则可以通过日历的形式展示未来30天的天气信息,展示页 面如图5所示,在日历下方可以展示当前时间的详细的天气信息。If the user’s weather search request information is "weather for the next 30 days" and the current date is May 13, the weather information for the next 30 days can be displayed in the form of a calendar. The display page is shown in Figure 5, which can be displayed at the bottom of the calendar. Detailed weather information for the current time.
本公开实施例提供的信息查询方法中,可以自动根据获取的天气搜索请求中的目标时间指示信息,确定目标时间指示信息所指示的目标时间,然后获取与目标时间对应的目标天气信息,并通过搜索结果卡片的形式在搜索结果页面进行展示,通过这种方法,用户无需手动去查找具体的时间信息,简化了天气信息的查询步骤,提高了查询效率。In the information query method provided by the embodiments of the present disclosure, the target time indicated by the target time indication information can be automatically determined according to the target time indication information in the acquired weather search request, and then the target weather information corresponding to the target time is obtained, and passed The form of the search result card is displayed on the search result page. In this way, users do not need to manually search for specific time information, which simplifies the query steps for weather information and improves query efficiency.
基于相同的构思,本公开实施例还提供了另外一种信息查询方法,参见图6所示,为本公开实施例提供的另外一种信息查询方法的流程示意图,包括以下几个步骤:Based on the same concept, the embodiment of the present disclosure also provides another information query method. As shown in FIG. 6, a schematic flowchart of another information query method provided by the embodiment of the present disclosure includes the following steps:
步骤601、接收天气搜索请求;所述天气搜索请求包括目标时间指示信息。Step 601: Receive a weather search request; the weather search request includes target time indication information.
所述接收天气搜索请求可以是接收用户输入的天气搜索请求,实际应用中,在用户端的搜索页面可以展示有搜索框,用户可以在搜索框内输入搜索信息,然后点击搜索按钮,则可以接收到用户输入的携带搜索信息的天气搜索请求。The receiving weather search request may be receiving a weather search request input by the user. In actual applications, a search box may be displayed on the search page of the user terminal, and the user may enter search information in the search box, and then click the search button to receive The weather search request entered by the user with search information.
步骤602、获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定。Step 602: Obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the The time interval between the target time and the current time is determined.
具体的,搜索卡片的卡片样式可以通过服务器确定,也可以是由用户端确定,当所述目标时间与当前时间之间的时间间隔小于第一预 设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。Specifically, the card style of the search card may be determined by the server or the user terminal. When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to the first time interval. A card style; the first card style displays weather information for the first time period including the target time; when the time interval between the target time and the current time is greater than or equal to the first preset time interval , The search result card corresponds to a second card style; the second card style displays weather information of a second time period including the target time, and the time length of the second time period is greater than the first time The length of the segment.
其中,第一卡片样式中包含第一展示区域和第二展示区域,在第一展示区域中展示目标时间的目标天气信息,在第二展示区域以折线的形式展示包括目标时间的第一时间段的天气信息,示例性的,可以如图3所示的卡片样式。Among them, the first card style includes a first display area and a second display area, the target weather information of the target time is displayed in the first display area, and the first time period including the target time is displayed in the form of a broken line in the second display area The weather information, for example, can be a card style as shown in Figure 3.
第二卡片样式中也包括第一展示区域和第二展示区域,在第一展示区域中以日历形式展示包括目标时间的第二时间段的天气信息,在第二展示区域展示与目标时间对应的目标天气信息。The second card style also includes a first display area and a second display area. The weather information of the second time period including the target time is displayed in the form of a calendar in the first display area, and the weather information corresponding to the target time is displayed in the second display area. Target weather information.
这里需要说明的是,若目标时间为未来的一天,与目标时间对应的目标天气信息即为目标时间的天气信息,示例性的如图4所示,若目标时间为未来的多天,则与未来时间对应的目标天气信息可以为当天的天气信息,示例性的如图5所示。What needs to be explained here is that if the target time is one day in the future, the target weather information corresponding to the target time is the weather information of the target time, as shown in example in Figure 4, if the target time is multiple days in the future, then The target weather information corresponding to the future time may be the weather information of the day, as shown in FIG. 5 for example.
步骤603、在搜索结果页面展示所述搜索结果卡片。Step 603: Display the search result card on the search result page.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
基于同一发明构思,本公开实施例中还提供了与信息查询方法对 应的信息查询装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述信息查询方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides an information query device corresponding to the information query method. Since the principle of the device in the embodiment of the present disclosure to solve the problem is similar to the above-mentioned information query method of the embodiment of the present disclosure, the implementation of the device You can refer to the implementation of the method, and the repetition will not be repeated.
参照图7所示,为本公开实施例提供的一种信息查询装置的架构示意图,所述装置包括:获取模块701、确定模块702、卡片生成模块703;其中,Referring to FIG. 7, it is a schematic structural diagram of an information query device provided by an embodiment of the present disclosure. The device includes: an acquisition module 701, a determination module 702, and a card generation module 703; among them,
获取模块701,用于获取天气搜索请求;The obtaining module 701 is used to obtain a weather search request;
确定模块702,用于解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间;The determining module 702 is configured to parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
卡片生成模块703,用于获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。The card generation module 703 is configured to obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
一种可能的实施方式中,所述确定模块702,在解析所述天气搜索请求中的目标时间指示信息时,用于:In a possible implementation manner, the determining module 702 is configured to: when parsing the target time indication information in the weather search request:
确定所述天气搜索请求中所包含的至少一个关键词;Determine at least one keyword included in the weather search request;
分别利用所述关键词与预先存储的时间关键词进行匹配,将匹配成功的关键词确定为所述天气搜索请求中的目标时间指示信息。The keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
一种可能的实施方式中,所述确定模块702,在确定所述目标时间指示信息指示的目标时间时,用于:In a possible implementation manner, the determining module 702 is configured to: when determining the target time indicated by the target time indication information:
确定目标时间计算方法;所述目标时间计算方法与所述目标时间指示信息匹配的时间关键词相对应;Determine the target time calculation method; the target time calculation method corresponds to the time keyword matched by the target time indication information;
基于所述目标时间计算方法和所述目标时间指示信息,确定所述 目标时间指示信息指示的目标时间。Based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
一种可能的实施方式中,所述确定模块702,在确定所述目标时间指示信息指示的目标时间时,用于:In a possible implementation manner, the determining module 702 is configured to: when determining the target time indicated by the target time indication information:
将所述目标时间指示信息输入至预先训练的神经网络模型中,输出所述目标时间指示信息指示的目标时间,其中,所述神经网络模型是基于样本时间指示信息以及样本时间指示信息对应的时间标签训练得到的。Input the target time indication information into a pre-trained neural network model, and output the target time indicated by the target time indication information, wherein the neural network model is based on the sample time indication information and the time corresponding to the sample time indication information Obtained from label training.
一种可能的实施方式中,所述天气搜索请求中携带有地点信息;In a possible implementation manner, the weather search request carries location information;
所述卡片生成模块703,在获取与所述目标时间对应的目标天气信息时,用于:The card generation module 703 is used to: when acquiring target weather information corresponding to the target time:
获取与所述地点信息和所述目标时间对应的天气信息。Obtain weather information corresponding to the location information and the target time.
一种可能的实施方式中,所述卡片生成模块703,在基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片时,用于:In a possible implementation manner, the card generation module 703 is configured to: when generating a search result card corresponding to the search request based on the target time and the target weather information:
计算当前时间与所述目标时间之间的时间间隔;Calculating the time interval between the current time and the target time;
根据所述时间间隔确定搜索结果卡片样式;Determine the search result card style according to the time interval;
基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,所述卡片生成模块703,在基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片时,用于:In a possible implementation manner, the card generation module 703, when generating the search result card corresponding to the search request according to the search result card style based on the target weather information, is used to:
根据所述时间间隔确定除所述目标时间对应的目标天气信息外 的其他天气信息;Determining other weather information except for the target weather information corresponding to the target time according to the time interval;
基于所述其他天气信息和所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the other weather information and the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,所述卡片生成模块703,在根据所述时间间隔确定搜索结果卡片样式时,用于:In a possible implementation manner, the card generation module 703 is used to: when determining the search result card style according to the time interval:
当所述时间间隔小于第一预设时间间隔时,将第一卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval is less than the first preset time interval, the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
当所述时间间隔大于或等于所述第一预设时间间隔时,将第二卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度比所述第一时间段的时间长度长。When the time interval is greater than or equal to the first preset time interval, the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target The weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the foregoing method embodiment, which will not be described in detail here.
基于同一发明构思,本公开实施例中还提供了另一种信息查询装置,参见图8所示为本公开实施例提供的另一种信息查询装置的架构示意图,包括接收模块801、获取模块802、以及展示模块803,具体的:Based on the same inventive concept, another information query device is also provided in the embodiment of the present disclosure. Refer to FIG. 8 for a schematic structural diagram of another information query device provided by the embodiment of the disclosure, including a receiving module 801 and an acquiring module 802. , And the display module 803, specifically:
接收模块801,用于接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;The receiving module 801 is configured to receive a weather search request; the weather search request includes target time indication information;
获取模块802,用于获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时 间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;The obtaining module 802 is configured to obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card Determined according to the time interval between the target time and the current time;
展示模块803,用于在搜索结果页面展示所述搜索结果卡片。The display module 803 is configured to display the search result card on the search result page.
一种可能的实施方式中,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定,包括:In a possible implementation manner, the card style of the search card is determined according to the time interval between the target time and the current time, including:
当所述目标时间与当前时间之间的时间间隔小于第一预设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to a first card style; the first card style displays the first card style that includes the target time Weather information for the time period;
当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval between the target time and the current time is greater than or equal to the first preset time interval, the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
一种可能的实施方式中,所述第一卡片样式中包含第一展示区域和第二展示区域,在所述第一展示区域展示所述目标时间的目标天气信息,在所述第二展示区域以折线形式展示包括所述目标时间的第一时间段的天气信息。In a possible implementation manner, the first card style includes a first display area and a second display area, the target weather information of the target time is displayed in the first display area, and the target weather information at the target time is displayed in the second display area. The weather information of the first time period including the target time is displayed in the form of a broken line.
一种可能的实施方式中,所述第二卡片样式中包含第一展示区域和第二展示区域;在所述第一展示区域以日历形式展示包括所述目标时间的第二时间段的天气信息,在所述第二展示区域展示与所述目标时间对应的目标天气信息。In a possible implementation manner, the second card style includes a first display area and a second display area; in the first display area, the weather information of the second time period including the target time is displayed in the form of a calendar. , Displaying the target weather information corresponding to the target time in the second display area.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the foregoing method embodiment, which will not be described in detail here.
基于同一技术构思,本申请实施例还提供了一种计算机设备。参照图9所示,为本申请实施例提供的计算机设备900的结构示意图,包括处理器901、存储器902、和总线903。其中,存储器902用于存储执行指令,包括内存9021和外部存储器9022;这里的内存9021也称内存储器,用于暂时存放处理器901中的运算数据,以及与硬盘等外部存储器9022交换的数据,处理器901通过内存9021与外部存储器9022进行数据交换,当计算机设备900运行时,处理器901与存储器902之间通过总线903通信,使得处理器901在执行以下指令:Based on the same technical concept, the embodiment of the present application also provides a computer device. Referring to FIG. 9, a schematic structural diagram of a computer device 900 provided in an embodiment of this application includes a processor 901, a memory 902, and a bus 903. Among them, the memory 902 is used to store execution instructions, including the memory 9021 and the external memory 9022; the memory 9021 here is also called internal memory, which is used to temporarily store the calculation data in the processor 901 and the data exchanged with the external memory 9022 such as the hard disk. The processor 901 exchanges data with the external memory 9022 through the memory 9021. When the computer device 900 is running, the processor 901 and the memory 902 communicate through the bus 903, so that the processor 901 executes the following instructions:
获取天气搜索请求;Get weather search request;
解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间;Parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。Obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
一种可能的实施方式中,处理器901执行的指令中,所述解析所述天气搜索请求中的目标时间指示信息,包括:In a possible implementation manner, in the instruction executed by the processor 901, the parsing of the target time indication information in the weather search request includes:
确定所述天气搜索请求中所包含的至少一个关键词;Determine at least one keyword included in the weather search request;
分别利用所述关键词与预先存储的时间关键词进行匹配,将匹配成功的关键词确定为所述天气搜索请求中的目标时间指示信息。The keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
一种可能的实施方式中,处理器901执行的指令中,所述确定所述目标时间指示信息指示的目标时间,包括:In a possible implementation manner, in the instruction executed by the processor 901, the determining the target time indicated by the target time indication information includes:
确定目标时间计算方法;所述目标时间计算方法与所述目标时间指示信息匹配的时间关键词相对应;Determine the target time calculation method; the target time calculation method corresponds to the time keyword matched by the target time indication information;
基于所述目标时间计算方法和所述目标时间指示信息,确定所述目标时间指示信息指示的目标时间。Based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
一种可能的实施方式中,处理器901执行的指令中,所述确定所述目标时间指示信息指示的目标时间,包括:In a possible implementation manner, in the instruction executed by the processor 901, the determining the target time indicated by the target time indication information includes:
将所述目标时间指示信息输入至预先训练的神经网络模型中,输出所述目标时间指示信息指示的目标时间,其中,所述神经网络模型是基于样本时间指示信息以及样本时间指示信息对应的时间标签训练得到的。Input the target time indication information into a pre-trained neural network model, and output the target time indicated by the target time indication information, wherein the neural network model is based on the sample time indication information and the time corresponding to the sample time indication information Obtained from label training.
一种可能的实施方式中,处理器901执行的指令中,所述天气搜索请求中携带有地点信息;In a possible implementation manner, in the instruction executed by the processor 901, the weather search request carries location information;
所述获取与所述目标时间对应的目标天气信息,包括:The acquiring target weather information corresponding to the target time includes:
获取与所述地点信息和所述目标时间对应的天气信息。Obtain weather information corresponding to the location information and the target time.
一种可能的实施方式中,处理器901执行的指令中,所述基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片,包括:In a possible implementation manner, in the instructions executed by the processor 901, the generation of the search result card corresponding to the search request based on the target time and the target weather information includes:
计算当前时间与所述目标时间之间的时间间隔;Calculating the time interval between the current time and the target time;
根据所述时间间隔确定搜索结果卡片样式;Determine the search result card style according to the time interval;
基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,处理器901执行的指令中,所述基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片,包括:In a possible implementation manner, in the instruction executed by the processor 901, the generation of the search result card corresponding to the search request according to the search result card style based on the target weather information includes:
根据所述时间间隔确定除所述目标时间对应的目标天气信息外的其他天气信息;Determine other weather information except for the target weather information corresponding to the target time according to the time interval;
基于所述其他天气信息和所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the other weather information and the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
一种可能的实施方式中,处理器901执行的指令中,根据所述时间间隔确定搜索结果卡片样式,包括:In a possible implementation manner, in the instructions executed by the processor 901, determining the search result card style according to the time interval includes:
当所述时间间隔小于第一预设时间间隔时,将第一卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval is less than the first preset time interval, the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
当所述时间间隔大于或等于所述第一预设时间间隔时,将第二卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度比所述第一时间段的时间长度长。When the time interval is greater than or equal to the first preset time interval, the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target The weather information of the second time period of time, the time length of the second time period is longer than the time length of the first time period.
基于同一技术构思,本申请实施例还提供了一种计算机设备。参照图10所示,为本申请实施例提供的计算机设备1000的结构示意图,包括处理器1001、存储器1002、和总线1003。其中,存储器1002用于存储执行指令,包括内存10021和外部存储器10022;这里的内存10021也称内存储器,用于暂时存放处理器1001中的运算数据,以及与硬盘等外部存储器10022交换的数据,处理器1001通过内存10021与外部存储器10022进行数据交换,当计算机设备1000运行时,处理器1001与存储器1002之间通过总线1003通信,使得处理器1001在执行以下指令:Based on the same technical concept, the embodiment of the present application also provides a computer device. Referring to FIG. 10, a schematic structural diagram of a computer device 1000 provided by an embodiment of this application includes a processor 1001, a memory 1002, and a bus 1003. Among them, the memory 1002 is used to store execution instructions, including memory 10021 and external memory 10022; here, the memory 10021 is also called internal memory, which is used to temporarily store the calculation data in the processor 1001 and the data exchanged with the external memory 10022 such as a hard disk. The processor 1001 exchanges data with the external memory 10022 through the memory 10021. When the computer device 1000 is running, the processor 1001 and the memory 1002 communicate through the bus 1003, so that the processor 1001 executes the following instructions:
接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;Receiving a weather search request; the weather search request includes target time indication information;
获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;Acquire a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the target time and The time interval between the current time is determined;
在搜索结果页面展示所述搜索结果卡片。Display the search result card on the search result page.
一种可能的实施方式中,处理器1001执行的指令中,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定,包括:In a possible implementation manner, in the instruction executed by the processor 1001, the card style of the search card is determined according to the time interval between the target time and the current time, including:
当所述目标时间与当前时间之间的时间间隔小于第一预设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to a first card style; the first card style displays the first card style that includes the target time Weather information for the time period;
当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval between the target time and the current time is greater than or equal to the first preset time interval, the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
一种可能的实施方式中,处理器1001执行的指令中,所述第一卡片样式中包含第一展示区域和第二展示区域,在所述第一展示区域展示所述目标时间的目标天气信息,在所述第二展示区域以折线形式展示包括所述目标时间的第一时间段的天气信息。In a possible implementation manner, in the instruction executed by the processor 1001, the first card style includes a first display area and a second display area, and the target weather information at the target time is displayed in the first display area , Displaying the weather information of the first time period including the target time in the form of a broken line in the second display area.
一种可能的实施方式中,处理器1001执行的指令中,所述第二卡片样式中包含第一展示区域和第二展示区域;在所述第一展示区域 以日历形式展示包括所述目标时间的第二时间段的天气信息,在所述第二展示区域展示与所述目标时间对应的目标天气信息。In a possible implementation manner, in the instruction executed by the processor 1001, the second card style includes a first display area and a second display area; the first display area is displayed in a calendar format including the target time The weather information for the second time period in the second display area displays the target weather information corresponding to the target time.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的信息查询方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, and the computer program executes the steps of the information query method described in the above method embodiment when the computer program is run by a processor. Wherein, the storage medium may be a volatile or nonvolatile computer readable storage medium.
本公开实施例所提供的信息查询方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的信息查询方法的步骤,具体可参见上述方法实施例,在此不再赘述。The computer program product of the information query method provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the steps of the information query method described in the above method embodiment For details, please refer to the foregoing method embodiment, which will not be repeated here.
本公开实施例还提供一种计算机程序,该计算机程序被处理器执行时实现前述实施例的任意一种方法。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The embodiments of the present disclosure also provide a computer program, which, when executed by a processor, implements any one of the methods in the foregoing embodiments. The computer program product can be specifically implemented by hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium. In another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如, 多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system and device described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式, 用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, but not to limit it. The protection scope of the present disclosure is not limited to this, although referring to the foregoing The embodiments describe the present disclosure in detail, and those of ordinary skill in the art should understand that any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure. Or it can be easily conceived of changes, or equivalent replacements of some of the technical features; and these modifications, changes or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered by the present disclosure. Within the scope of protection. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (16)

  1. 一种信息查询方法,其特征在于,包括:An information query method, characterized in that it comprises:
    获取天气搜索请求;Get weather search request;
    解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间;Parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
    获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。Obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
  2. 根据权利要求1所述的方法,其特征在于,所述解析所述天气搜索请求中的目标时间指示信息,包括:The method according to claim 1, wherein the parsing the target time indication information in the weather search request comprises:
    确定所述天气搜索请求中所包含的至少一个关键词;Determine at least one keyword included in the weather search request;
    分别利用所述关键词与预先存储的时间关键词进行匹配,将匹配成功的关键词确定为所述天气搜索请求中的目标时间指示信息。The keywords are matched with the pre-stored time keywords respectively, and the successfully matched keywords are determined as the target time indication information in the weather search request.
  3. 根据权利要求1或2所述的方法,所述确定所述目标时间指示信息指示的目标时间,包括:The method according to claim 1 or 2, wherein the determining the target time indicated by the target time indication information comprises:
    确定目标时间计算方法;所述目标时间计算方法与所述目标时间指示信息匹配的时间关键词相对应;Determine the target time calculation method; the target time calculation method corresponds to the time keyword matched by the target time indication information;
    并基于所述目标时间计算方法和所述目标时间指示信息,确定所述目标时间指示信息指示的目标时间。And based on the target time calculation method and the target time indication information, the target time indicated by the target time indication information is determined.
  4. 根据权利要求1或2所述的方法,其特征在于,所述确定所述目标时间指示信息指示的目标时间,包括:The method according to claim 1 or 2, wherein the determining the target time indicated by the target time indication information comprises:
    将所述目标时间指示信息输入至预先训练的神经网络模型中,输出所述目标时间指示信息指示的目标时间,其中,所述神经网络模型是基于样本时间指示信息以及样本时间指示信息对应的时间标签训练得到的。Input the target time indication information into a pre-trained neural network model, and output the target time indicated by the target time indication information, wherein the neural network model is based on the sample time indication information and the time corresponding to the sample time indication information Obtained from label training.
  5. 根据权利要求1所述的方法,其特征在于,所述天气搜索请 求中携带有地点信息;The method according to claim 1, wherein the weather search request carries location information;
    所述获取与所述目标时间对应的目标天气信息,包括:The acquiring target weather information corresponding to the target time includes:
    获取与所述地点信息和所述目标时间对应的天气信息。Obtain weather information corresponding to the location information and the target time.
  6. 根据权利要求1所述的方法,其特征在于,所述基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片,包括:The method according to claim 1, wherein said generating a search result card corresponding to said search request based on said target time and said target weather information comprises:
    计算当前时间与所述目标时间之间的时间间隔;Calculating the time interval between the current time and the target time;
    根据所述时间间隔确定搜索结果卡片样式;Determine the search result card style according to the time interval;
    基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
  7. 根据权利要求6所述的方法,其特征在于,所述基于所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片,包括:The method according to claim 6, wherein the generating a search result card corresponding to the search request according to the search result card style based on the target weather information comprises:
    根据所述时间间隔确定除所述目标时间对应的目标天气信息外的其他天气信息;Determine other weather information except for the target weather information corresponding to the target time according to the time interval;
    基于所述其他天气信息和所述目标天气信息,按照所述搜索结果卡片样式生成所述搜索请求对应的搜索结果卡片。Based on the other weather information and the target weather information, a search result card corresponding to the search request is generated according to the search result card style.
  8. 根据权利要求6或7所述的方法,其特征在于,根据所述时间间隔确定搜索结果卡片样式,包括:The method according to claim 6 or 7, wherein determining the search result card style according to the time interval comprises:
    当所述时间间隔小于第一预设时间间隔时,将第一卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval is less than the first preset time interval, the first card style is used as the search result card style corresponding to the time interval; wherein, the first card style that includes the target time is displayed Weather information for the time period;
    当所述时间间隔大于或等于所述第一预设时间间隔时,将第二卡片样式作为所述时间间隔对应的搜索结果卡片样式;其中,所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述 第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval is greater than or equal to the first preset time interval, the second card style is used as the search result card style corresponding to the time interval; wherein the second card style is displayed including the target The weather information of the second time period of time, the time length of the second time period is greater than the time length of the first time period.
  9. 一种信息查询方法,其特征在于,包括:An information query method, characterized in that it comprises:
    接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;Receiving a weather search request; the weather search request includes target time indication information;
    获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;Acquire a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on the target time and The time interval between the current time is determined;
    在搜索结果页面展示所述搜索结果卡片。Display the search result card on the search result page.
  10. 根据权利要求9所述的方法,其特征在于,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定,包括:The method according to claim 9, wherein the card style of the search card is determined according to the time interval between the target time and the current time, comprising:
    当所述目标时间与当前时间之间的时间间隔小于第一预设时间间隔时,所述搜索结果卡片对应第一卡片样式;所述第一卡片样式中展示有包括所述目标时间的第一时间段的天气信息;When the time interval between the target time and the current time is less than the first preset time interval, the search result card corresponds to a first card style; the first card style displays the first card style that includes the target time Weather information for the time period;
    当所述目标时间与当前时间之间的时间间隔大于或等于第一预设时间间隔时,所述搜索结果卡片对应第二卡片样式;所述第二卡片样式中展示有包括所述目标时间的第二时间段的天气信息,所述第二时间段的时间长度大于所述第一时间段的时间长度。When the time interval between the target time and the current time is greater than or equal to the first preset time interval, the search result card corresponds to a second card style; the second card style displays information including the target time For weather information of the second time period, the time length of the second time period is greater than the time length of the first time period.
  11. 根据权利要求10所述的方法,其特征在于,所述第一卡片样式中包含第一展示区域和第二展示区域,在所述第一展示区域展示所述目标时间的目标天气信息,在所述第二展示区域以折线形式展示包括所述目标时间的第一时间段的天气信息。The method according to claim 10, wherein the first card style includes a first display area and a second display area, the target weather information of the target time is displayed in the first display area, and the target weather information is displayed in the first display area. The second display area displays weather information of the first time period including the target time in a broken line form.
  12. 根据权利要求10所述的方法,其特征在于,所述第二卡片样式中包含第一展示区域和第二展示区域;在所述第一展示区域以日历形式展示包括所述目标时间的第二时间段的天气信息,在所述第二展示区域展示与所述目标时间对应的目标天气信息。The method according to claim 10, wherein the second card style includes a first display area and a second display area; the second display area including the target time is displayed in the form of a calendar in the first display area. The weather information of the time period, and the target weather information corresponding to the target time is displayed in the second display area.
  13. 一种信息查询装置,其特征在于,包括:An information query device, characterized in that it comprises:
    获取模块,用于获取天气搜索请求;Obtaining module, used to obtain weather search request;
    确定模块,用于解析所述天气搜索请求中的目标时间指示信息,并确定所述目标时间指示信息指示的目标时间;A determining module, configured to parse the target time indication information in the weather search request, and determine the target time indicated by the target time indication information;
    卡片生成模块,用于获取与所述目标时间对应的目标天气信息,基于所述目标时间和所述目标天气信息生成所述搜索请求对应的搜索结果卡片。The card generation module is configured to obtain target weather information corresponding to the target time, and generate a search result card corresponding to the search request based on the target time and the target weather information.
  14. 一种信息查询装置,其特征在于,包括:An information query device, characterized in that it comprises:
    接收模块,用于接收天气搜索请求;所述天气搜索请求包括目标时间指示信息;The receiving module is configured to receive a weather search request; the weather search request includes target time indication information;
    获取模块,用于获取与所述天气搜索请求对应的搜索结果卡片;所述搜索结果卡片中包括与所述目标时间指示信息指示的目标时间对应的目标天气信息,所述搜索卡片的卡片样式根据所述目标时间与所述当前时间之的时间间隔确定;The obtaining module is configured to obtain a search result card corresponding to the weather search request; the search result card includes target weather information corresponding to the target time indicated by the target time indication information, and the card style of the search card is based on The time interval between the target time and the current time is determined;
    展示模块,用于在搜索结果页面展示所述搜索结果卡片。The display module is used to display the search result card on the search result page.
  15. 一种计算机设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至8任一所述的信息查询方法的步骤,或执行如权利要求9至12任一所述的信息查询方法的步骤。A computer device, characterized by comprising: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory are Through the bus communication, when the machine-readable instructions are executed by the processor, the steps of the information query method according to any one of claims 1 to 8 are executed, or the information according to any one of claims 9 to 12 is executed The steps of the query method.
  16. 一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至8任意一项所述的信息查询方法的步骤,或执行如权利要求9至12任一所述的信息查询方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the information query method according to any one of claims 1 to 8 are executed , Or execute the steps of the information query method according to any one of claims 9 to 12.
PCT/CN2021/093570 2020-06-17 2021-05-13 Information query method and device WO2021254046A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010555306.9A CN111753173A (en) 2020-06-17 2020-06-17 Information query method and device
CN202010555306.9 2020-06-17

Publications (1)

Publication Number Publication Date
WO2021254046A1 true WO2021254046A1 (en) 2021-12-23

Family

ID=72674723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093570 WO2021254046A1 (en) 2020-06-17 2021-05-13 Information query method and device

Country Status (2)

Country Link
CN (1) CN111753173A (en)
WO (1) WO2021254046A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment
CN115097988A (en) * 2022-07-20 2022-09-23 抖音视界有限公司 Information display method and device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753173A (en) * 2020-06-17 2020-10-09 北京字节跳动网络技术有限公司 Information query method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000434A1 (en) * 2013-07-04 2015-01-08 Tencent Technology (Shenzhen) Company Limited Method,system and apparatus for weather conditions presentation
CN104484361A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Method and device for displaying information
CN106782537A (en) * 2016-12-27 2017-05-31 深圳前海勇艺达机器人有限公司 The method and system of weather is inquired about in robot
CN110502682A (en) * 2019-07-17 2019-11-26 北京小米移动软件有限公司 Querying method and device, the storage medium of Weather information
CN111753173A (en) * 2020-06-17 2020-10-09 北京字节跳动网络技术有限公司 Information query method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870672B (en) * 2012-12-12 2017-11-03 联想(北京)有限公司 Date acquisition methods and device
CN105653738B (en) * 2016-03-01 2020-05-22 北京百度网讯科技有限公司 Search result broadcasting method and device based on artificial intelligence
CN107992494A (en) * 2016-10-26 2018-05-04 阿里巴巴集团控股有限公司 A kind of information providing method and device
CN110852043B (en) * 2019-11-19 2023-05-23 北京字节跳动网络技术有限公司 Text transcription method, device, equipment and storage medium
CN111046265B (en) * 2019-12-11 2023-08-29 北京小米移动软件有限公司 Card data display method, device, equipment and storage medium
CN111177494A (en) * 2019-12-27 2020-05-19 北京天译科技有限公司 Semantic analysis method in voice interaction based on weather

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000434A1 (en) * 2013-07-04 2015-01-08 Tencent Technology (Shenzhen) Company Limited Method,system and apparatus for weather conditions presentation
CN104484361A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Method and device for displaying information
CN106782537A (en) * 2016-12-27 2017-05-31 深圳前海勇艺达机器人有限公司 The method and system of weather is inquired about in robot
CN110502682A (en) * 2019-07-17 2019-11-26 北京小米移动软件有限公司 Querying method and device, the storage medium of Weather information
CN111753173A (en) * 2020-06-17 2020-10-09 北京字节跳动网络技术有限公司 Information query method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment
CN115097988A (en) * 2022-07-20 2022-09-23 抖音视界有限公司 Information display method and device, computer equipment and storage medium
CN115097988B (en) * 2022-07-20 2024-03-22 抖音视界有限公司 Information display method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111753173A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
WO2021254046A1 (en) Information query method and device
US20220164395A1 (en) Using Natural Language Processing for Visual Analysis of a Data Set
US10347019B2 (en) Intelligent data munging
US20220277005A1 (en) Semantic parsing of natural language query
JP6554791B2 (en) Information processing system and information processing method for character input prediction
US11663250B2 (en) Method for capturing and updating database entries of CRM system based on voice commands
WO2022179123A1 (en) Data update and presentation method and apparatus, and electronic device and storage medium
US20200349415A1 (en) Method for capturing and storing contact information from a physical medium using machine learning
CN109493136A (en) A kind of clicking rate predictor method and system based on Xgboost algorithm
CN111209396A (en) Entity recognition model training method, entity recognition method and related device
WO2020238498A1 (en) Question and answer information processing method and system, computer device and storage medium
CN114595686A (en) Knowledge extraction method, and training method and device of knowledge extraction model
CN107894978B (en) Time word extraction method and device
CN111737537B (en) POI recommendation method, device and medium based on graph database
CN117149804A (en) Data processing method, device, electronic equipment and storage medium
CN116955856A (en) Information display method, device, electronic equipment and storage medium
WO2022271369A1 (en) Training of an object linking model
KR20230069428A (en) Method for generating metadata for automatically determining type of data and apparatus for determining type of data using a machine learning/deep learning model for the same
CN113641780A (en) Search method, system, device, storage medium and computer program product
CN113779362A (en) Data searching method and device
CN113536778A (en) Title generation method and device and computer readable storage medium
US20240265202A1 (en) Auto-suggestion with rich objects
CN114443692B (en) Data query method and device
WO2019231636A1 (en) Multivariate multi-time point forecasting
US20240104297A1 (en) Analysis of spreadsheet table in response to user input

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21826089

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 290323)

122 Ep: pct application non-entry in european phase

Ref document number: 21826089

Country of ref document: EP

Kind code of ref document: A1