Information recommendation method and service device
By using the knowledge graph to generate recommended sentences in the query service device, the problem in the existing technology that users cannot fully understand the query results is solved, and a more comprehensive description of the answer entities and the stimulation of user interests are achieved.
Patent Information
- Application Number
- CN202010790355.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-08-07
AI Technical Summary
Existing query service equipment can only obtain the reply statement of the query statement through the question and answer system, and cannot provide other information related to the query statement, resulting in the user being unable to fully understand the query results.
After receiving the query statement, obtain the reply statement through the question and answer system, search for the associated answer entity in the established knowledge graph, and generate a recommended statement based on the attribute-attribute value relationship of the answer entity, including a preset number of attributes and properties value so users can learn more about it.
Through recommended sentences, users can gain a more comprehensive understanding of answer entities, expand their horizons, stimulate cognitive interest, and trigger further searches for answer entities.
Smart Images

Figure CN111949782B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to Internet technology, and in particular to an information recommendation method and service device. Background Art
[0002] At present, when a query statement is received from the outside, the service device with query service deployed on the market will input the query statement into the question-answering system for query and obtain the reply statement obtained by the question-answering system after the query, which contains the information to be queried by the query statement. The question-answering system here can be implemented by means of search engines, knowledge graphs, etc. deployed in the service device.
[0003] However, in actual applications, if we only rely on the question-answering system to implement the query statement, the user can only obtain the reply statement of the query statement, but cannot obtain other information related to the information queried by the query statement, making it impossible for the user to fully understand the information queried by the query statement from the reply statement. Summary of the invention
[0004] The present application provides an information recommendation method and service device for generating a recommendation statement for an answer entity corresponding to a query statement, so that a user can have a more comprehensive understanding of the answer entity based on the recommendation statement.
[0005] The technical solutions provided in this application include:
[0006] According to a first aspect of the present application, there is provided a service device, comprising: an input interface and a processor;
[0007] The processor is configured to:
[0008] When a query statement is received through the input interface, the query statement is input into the configured question-answering system to obtain a reply statement corresponding to the query statement;
[0009] Finding an answer entity associated with the reply statement in the established knowledge graph;
[0010] A recommendation statement is generated according to the corresponding relationship between the attributes and attribute values configured in the answer entity; the recommendation statement includes a preset number N of attributes and corresponding attribute values, where N is greater than or equal to 1.
[0011] According to a second aspect of the present application, there is provided an information recommendation method, comprising:
[0012] When a query statement is received, the query statement is input into the configured question-answering system to obtain a reply statement corresponding to the query statement;
[0013] Finding an answer entity associated with the reply statement in the established knowledge graph;
[0014] A recommendation statement is generated according to the corresponding relationship between the attributes and attribute values configured in the answer entity; the recommendation statement includes a preset number N of attributes and corresponding attribute values, where N is greater than or equal to 1.
[0015] It can be seen from the above technical solution that in the present application, since the N attributes included in the recommendation statement and the corresponding attribute values are used to describe the relevant information of the answer entity, the user can be informed of the relevant information of the answer entity through the recommendation statement, thereby expanding the user's horizons, helping the user to learn more knowledge related to the answer entity, allowing the user to have a specific understanding of the answer entity, and at the same time stimulating the user's cognitive interest and triggering further search for the answer entity. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.
[0017] Figure 1 Schematic diagram of an operation scenario between a display device and a control device according to some embodiments is exemplarily shown in FIG.
[0018] Figure 2 exemplarily shows a hardware configuration block diagram of a display device 200 according to some embodiments;
[0019] Figure 3 exemplarily shows a hardware configuration block diagram of a control device 100 according to some embodiments;
[0020] Figure 4 exemplarily shows a schematic diagram of software configuration in a display device 200 according to some embodiments;
[0021] Figure 5 exemplarily shows a schematic diagram of an icon control interface display of an application in a display device 200 according to some embodiments;
[0022] Figure 6 A schematic diagram of a knowledge graph according to some embodiments is exemplarily shown;
[0023] Figure 7 A flowchart of an information recommendation method according to some embodiments is exemplified;
[0024] Figure 8 A schematic diagram exemplarily illustrates a GUI provided by a service device when displaying a recommendation statement according to some embodiments;
[0025] Fig. 9exemplarily shows a flowchart of implementation of step 103 according to some embodiments;
[0026] Fig.10 The implementation flowchart of step 203 according to some embodiments is exemplarily shown. DETAILED DESCRIPTION
[0027] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0028] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0029] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0030] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.
[0031] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.
[0032] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0033] The term "remote control" as used in this application refers to a component of an electronic device (such as the display device disclosed in this application), which can usually wirelessly control the electronic device within a short distance. It is generally connected to the electronic device using infrared and / or radio frequency (RF) signals and / or Bluetooth, and may also include functional modules such as WiFi, wireless USB, Bluetooth, motion sensors, etc. For example: a handheld touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.
[0034] The term "gesture" used in this application refers to a user's behavior of expressing an intended idea, action, purpose, or result through a change in hand shape or hand movement.
[0035] Figure 1 FIG. 2 is a schematic diagram showing an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through the mobile terminal 300 and the control apparatus 100 .
[0036] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, etc., to control the display device 200 wirelessly or in a wired manner. The user may input user commands through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. For example, the user may input corresponding control commands through the volume plus and minus keys, channel control keys, up / down / left / right movement keys, voice input keys, menu keys, power on / off keys, etc. on the remote controller to realize the function of controlling the display device 200.
[0037] In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices may also be used to control the display device 200. For example, an application running on the smart device is used to control the display device 200. The application may be configured to provide the user with various controls in an intuitive user interface (UI) on a screen associated with the smart device.
[0038] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and realize connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. For example, it is possible to establish a control instruction protocol with the mobile terminal 300 and synchronize the remote control keyboard to the mobile terminal 300, and realize the function of controlling the display device 200 by controlling the user interface on the mobile terminal 300. It is also possible to transmit the audio and video content displayed on the mobile terminal 300 to the display device 200 to realize the synchronous display function.
[0039] like Figure 1 It is also shown that the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. For example, the display device 200 receives software program updates or accesses a remotely stored digital media library by sending and receiving information and interacting with an electronic program guide (EPG). The server 400 may be a cluster or multiple clusters, and may include one or more types of servers. Other network service content such as video on demand and advertising services is provided through the server 400.
[0040] The display device 200 may include a liquid crystal display, an OLED display, or a projection display device. The specific display device type, size, and resolution are not limited. It is understood by those skilled in the art that the display device 200 may be modified in performance and configuration as needed.
[0041] In addition to providing a broadcast receiving television function, the display device 200 may also provide an intelligent network television function that provides a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like. Figure 2 Schematically shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment.
[0042] In some embodiments, the display device 200 includes at least one of a controller 250, a tuner and demodulator 210, a communicator 220, a detector 230, an input / output interface 255, a display 275, an audio output interface 285, a memory 260, a power supply 290, a user interface 265, and an external device interface 240.
[0043] In some embodiments, the display 275 is a component for receiving the image signal outputted from the first processor and displaying video content and images as well as a menu control interface.
[0044] In some embodiments, the display 275 includes a display screen component for presenting images and a driving component for driving image display.
[0045] In some embodiments, the displayed video content may be from broadcast television content, or may be various broadcast signals received through wired or wireless communication protocols, or may be from various image content sent from a network server via a network communication protocol.
[0046] In some embodiments, the display 275 is used to present a user manipulation UI interface generated in the display device 200 and used to control the display device 200 .
[0047] In some embodiments, depending on the type of display 275, a driving component for driving the display is also included.
[0048] In some embodiments, the display 275 is a projection display, and may also include a projection device and a projection screen.
[0049] In some embodiments, the communicator 220 is a component for communicating with an external device or an external server according to various communication protocol types. For example, the communicator may include at least one of a Wifi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip, other network communication protocol chips or a near field communication protocol chip, and an infrared receiver.
[0050] In some embodiments, the display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the content providing device through the communicator 220 .
[0051] In some embodiments, the user interface 265 may be used to receive infrared control signals from the control device 100 (eg, an infrared remote controller, etc.).
[0052] In some embodiments, the detector 230 is a signal used by the display device 200 to collect external environment or interact with the outside.
[0053] In some embodiments, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity, and can adaptively display parameter changes by collecting ambient light.
[0054] In some embodiments, the detector 230 may also include an image collector, such as a camera, a webcam, etc., which can be used to collect external environment scenes, as well as to collect user attributes or gestures for interacting with the user. It can adaptively change display parameters and recognize user gestures to achieve the function of interacting with the user.
[0055] In some embodiments, the detector 230 may also include a temperature sensor or the like, such as by sensing the ambient temperature.
[0056] In some embodiments, the display device 200 can adaptively adjust the display color temperature of the image. For example, when the temperature is high, the display device 200 can be adjusted to display a cooler color temperature of the image, or when the temperature is low, the display device 200 can be adjusted to display a warmer color temperature of the image.
[0057] In some embodiments, the detector 230 may also be a sound collector, such as a microphone, which can be used to receive the user's voice, for example, including a voice signal of a control instruction of the user to control the display device 200, or collect environmental sounds to identify the type of environmental scene, so that the display device 200 can adaptively adapt to the environmental noise.
[0058] In some embodiments, Figure 2 As shown, the input / output interface 255 is configured to perform data transmission between the controller 250 and other external devices or other controllers 250, such as receiving video signal data and audio signal data, or command instruction data from external devices.
[0059] In some embodiments, the external device interface 240 may include, but is not limited to, any one or more interfaces such as a high-definition multimedia interface HDMI interface, an analog or digital high-definition component input interface, a composite video input interface, a USB input interface, an RGB port, etc. It is also possible that the above multiple interfaces form a composite input / output interface.
[0060] In some embodiments, Figure 2 As shown, the tuner-demodulator 210 is configured to receive broadcast television signals by wired or wireless reception, and can perform modulation and demodulation processing such as amplification, mixing and resonance, and demodulate audio and video signals from multiple wireless or wired broadcast television signals. The audio and video signals may include television audio and video signals carried in the television channel frequency selected by the user, as well as EPG data signals.
[0061] In some embodiments, the frequency demodulated by the tuner-demodulator 210 is controlled by the controller 250, which can send a control signal based on the user's selection to make the modem respond to the TV signal frequency selected by the user and modulate and demodulate the TV signal carried by the frequency.
[0062] In some embodiments, the broadcast television signal can be classified into terrestrial broadcast signals, cable broadcast signals, satellite broadcast signals, or Internet broadcast signals according to different broadcasting formats of the television signal. Or it can be classified into digital modulation signals, analog modulation signals, etc. according to different modulation types. Or it can be classified into digital signals, analog signals, etc. according to different signal types.
[0063] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box. In this way, the set-top box outputs the TV audio and video signals modulated and demodulated from the received broadcast TV signals to the main device, and the main device receives the audio and video signals through the first input / output interface.
[0064] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 can control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 275, the controller 250 can perform operations related to the object selected by the user command.
[0065] In some embodiments, the object may be any one of the selectable objects, such as a hyperlink or an icon. Operations related to the selected object may include, for example, displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon. User commands for selecting UI objects may be commands inputted through various input devices (e.g., a mouse, keyboard, touchpad, etc.) connected to the display device 200 or voice commands corresponding to voices spoken by the user.
[0066] like Figure 2 As shown, the controller 250 includes at least one of a random access memory 251 (Random Access Memory, RAM), a read-only memory 252 (Read-Only Memory, ROM), a video processor 270, an audio processor 280, other processors 253 (for example: a graphics processor (Graphics Processing Unit, GPU), a central processing unit 254 (Central Processing Unit, CPU), a communication interface (Communication Interface), and a communication bus 256 (Bus). The communication bus connects various components.
[0067] In some embodiments, RAM 251 is used to store temporary data for the operating system or other running programs.
[0068] In some embodiments, ROM 252 is used to store various system startup instructions.
[0069] In some embodiments, ROM 252 is used to store a basic input / output system, called Basic Input Output System (BIOS), which is used to complete the power-on self-test of the system, the initialization of each functional module in the system, the basic input / output driver of the system, and the booting operating system.
[0070] In some embodiments, when a power-on signal is received, the display device 200 starts to power on, and the CPU runs the system startup instruction in the ROM 252, and copies the temporary data of the operating system stored in the memory to the RAM 251, so as to start or run the operating system. After the operating system is started, the CPU copies the temporary data of various application programs in the memory to the RAM 251, so as to start or run various application programs.
[0071] In some embodiments, the CPU processor 254 is used to execute operating system and application instructions stored in the memory, and to execute various applications, data and content according to various interactive instructions received from external input, so as to finally display and play various audio and video contents.
[0072] In some exemplary embodiments, the CPU processor 254 may include multiple processors. The multiple processors may include a main processor and one or more sub-processors. The main processor is used to perform some operations of the display device 200 in the pre-power-on mode and / or the operation of displaying the picture in the normal mode. The one or more sub-processors are used for an operation in the standby mode and the like.
[0073] In some embodiments, the graphics processor 253 is used to generate various graphic objects, such as icons, operation menus, and user input command display graphics, etc. It includes an operator that performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes. It also includes a renderer that renders various objects obtained based on the operator, and the rendered objects are used to be displayed on the display.
[0074] In some embodiments, the video processor 270 is configured to receive an external video signal and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, image synthesis, etc. according to the standard codec protocol of the input signal, and obtain a signal that can be directly displayed or played on the display device 200.
[0075] In some embodiments, the video processor 270 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, etc.
[0076] Among them, the demultiplexing module is used to demultiplex the input audio and video data stream. For example, if MPEG-2 is input, the demultiplexing module demultiplexes it into video signals and audio signals.
[0077] The video decoding module is used to process the demultiplexed video signal, including decoding and scaling.
[0078] The image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display.
[0079] The frame rate conversion module is used to convert the input video frame rate, such as converting the 60Hz frame rate to 120Hz frame rate or 240Hz frame rate. The usual format is implemented by interpolation.
[0080] The display formatting module is used to receive the frame rate converted video output signal and change the signal to conform to the display format signal, such as outputting RGB data signal.
[0081] In some embodiments, the graphics processor 253 can be integrated with the video processor or can be separately configured. When integrated, it can perform processing of graphic signals output to the display. When separately configured, it can perform different functions respectively, such as GPU + FRC (Frame Rate Conversion) architecture.
[0082] In some embodiments, the audio processor 280 is used to receive an external audio signal, and perform decompression and decoding, as well as noise reduction, digital-to-analog conversion, and amplification processing according to the standard codec protocol of the input signal to obtain a sound signal that can be played in a speaker.
[0083] In some embodiments, the video processor 270 may include one or more chips. The audio processor may also include one or more chips.
[0084] In some embodiments, the video processor 270 and the audio processor 280 may be separate chips, or may be integrated with the controller into one or more chips.
[0085] In some embodiments, the audio output receives the sound signal output by the audio processor 280 under the control of the controller 250, such as the speaker 286, and in addition to the speaker carried by the display device 200 itself, can be output to the external audio output terminal of the generating device of the external device, such as an external audio interface or a headphone interface, etc., and can also include a short-range communication module in the communication interface, for example, a Bluetooth module for Bluetooth speaker sound output.
[0086] The power supply 290, under the control of the controller 250, uses the power input from the external power supply to provide power supply support for the display device 200. The power supply 290 may include a built-in power supply circuit installed inside the display device 200, or may be an external power supply installed on the display device 200 to provide a power interface for an external power supply in the display device 200.
[0087] The user interface 265 is used to receive a user input signal, and then send the received user input signal to the controller 250. The user input signal may be a remote control signal received by an infrared receiver, and may receive various user control signals through a network communication module.
[0088] In some embodiments, the user inputs a user command through the control device 100 or the mobile terminal 300 , the user input interface is based on the user input, and the display device 200 responds to the user input through the controller 250 .
[0089] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 275, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0090] In some embodiments, the "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.
[0091] The memory 260 includes storing various software modules for driving the display device 200. For example, the various software modules stored in the first memory include at least one of a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules.
[0092] The basic module is a bottom-level software module used for signal communication between various hardware in the display device 200 and sending processing and control signals to the upper-level modules. The detection module is a management module used to collect various information from various sensors or user input interfaces, and perform digital-to-analog conversion and analysis management.
[0093] For example, the speech recognition module includes a speech analysis module and a speech instruction database module. The display control module is a module for controlling the display to display image content, and can be used to play multimedia image content and UI interface information. The communication module is a module for controlling and communicating data with external devices. The browser module is a module for executing data communication between browsing servers. The service module is a module for providing various services and various applications. At the same time, the memory 260 is also used to store and receive external data and user data, images of various items in various user interfaces, and visual effects of focus objects.
[0094] Figure 3 Schematically shows a configuration block diagram of the control device 100 according to an exemplary embodiment. Figure 3 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.
[0095] The control device 100 is configured to control the display device 200, and can receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200. For example, the user operates the channel increase and decrease keys on the control device 100, and the display device 200 responds to the channel increase and decrease operations.
[0096] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.
[0097] In some embodiments, Figure 1 As shown, the mobile terminal 300 or other smart electronic device can play a similar function to the control device 100 after installing the application for controlling the display device 200. For example, the user can install the application to realize the function of the physical button of the control device 100 through various function keys or virtual buttons of the graphical user interface provided on the mobile terminal 300 or other smart electronic device.
[0098] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface 130, and a communication bus. The controller is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.
[0099] The communication interface 130, under the control of the controller 110, realizes the communication of control signals and data signals with the display device 200. For example, the received user input signal is sent to the display device 200. The communication interface 130 may include at least one of other near field communication modules such as a WiFi chip 131, a Bluetooth module 132, and an NFC module 133.
[0100] The user input / output interface 140 includes at least one of other input interfaces such as a microphone 141, a touch panel 142, a sensor 143, and a button 144. For example, the user can input user commands through voice, touch, gesture, pressing, and other actions. The input interface converts the received analog signal into a digital signal, and the digital signal into a corresponding command signal, and sends it to the display device 200.
[0101] The output interface includes an interface for sending received user commands to the display device 200. In some embodiments, it can be an infrared interface or a radio frequency interface. For example, in the case of an infrared signal interface, the user input command needs to be converted into an infrared control signal according to an infrared control protocol, and then sent to the display device 200 via an infrared sending module. For another example, in the case of a radio frequency signal interface, the user input command needs to be converted into a digital signal, and then modulated according to a radio frequency control signal modulation protocol, and then sent to the display device 200 by a radio frequency sending terminal.
[0102] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with a communication interface 130, such as a WiFi, Bluetooth, NFC or other module, which can encode the user input command through the WiFi protocol, Bluetooth protocol, or NFC protocol and send it to the display device 200.
[0103] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 200 under the control of the controller. The memory 190 can store various control signal instructions input by the user.
[0104] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller, and can be a battery and related control circuits.
[0105] In some embodiments, the system may include a kernel, a command parser (shell), a file system, and an application. The kernel, shell, and file system together form the basic operating system structure, which allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates the kernel space, abstracts the hardware, initializes hardware parameters, etc., runs and maintains virtual memory, schedulers, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. After startup, the application is compiled into machine code to form a process.
[0106] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0107] In some embodiments, at least one application is running in the application layer, and these applications may be window programs, system settings programs, clock programs, camera applications, etc. provided by the operating system; or they may be applications developed by third-party developers, such as hi-view programs, karaoke programs, magic mirror programs, etc. In specific implementation, the application packages in the application layer are not limited to the above examples, and may actually include other application packages, which are not limited in the embodiments of the present application.
[0108] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Applications can access system resources and obtain system services during execution through the API interface.
[0109] like Figure 4As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.
[0110] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit of the application (including switching the user interface currently displayed in the display window to the system desktop), opening, and backing (including switching the user interface currently displayed in the display window to the parent user interface of the currently displayed user interface), etc.
[0111] In some embodiments, the window manager is used to manage all window programs, such as obtaining the display size, determining whether there is a status bar, locking the screen, capturing the screen, controlling display window changes (for example, shrinking the display window, shaking the display, distorting the display, etc.), etc.
[0112] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0113] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, touch sensor, pressure sensor, etc.), etc.
[0114] In some embodiments, the core layer further includes a power driver module for performing power management.
[0115] In some embodiments, Figure 4 The software programs and / or modules corresponding to the software architecture in Figure 2 or Figure 3 in the first memory or the second memory shown.
[0116] In some embodiments, taking the magic mirror application (photographing application) as an example, when the remote control receiving device receives the input operation of the remote control, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the input operation into the original input event (including the value of the input operation, the timestamp of the input operation and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer, identifies the control corresponding to the input event according to the current position of the focus, and the input operation is a confirmation operation. The control corresponding to the confirmation operation is the control of the magic mirror application icon. The magic mirror application calls the interface of the application framework layer to start the magic mirror application, and then starts the camera driver by calling the kernel layer to realize the capture of static images or videos through the camera.
[0117] In some embodiments, for a display device with a touch function, taking a split-screen operation as an example, the display device receives an input operation (such as a split-screen operation) performed by a user on the display screen, and the kernel layer can generate a corresponding input event according to the input operation, and report the event to the application framework layer. The activity manager of the application framework layer sets the window mode (such as a multi-window mode) and the window position and size corresponding to the input operation. The window management of the application framework layer draws the window according to the settings of the activity manager, and then sends the drawn window data to the display driver of the kernel layer, and the display driver displays the corresponding application interface in different display areas of the display screen.
[0118] In some embodiments, Figure 5 As shown in , the application layer includes at least one application that can display a corresponding icon control in the display, such as: a live TV application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control, etc.
[0119] In some embodiments, the live TV application can provide live TV through different signal sources. For example, the live TV application can use input from cable TV, wireless broadcast, satellite service, or other types of live TV services to provide TV signals. And, the live TV application can display video of the live TV signal on the display device 200.
[0120] In some embodiments, the video on demand application can provide videos from different storage sources. Unlike the live TV application, the video on demand provides video display from certain storage sources. For example, the video on demand can come from the server side of the cloud storage, from the local hard disk storage containing the stored video programs.
[0121] In some embodiments, the media center application can provide an application for playing various multimedia contents. For example, the media center can be a service provided by a user to access various images or audios through the media center application, which is different from live TV or video on demand.
[0122] In some embodiments, the application center can provide and store various applications. The application can be a game, an application, or some other application related to a computer system or other device but can be run on a smart TV. The application center can obtain these applications from different sources, store them in a local storage, and then run them on the display device 200.
[0123] In order to make the description of this application clearer and more concise, some technical terms in this application are explained below:
[0124] 1. Knowledge graph: also known as scientific knowledge graph, it uses visualization technology to describe knowledge resources and their carriers, and to mine, analyze, construct, draw and display knowledge and their interrelationships.
[0125] Figure 6 Schematic diagram of a knowledge graph according to some embodiments is exemplified. Figure 6 As shown, in the knowledge graph, a node is called an entity, and the entity can be replaced by something that objectively exists and can be distinguished from each other, such as a specific person, thing, object, organization, abstract concept, etc.
[0126] For entities in the knowledge graph, the corresponding relationship between the attributes and attribute values of the entities can be configured according to actual needs during implementation. Figure 6 Taking the entity "Liu XX" as an example, the pre-configured attributes of the entity may be: occupation, height, gender, etc. Correspondingly, the attribute values may be: specific occupation type (taking driver as an example), specific height value (taking 180cm as an example), and specific gender (taking male as an example).
[0127] In addition, different entities in the knowledge graph can be connected by lines with directions. The lines can be used to represent the semantic relationship between different entities. Figure 6 Taking the entity "Liu" and the entity "Zhao" in as an example, the line between the entity "Liu" and the entity "Zhao" points from the entity "Liu" to the entity "Zhao". If the semantic relationship corresponding to the line is the wife relationship, then the line can indicate that the wife of the entity "Liu" is the entity "Zhao".
[0128] The above is a brief description of the knowledge graph.
[0129] As described above, the service device includes: an input interface and a processor. In this embodiment, the processor is configured to: when a query statement is received through the input interface, input the query statement into the configured question-answering system to obtain a reply statement corresponding to the query statement; find an answer entity associated with the reply statement in the established knowledge graph; generate a recommendation statement based on the corresponding relationship between the attributes and attribute values configured for the answer entity; the recommendation statement includes a preset number N of attributes and corresponding attribute values, where N is greater than or equal to 1.
[0130] Correspondingly, this embodiment also provides a method for implementing the corresponding operations of the above processor. Figure 7 , which is a flow chart of an information recommendation method provided in an embodiment of the present application.
[0131] like Figure 7 As shown, the process may include the following steps:
[0132] Step 101, when a query statement is received, the query statement is input into a configured question-answering system to obtain a reply statement corresponding to the query statement.
[0133] In one example, the query statement can be input from the smart device to the service device. That is, the service device and the smart device are two independent devices. In this case, the service device can be a server. In another example, the query statement can be directly input to the service device by the user, or the user can input the query statement to the service device by operating the control device of the service device. That is, the service device and the aforementioned smart device can be understood as one device.
[0134] It should be noted that the query statement received by the service device may be a query statement in voice format or a query statement in text format.
[0135] It should also be noted that the above-mentioned smart devices can be smart speakers, smart TVs, mobile phones, computers, or the aforementioned display devices and other devices, and this application does not limit the specific types of smart devices.
[0136] As an example, the above query statement can be input into the service device through an input interface on the service device.
[0137] As an example, since the specific content of the query statement is determined by the user's wishes, the specific content of the query statement is varied. However, in actual applications, the service device cannot generate corresponding recommended statements for any query statement. Therefore, it is necessary to pre-set recommendation conditions to determine whether a recommended statement can be generated for the received query statement, and generate a recommended statement for the query statement if the received query statement meets the above recommendation conditions.
[0138] Optionally, the above-mentioned preset recommendation conditions may include: the query statement at least includes a main entity, and a semantic relationship between the main entity and the answer entity to be queried, and the semantic relationship is the same as the preset semantic relationship.
[0139] The following is an example of the main entity in the query statement and the semantic relationship between the main entity and the answer entity to be queried:
[0140] For example, when a query includes characters and character relationships, the characters in the query can be used as the main entity, and character relationships can be used as semantic relationships. For example, if the query is "Who is Yao's wife?", the main entity in the query is "Yao", and the semantic relationship between the main entity "Yao" and the answer entity to be queried is "wife".
[0141] Of course, in addition to the above-mentioned characters and character relationships, the main entities and semantic relationships in the query statement can also be regions and positions (such as governors, mayors, etc.), film and television works and work information (such as actors, directors, screenwriters, producers, hosts, etc.), songs and song information (such as singers, lyricists, MV directors, producers, arrangers, etc.), books and book information (authors, translators, editors-in-chief, etc.), schools and school information (principals, famous alumni, etc.), etc. This application does not limit the main entities and semantic relationships specifically contained in the query statement.
[0142] It should be noted that the semantic relationship in the above-mentioned preset recommendation conditions can be set according to actual conditions, and this application does not specifically limit the semantic relationship in the recommendation conditions.
[0143] When the service device receives a query statement and determines that the query statement meets the above-mentioned preset recommendation conditions, the service device will input the query statement into the configured question-and-answer system so that the question-and-answer system outputs a reply statement corresponding to the query statement. In one example, the reply statement may include the answer entity queried by the query statement. In another example, the reply statement may carry the answer entity ID of the answer entity queried by the query statement (the entity ID will be described below). Of course, the reply statement may also include other information according to actual conditions, such as the main entity in the query statement, and the semantic relationship between the main entity in the query statement and the answer entity to be queried. The present application does not specifically limit the content that can be included in the reply statement.
[0144] It should be noted that the above-mentioned question-answering system can be deployed in a service device, so that the service device can locally input the query statement into the question-answering system and obtain the reply statement output by the question-answering system locally. Of course, the above-mentioned question-answering system can also be deployed in other devices (referred to as target devices) other than the service device, so that the service device needs to input the query statement into the question-answering system and obtain the reply statement output by the question-answering system through a communication connection with the target device.
[0145] It should also be noted that the above-mentioned question-answering system can be implemented in a variety of ways, such as implementing the question-answering system through a search engine, or implementing the question-answering system through a knowledge graph, etc. This application does not limit the specific implementation method of the question-answering system.
[0146] Step 102, searching the established knowledge graph for an answer entity associated with the reply statement.
[0147] Before executing this step 102, it is necessary to pre-establish a knowledge graph in the service device. The knowledge graph can be established in a manner known to those skilled in the art, which will not be described in detail here. Since there may be different entities with the same entity name in the knowledge graph, in order to distinguish the different entities with the same entity name, a unique entity ID can be assigned to each entity in the knowledge graph.
[0148] In an embodiment of the present application, there are multiple implementations for finding an answer entity associated with a reply statement in an established knowledge graph. As one implementation, as mentioned above, when the reply statement carries the answer entity ID of the answer entity, an entity matching the answer entity ID can be found in the established knowledge graph, and then the found entity can be determined as the answer entity. In this implementation, since the answer entity ID can uniquely identify the answer entity, even if there are multiple other entities with the same entity name as the answer entity, accurate search for the answer entity can be achieved.
[0149] Step 103: Generate a recommendation statement based on the corresponding relationship between the attributes and attribute values configured in the answer entity; the recommendation statement includes a preset number N of attributes and corresponding attribute values, where N is greater than or equal to 1.
[0150] Before executing step 103, the corresponding relationship between attributes and attribute values is configured for the answer entity in the knowledge graph in advance, and the corresponding relationship between attributes and attribute values can be used to describe the relevant information of the answer entity. The following table lists some attributes used to configure the entity, see Table 1:
[0151] Table 1
[0152]
[0153] Here, the third row in Table 1 is used as an example for explanation, where "ex" is an attribute, and the attribute "ex" belongs to the third-level attribute category "character relationship", and the third-level attribute category "character relationship" belongs to the second-level attribute category "general", and the second-level attribute category "general" belongs to the second-level attribute category "character". As for the specific content of the attribute value corresponding to the attribute "ex", it can be set according to actual conditions, and this application does not make specific restrictions on this.
[0154] It should be noted that the primary, secondary and tertiary attribute categories in Table 1 above are used to classify different attributes, thereby facilitating the management and planning of different attributes, and are not necessary in the process of configuring attributes for an entity.
[0155] It should also be noted that the attributes listed in Table 1 above are only examples. In actual applications, other attributes may be configured for the entity according to actual conditions, and this application does not make any specific limitations on this.
[0156] In the embodiment of the present application, the N attributes and corresponding attribute values included in the recommendation statement are the attributes and attribute values included in the attribute-attribute value correspondence relationship pre-configured by the answer entity. As for how to generate a recommendation statement containing N attributes and corresponding attribute values, the following will be combined with Fig. 9 The process shown is described in detail and will not be repeated here.
[0157] It can be seen from the above step 103 that since the attributes and the corresponding attribute values record the relevant information of the answer entity, the generated recommendation sentence includes a preset number N attributes and the corresponding attribute values. Therefore, the relevant information of the answer entity corresponding to the query sentence can be obtained through the recommendation sentence, thereby expanding the user's field of vision, helping the user to understand more knowledge related to the answer entity, allowing the user to have a specific understanding of the answer entity, and at the same time stimulating the user's cognitive interest and triggering further search for the answer entity.
[0158] In the embodiment of the present application, there are multiple ways to implement the service device outputting the recommendation statement.
[0159] As one of the implementation methods, as mentioned above, when the service device and the smart device are not the same device, the service device can send the recommendation sentence and the reply sentence to the smart device, and the smart device outputs the received recommendation sentence and the reply sentence, for example, by voice playback, or, if a display is available, by displaying it on the display.
[0160] As another implementation, as mentioned above, when the service device and the smart device are the same device, the service device can output through voice playback, or, if a display is provided, output through display.
[0161] The following will be combined Figure 8 The GUI shown describes in detail how the display displays the above-mentioned recommendation statements, which will not be repeated here.
[0162] So far, completed Figure 7 The process shown.
[0163] It can be seen from the above technical solution that in the present application, since the N attributes included in the recommendation statement and the corresponding attribute values are used to describe the relevant information of the answer entity, the user can be informed of the relevant information of the answer entity through the recommendation statement, thereby expanding the user's horizons, helping the user to learn more knowledge related to the answer entity, allowing the user to have a specific understanding of the answer entity, and at the same time stimulating the user's cognitive interest and triggering further search for the answer entity.
[0164] Combine the following Figure 8 The GUI shown in the figure exemplarily describes how the above display shows the recommendation statement:
[0165] Figure 8 FIG. 4 is a schematic diagram showing a GUI provided by a service device when displaying a recommendation statement.
[0166] like Figure 8 As shown, the service device may provide a GUI 800 to the display, wherein the GUI 800 includes a first display area 81 for displaying a query statement, wherein the first display area 81 includes an item 81a, wherein the query statement is displayed. The GUI 800 also includes a second display area 82 for displaying a reply statement and a third display area 83 for displaying a recommendation statement, wherein the second display area 82 includes an item 82a, wherein the item 82a is used to display the reply statement; and the third display area 83 includes an item 83a, wherein the item 83a is used to display the recommendation statement.
[0167] It should be noted that the above Figure 8 It is only a schematic diagram of a GUI for displaying recommendation statements. In actual applications, other contents besides the above-mentioned query statements, reply statements and recommendation statements can also be displayed according to actual conditions, and this application does not make specific limitations on this.
[0168] The above describes how the service device displays the recommendation statement. It should be noted that the above is only an exemplary description and is not intended to limit the present application.
[0169] The following is a detailed description of how to generate a recommendation statement based on the corresponding relationship between the attributes and attribute values configured in the answer entity in the above step 103:
[0170] See also Fig. 9 , which is a flowchart for implementing step 103 provided in an embodiment of the present application.
[0171] like Fig. 9 As shown, the process may include the following steps:
[0172] Step 201 : Select N attributes and corresponding attribute values from the corresponding relationship between attributes and attribute values configured in the answer entity.
[0173] As an example, in this step 201, there are multiple implementation methods for selecting N attributes and corresponding attribute values from the correspondence between all attributes and attribute values configured for the answer entity in the knowledge graph.
[0174] As one implementation method, a selection ratio may be preset, such as 10%, 20%, etc., and this application does not specifically limit the preset selection ratio. Based on this, when selecting N attributes and corresponding attribute values, the corresponding relationship between the attributes and attribute values configured in the answer entity may be selected according to the preset selection ratio to select the attributes of the preset selection ratio and the corresponding attribute values.
[0175] As another implementation, a selection number may be preset, such as 2, 4, etc., and the present application does not specifically limit the preset selection number. Based on this, when selecting N attributes and corresponding attribute values, the corresponding relationship between the attributes and attribute values configured in the answer entity may be selected according to the preset selection number to select the preset selection number of attributes and the corresponding attribute values.
[0176] Step 202, determine whether there is an attribute value that is the same as the main entity in the query statement or the reply statement among the selected attribute values; if so, return to step 201; if not, go to step 203.
[0177] In the embodiment of the present application, the reason why each selected attribute value is judged to determine whether the attribute value is consistent with the main entity in the query statement or the reply statement is that among the attribute values pre-configured for the answer entity, there may be an attribute value that is the same as the main entity in the query statement or the reply statement. For example, the query statement is "Who is the singer of song A?", and the reply statement corresponding to the query statement is "The singer of song A is Zhao", and the attribute value corresponding to the attribute "representative work" configured for the answer entity corresponding to Zhao in the knowledge graph is "song A". In this way, if the attribute value "song A" and its corresponding attribute "representative work" are selected to generate a recommendation statement, the recommendation statement may include "Zhao's representative work is song A", and the meaning of the recommendation statement is similar to that of the reply statement, so it cannot play the recommendation effect that the recommendation statement should have. Therefore, by judging each selected attribute value, it can be avoided that the subsequently generated recommendation statement recommends useless information to the user.
[0178] Step 203: Input each attribute and the corresponding attribute value into the set recommendation sentence generation model to obtain the recommendation sentence.
[0179] This step 203 is performed on the premise that each selected attribute value is different from the main entity in the reply statement or the query statement.
[0180] In the case where each selected attribute value is different from the main entity in the reply statement or query statement, it means that the attribute values in the subsequent recommended statements are different from the main entity, and no recommended statement with a similar meaning to the reply statement will be generated. Based on this, each selected attribute and the corresponding attribute value can be input into the preset recommended statement generation model to obtain the recommended statement. Fig.10 The process shown in FIG. 2 is a detailed description of how the recommendation statement generation model in step 203 obtains the recommendation statement, which will not be repeated here. The following is a detailed description of how the recommendation statement generation model in step 203 obtains the recommendation statement:
[0181] See also Fig.10 , Fig.10 This is a flowchart for implementing step 203 provided in an embodiment of the present application.
[0182] like Fig.10 As shown, the process may include:
[0183] Step 301, for each input attribute and corresponding attribute value, find the corresponding target sentence template in the set sentence template, fill the attribute and attribute value into the filling position of the target sentence template accordingly, and generate the corresponding recommended sub-sentence based on the attribute and attribute value filled in the target sentence template.
[0184] As an example, in step 301, at least one sentence template may be pre-set in the sentence generation model. These sentence templates may be sentence templates of the same category or sentence templates of different categories.
[0185] When the sentence generation model includes only one type of sentence template (referred to as the first type of sentence template), the first type of sentence template includes at least: a filling position for filling in an attribute (referred to as the first filling position), a filling position for filling in an attribute value (referred to as the second filling position), and a conjunction connecting the first filling position and the second filling position. For example, the sentence template may be “[attribute] is [attribute value]”, where “[attribute]” is the first filling position for filling in an attribute, “[attribute value]” is the second filling position for filling in an attribute value, and “is” is the conjunction connecting the first filling position and the second filling position.
[0186] Optionally, when the sentence generation model includes only one type of sentence template, the sentence generation model may include:
[0187] For each attribute and the corresponding attribute value, a target sentence template is selected from the set first type of sentence templates. Afterwards, the attribute is filled into the first filling position in the above target sentence template, and the attribute value is filled into the second filling position in the target sentence template. Finally, corresponding punctuation marks are set for the above target sentence template filled with attributes and attribute values to generate corresponding recommended sub-sentences. For example, assuming that the attribute is height, the corresponding attribute value is 180cm. Here, taking the target sentence template as "[attribute] is [attribute value]" as an example, after the aforementioned assumed height and 180cm corresponding to the height are filled into the target sentence template, a target sentence template filled with attributes and corresponding attribute values such as "height is 180cm" can be obtained. Afterwards, corresponding punctuation marks such as ";" are added to the target sentence template filled with attributes and corresponding attribute values to obtain a recommended sub-sentence such as "height is 180cm;".
[0188] When the sentence generation model includes at least two types of sentence templates, the first type of sentence templates and the second type of sentence templates, the first type of sentence templates are the same as the first type of sentence templates in the aforementioned implementation method, and will not be repeated here. The second type of sentence template is different from the first type of sentence template, and the second type of sentence template at least includes: a filling position for filling the answer entity (recorded as the fifth filling position), a filling position for filling the attribute (recorded as the third filling position), a filling position for filling the attribute value (recorded as the fourth filling position), a first connecting word connecting the third filling position and the fourth filling position, and a second connecting word connecting the fifth filling position and the third filling position. For example, the second type of sentence template can be "[the attribute] of [the answer entity] is [the attribute value]", wherein "[the answer entity]" is the fifth filling position for filling the answer entity name, "[the attribute]" is the third filling position for filling the attribute, "[the attribute value]" is the fourth filling position for filling the attribute value, "is" is the first connecting word connecting the third filling position and the fourth filling position, and "of" is the second connecting word connecting the fifth filling position and the third filling position.
[0189] Optionally, when the sentence generation model includes two types of sentence templates, when the sentence generation model generates a recommended sub-sentence for each input attribute and the corresponding attribute value, it may include: selecting an attribute and the corresponding attribute value from each input attribute and the corresponding attribute value as the first attribute and attribute value. Selecting a target sentence template (referred to as the first target sentence template) from the second type of sentence template, filling the first attribute and attribute value into the above-mentioned first target sentence template and adding punctuation marks, and obtaining a recommended sub-sentence corresponding to the first attribute and attribute value. For each of the remaining attributes and corresponding attribute values, selecting a target sentence template (referred to as the second target sentence template) from the first type of sentence template, filling the attribute and the corresponding attribute value into the above-mentioned second target sentence template and adding punctuation marks, and obtaining a recommended sub-sentence corresponding to the attribute and the corresponding attribute value.
[0190] It should be noted that the above-mentioned sentence template may also include other information according to actual conditions, and the conjunctions in the above-mentioned sentence template and the punctuation marks set for the sentence template may also be selected according to actual conditions, and this application does not limit this.
[0191] Step 302: Concatenate the attributes and the recommended sub-sentences corresponding to the corresponding attribute values to obtain a recommended sentence.
[0192] In step 302, there are multiple implementations for concatenating the recommendation sub-sentences into a recommendation sentence.
[0193] As one implementation method, if the recommended sub-sentences corresponding to the input attributes and the corresponding attribute values are generated according to the first type of sentence template, then the recommended sub-sentences can be directly spliced. For example, the splicing can be performed in a random manner, in the order of inputting the recommended sentence generation model with the attributes and the corresponding attribute values, etc. This application does not specifically limit the splicing method of the recommended sub-sentences.
[0194] As another implementation method, if there is a recommended sub-sentence generated according to the aforementioned second type of sentence template (recorded as the first recommended sub-sentence) in the recommended sub-sentences corresponding to the input attributes and the corresponding attribute values, then the first recommended sub-sentence needs to be used as the first recommended sub-sentence in the recommended sentence. Afterwards, the remaining recommended sub-sentences except the first recommended sub-sentence are spliced after the first recommended sub-sentence to generate a recommended sentence. In the process of splicing the remaining recommended sub-sentences after the first recommended sub-sentence, the splicing can be performed in a random manner, in the order in which the attributes and the corresponding attribute values are input into the recommended sentence generation model, and the present application does not specifically limit the splicing method of the remaining recommended sub-sentences.
[0195] The above describes in detail how the recommendation sentence generation model obtains the recommendation sentence in the above step 203. It should be noted that the above description is only an exemplary description and is not intended to limit the present application.
[0196] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
[0197] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A service device, characterized in that: include: Input interface and processor; The processor is configured to: When a query statement is received through the input interface, the query statement is input into the configured question-answering system to obtain a reply statement corresponding to the query statement; The query statement at least includes a main entity and a semantic relationship between the main entity and an answer entity to be queried; The reply statement at least includes: the main entity, the semantic relationship and the queried answer entity, and the answer entity ID; the answer entity ID is a unique identifier of the answer entity; Searching for an entity matching the answer entity ID in the established knowledge graph, and determining the found entity as the answer entity; In the corresponding relationship between attributes and attribute values configured in the answer entity, N attributes and corresponding attribute values are selected; Determine whether there is an attribute value identical to the main entity in the query statement or the reply statement among the selected attribute values; if so, return to the step of selecting N attributes and corresponding attribute values in the corresponding relationship between the attributes and attribute values configured in the answer entity; if not, input the N attributes and corresponding attribute values into the set recommendation statement generation model to obtain a recommendation statement; the recommendation statement includes a preset number N attributes and corresponding attribute values, N is greater than or equal to 1; the attribute values corresponding to the N attributes in the recommendation statement are different from the main entity in the query statement or the reply statement; The recommendation sentence generation model obtains the recommendation sentence in the following manner: For each attribute and corresponding attribute value inputted, a corresponding target sentence template is searched in the set sentence templates, the attribute and attribute value are correspondingly filled into the filling position of the target sentence template, and a corresponding recommended sub-sentence is generated according to the attribute and attribute value filled in the target sentence template; the sentence templates include at least a first type of sentence template and a second type of sentence template; The first type of sentence template at least includes: a first filling position for filling in an attribute, a second filling position for filling in an attribute value, and a conjunction connecting the first filling position and the second filling position; The second type of sentence template at least includes: a fifth filling position for filling the answer entity, a third filling position for filling the attribute, a fourth filling position for filling the attribute value, a first connecting word connecting the third filling position and the fourth filling position, and a second connecting word connecting the fifth filling position and the third filling position; The recommended sentence is obtained by concatenating the recommended sub-sentences corresponding to each attribute and the corresponding attribute value.
2. The service device according to claim 1, characterized in that: The processor is configured to output the recommendation sentence by voice; or, The processor is configured to display the recommendation statement through a display.
3. An information recommendation method, characterized in that: include: When a query statement is received, the query statement is input into the configured question-answering system to obtain a reply statement corresponding to the query statement; The query statement at least includes a main entity and a semantic relationship between the main entity and an answer entity to be queried; The reply statement at least includes: the main entity, the semantic relationship and the queried answer entity, and the answer entity ID; the answer entity ID is a unique identifier of the answer entity; Searching for an entity matching the answer entity ID in the established knowledge graph, and determining the found entity as the answer entity; In the corresponding relationship between attributes and attribute values configured in the answer entity, N attributes and corresponding attribute values are selected; Determine whether there is an attribute value identical to the main entity in the query statement or the reply statement among the selected attribute values; if so, return to the step of selecting N attributes and corresponding attribute values in the corresponding relationship between the attributes and attribute values configured in the answer entity; if not, input the N attributes and corresponding attribute values into the set recommendation statement generation model to obtain a recommendation statement; the recommendation statement includes a preset number N attributes and corresponding attribute values, N is greater than or equal to 1; the attribute values corresponding to the N attributes in the recommendation statement are different from the main entity in the query statement or the reply statement; The recommendation sentence generation model obtains the recommendation sentence in the following manner: For each attribute and corresponding attribute value inputted, a corresponding target sentence template is searched in the set sentence templates, the attribute and attribute value are correspondingly filled into the filling position of the target sentence template, and a corresponding recommended sub-sentence is generated according to the attribute and attribute value filled in the target sentence template; the sentence templates include at least a first type of sentence template and a second type of sentence template; The first type of sentence template at least includes: a first filling position for filling in an attribute, a second filling position for filling in an attribute value, and a conjunction connecting the first filling position and the second filling position; The second type of sentence template at least includes: a fifth filling position for filling the answer entity, a third filling position for filling the attribute, a fourth filling position for filling the attribute value, a first connecting word connecting the third filling position and the fourth filling position, and a second connecting word connecting the fifth filling position and the third filling position; The recommended sentence is obtained by concatenating the recommended sub-sentences corresponding to each attribute and the corresponding attribute value.
4. The method according to claim 3, characterized in that Output the recommendation sentence by voice; or, The recommendation sentence is displayed on a display.
Citation Information
Patent Citations
Question and answer method and apparatus based on knowledge map
CN108268580A
Knowledge question answering method, knowledge question answering system, and computer readable storage medium
CN109308321A
Answer generation method and device for question and answer system, equipment and storage medium
CN109815320A
Method, device and apparatus for generating question and answer information
CN110888988A
Automatic question and answer method and device, storage medium and electronic equipment
CN110990527A
