Search

CN-121979527-A - User interface generation method and device based on semantic driving

CN121979527ACN 121979527 ACN121979527 ACN 121979527ACN-121979527-A

Abstract

The application provides a user interface generation method and device based on semantic driving, comprising the steps of obtaining description information for generating a user interface UI, wherein the description information comprises at least one object to be processed, obtaining semantic description information of the object to be processed, the semantic description information of the object to be processed is used for indicating the functional intention of the object to be processed, the object to be processed is an object of a UI component to be matched in the UI, searching a UI component matched with the semantic description information of the object to be processed from a preset mapping rule base, generating an instance of the UI component matched with the semantic description information of the object to be processed, determining constraint conditions when the UI component is displayed according to collected user behavior data, device information of electronic equipment and the semantic description information of the object to be processed, and rendering the instance of the UI component according to the constraint conditions when the UI component is displayed so as to display the UI in a display area of the electronic equipment.

Inventors

  • MAO LIPENG

Assignees

  • 北京搜狐新媒体信息技术有限公司

Dates

Publication Date
20260505
Application Date
20260408

Claims (10)

  1. 1. The user interface generation method based on semantic driving is characterized by being applied to electronic equipment and comprising the following steps of: acquiring description information for generating a User Interface (UI), wherein the description information comprises at least one object to be processed; acquiring semantic description information of the object to be processed, wherein the semantic description information of the object to be processed is used for indicating the functional intention of the object to be processed, and the object to be processed is an object of a UI component to be matched in a UI; searching a UI component matched with the semantic description information of the object to be processed from a preset mapping rule base; generating an instance of a UI component matched with the semantic description information of the object to be processed; Determining constraint conditions when the UI component is displayed according to the collected user behavior data, the equipment information of the electronic equipment and the semantic description information of the object to be processed; And rendering the instance of the UI component according to the constraint condition when the UI component is displayed so as to display the UI in the display area of the electronic device.
  2. 2. The method of claim 1, wherein the obtaining semantic description information of the object to be processed comprises: Acquiring semantic description information from semantic fields of the object to be processed or Extracting each matching word from the object to be processed, obtaining candidate semantic description information corresponding to each matching word, and obtaining the semantic description information of the object to be processed based on the candidate semantic description information corresponding to each matching word.
  3. 3. The method according to claim 2, wherein the extracting each matching word from the object to be processed, obtaining candidate semantic description information corresponding to each matching word, and obtaining the semantic description information of the object to be processed based on the candidate semantic description information corresponding to each matching word includes: preprocessing the object name of the object to be processed to obtain a standard name of the object name; Performing word segmentation processing on the standard name to obtain a word segmentation result of the standard name, and extracting each keyword from the word segmentation result of the standard name; Acquiring target semantic description information matched with each keyword from a preset semantic rule base and a synonym word base, and acquiring target semantic description information matched with the prefix and/or target semantic description information matched with the suffix when the standard name comprises the prefix and/or the suffix, wherein the matched target semantic description information is used as candidate semantic description information of the standard name; If the plurality of candidate semantic description information are the same and the functional intention indicated by the plurality of candidate semantic description information is unique, the candidate semantic description information is used as the semantic description information of the object to be processed; And if the plurality of candidate semantic description information is different or the functional intention indicated by the candidate semantic description information is not unique, obtaining the semantic description information of the object to be processed according to preset processing logic and the plurality of candidate semantic description information.
  4. 4. The method of claim 3, wherein obtaining the semantic description information of the object to be processed according to the preset processing logic and the plurality of candidate semantic descriptions information comprises: And obtaining semantic description information with unique functional intention by utilizing the plurality of candidate semantic description information according to at least one of the priority rule, the semantic logic rule and the context correction rule.
  5. 5. The method of claim 4, wherein using the plurality of candidate semantic description information to obtain the semantic description information that is unique to the functional intent according to at least one of a priority rule, a semantic logic rule, and a context modification rule comprises: determining candidate semantic description information corresponding to the same priority in the plurality of candidate semantic description information by using a preset priority order; if the functional intention indicated by the candidate semantic description information corresponding to the same priority is unique, the candidate semantic description information of the priority is used as the semantic description information of the object to be processed; if the functional intention indicated by the candidate semantic description information corresponding to each priority is not unique, fusing the plurality of candidate semantic description information, and if the functional intention indicated by the fused candidate semantic description information is unique, taking the fused candidate semantic description information as the semantic description information of the object to be processed; if the function intention indicated by the fused candidate semantic description information is not unique, acquiring context data associated with the object name, and correcting the fused candidate semantic description information according to the context data associated with the object name to obtain corrected candidate semantic description information; If the functional intention indicated by the corrected candidate semantic description information is unique, the corrected candidate semantic description information is used as semantic description information of an object to be processed; If the functional intention indicated by the corrected candidate semantic description information is not unique, determining the semantic description information of the object to be processed as preset semantic description information, wherein a UI component corresponding to the preset semantic description information is a default component.
  6. 6. The method of claim 1, wherein determining constraints when the UI component is displayed based on the collected user behavior data, device information of the electronic device, and semantic description information of the object to be processed comprises: Determining the priority of the object to be processed according to the semantic description information of the object to be processed and the user behavior data, wherein the priority of the object to be processed is the priority of the UI component matched with the object to be processed; And determining a layout strategy according to the equipment information of the electronic equipment and the priority of each UI component, wherein the layout strategy records the constraint condition of each UI component when being displayed.
  7. 7. The method of claim 6, wherein the semantic description information of the object to be processed is used to determine a priority of the object to be processed, and wherein the user behavior data is used to adjust the priority of the object to be processed.
  8. 8. The method of claim 6, wherein the priorities of the objects to be processed having the pairing relationship are the same, and the priorities of the objects to be processed having the parent-child relationship satisfy the parent-child relationship.
  9. 9. The method of claim 6, wherein determining a layout policy based on the device information of the electronic device and the priority of each UI component comprises: determining the arrangement sequence of each UI component in the UI according to the priority of each UI component; and determining the position of each UI component in the display area, the form of each UI component and the size of each UI component according to the arrangement sequence of each UI component in the UI and the equipment information of the electronic equipment.
  10. 10. A user interface generating device based on semantic driving, which is applied to an electronic device, and comprises: The device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring description information for generating a User Interface (UI), the description information comprises at least one object to be processed and semantic description information for acquiring the object to be processed, the semantic description information of the object to be processed is used for indicating the functional intention of the object to be processed, and the object to be processed is an object of a UI component to be matched in the UI; the searching unit is used for searching the UI component matched with the semantic description information of the object to be processed from a preset mapping rule base; a generating unit, configured to generate an instance of a UI component that matches semantic description information of the object to be processed; the determining unit is used for determining constraint conditions when the UI component is displayed according to the collected user behavior data, the device information of the electronic device and the semantic description information of the object to be processed; And the display unit is used for rendering the instance of the UI component according to the constraint condition when the UI component is displayed so as to display the UI in the display area of the electronic equipment.

Description

User interface generation method and device based on semantic driving Technical Field The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating a user interface based on semantic driving. Background A User Interface (UI) is used as an intermediary for interaction between an application and a User, and one UI includes a plurality of UI components through which the interaction between the application and the User is completed. However, the selection of the UI components in the UI depends on manual configuration, so that the maintenance cost is increased and the automation degree is low. Disclosure of Invention In view of the above problems, the present application provides a user interface generating method and apparatus based on semantic driving, and the specific scheme is as follows: The first aspect of the present application provides a user interface generating method based on semantic driving, which is applied to an electronic device, and comprises the following steps: The method comprises the steps of obtaining description information for generating a User Interface (UI), wherein the description information comprises at least one object to be processed, obtaining semantic description information of the object to be processed, wherein the semantic description information of the object to be processed is used for indicating functional intention of the object to be processed, the object to be processed is an object of a UI component to be matched in the UI, searching a UI component matched with the semantic description information of the object to be processed from a preset mapping rule base, generating an instance of the UI component matched with the semantic description information of the object to be processed, determining constraint conditions when the UI component is displayed according to collected user behavior data, device information of the electronic device and the semantic description information of the object to be processed, and rendering the instance of the UI component according to the constraint conditions when the UI component is displayed so as to display the UI in a display area of the electronic device. In one possible implementation, the obtaining the semantic description information of the object to be processed includes obtaining the semantic description information from a semantic field of the object to be processed, or extracting each matching word from the object to be processed, obtaining candidate semantic description information corresponding to each matching word, and obtaining the semantic description information of the object to be processed based on the candidate semantic description information corresponding to each matching word. In one possible implementation, the method comprises the steps of extracting each matching word from the object to be processed, obtaining candidate semantic description information corresponding to each matching word, and obtaining the semantic description information of the object to be processed based on the candidate semantic description information corresponding to each matching word, wherein the method comprises the steps of preprocessing object names of the object to be processed to obtain standard names of the object names, word segmentation processing is conducted on the standard names to obtain word segmentation results of the standard names, extracting each keyword from the word segmentation results of the standard names, obtaining target semantic description information matched with each keyword from a preset semantic rule base and a synonym word base, and obtaining target semantic description information matched with a prefix and/or target semantic description information matched with a suffix when the standard names comprise the prefix and/or suffix, wherein if the plurality of candidate semantic description information are the same and the function indicated by the plurality of candidate semantic description information is the same, the method is used as a plurality of candidate semantic description information of the standard names, and if the plurality of candidate semantic description information is different from the preset semantic description information, the method is used for obtaining the candidate semantic description information which is not used for processing the unique semantic description information, and the candidate semantic description information is not used for processing the unique description information. In one possible implementation, the obtaining the semantic description information of the object to be processed according to the preset processing logic and the plurality of candidate semantic description information includes obtaining the semantic description information with unique functional intention by using the plurality of candidate semantic description information according to at least one of a priority rule, a semant