WO2021212761A1 - 标签的处理方法、装置及电子设备 - Google Patents

标签的处理方法、装置及电子设备 Download PDF

Info

Publication number
WO2021212761A1
WO2021212761A1 PCT/CN2020/119631 CN2020119631W WO2021212761A1 WO 2021212761 A1 WO2021212761 A1 WO 2021212761A1 CN 2020119631 W CN2020119631 W CN 2020119631W WO 2021212761 A1 WO2021212761 A1 WO 2021212761A1
Authority
WO
WIPO (PCT)
Prior art keywords
tag
label
target
list
editable
Prior art date
Application number
PCT/CN2020/119631
Other languages
English (en)
French (fr)
Inventor
许佳禾
管桦
冯莹
Original Assignee
武汉旷视金智科技有限公司
北京旷视科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉旷视金智科技有限公司, 北京旷视科技有限公司 filed Critical 武汉旷视金智科技有限公司
Publication of WO2021212761A1 publication Critical patent/WO2021212761A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • This application relates to the technical field of label classification, and in particular to a label processing method, device and electronic equipment.
  • one of the objectives of the present application is to provide a label processing method, device, and electronic equipment, which can realize online editing and batch update of labels, and facilitate the maintenance of labels.
  • the embodiments of the present application provide a method for processing tags.
  • the method is applied to an electronic device.
  • the tags in the tag list of the electronic device are configured with editable attributes, and the tags in the tag list are used to compare the
  • the target object is classified and annotated, and the method includes: in response to a tag search request for the tag list, searching for a candidate tag corresponding to the tag information from the tag list; wherein the tag search request carries the tag information of the target object;
  • the setting operation of the editable attribute of the target label in the label sets the editable attribute of the target label to the editable state; in the editable state, in response to the editing operation for the target label, replace the target label in the label list with edit Operate the corresponding label content, and modify the label of the target object marked with the target label in the object library to the label content.
  • the above step of searching for the candidate tag corresponding to the tag information from the tag list includes: performing regular matching or fuzzy matching on the tags in the tag list according to the tag information; taking the matched tag as Label to be selected.
  • the step of setting the editable attribute of the target label to an editable state in response to the setting operation of the editable attribute of the target label in the to-be-selected label includes: after detecting that the mouse cursor is hovering When it is on the target label among the to-be-selected labels, the editing option and the delete option corresponding to the target label are displayed; if a user click operation on the editing option is received, the editable attribute of the target label is set to an editable state.
  • the method further includes: in response to a click operation on the delete option, displaying a second prompt message for confirming whether to delete;
  • the confirmation operation of the second prompt message clears the tag of the target object marked with the target tag in the object library.
  • the above method further includes: receiving a label setting request for the target object; based on the label setting request, displaying a label search input box and a label list; and based on label information entered by the user in the label search input box, Get a tag search request.
  • the above method further includes: processing the tags to be selected and the same characters in the tag information in a preset format; and/or, adding the tags to be selected to the search result list in a preset order.
  • the aforementioned preset order includes sorting from largest to smallest according to the number of the same characters in the tags to be selected, or in the case of the same number of characters, using the total number of characters in the tags to be selected. Sort from least to most.
  • both the tag list and the search result list are configured with hidden attributes; the method further includes: in response to tag information entered in the tag search input box, modifying the value of the hidden attributes to a preset first value, Display the search result list and hide the label list; among them, the value of the hidden attribute defaults to the preset second value, and the value of the hidden attribute defaults to the preset second value, the search result list is in the hidden state, and the label list is in the displayed state.
  • the tag information corresponding to the tag information after searching the tag list for the candidate tag corresponding to the tag information, it further includes: if the tag information corresponding to the tag information is not searched from the tag list Select the label to display the first prompt message for creating a new label with the label information; in response to a click operation on the first prompt message, create a new label in the label list; the content of the new label is the label information.
  • the above method further includes: marking a new label for the target object.
  • the method further includes: monitoring whether the non-focus event is triggered in the editable state; if so, displaying the third prompt message;
  • the three prompt information is used to prompt the user that the current information is not saved, and to confirm whether to continue to set the editable attribute of the target tag to editable state; in response to the confirmation of the third prompt information, the editable attribute of the target tag is set to the editable state.
  • the operation of not continuing execution is restored, and the target label in the label list is restored.
  • the method further includes: detecting whether the saving of the label content is triggered Instruction; if yes, execute the steps of replacing the target label in the label list with the label content corresponding to the editing operation, and modifying the label of the target object marked with the target label in the object library to the label content; if not, cancel the corresponding editing operation To restore the target label.
  • the embodiments of the present application also provide a tag processing device.
  • the device is applied to an electronic device.
  • the tags in the tag list of the electronic device are configured with editable attributes, and the tags in the tag list are used to target objects in the object library.
  • the object is classified and annotated, and the device includes: a tag search module configured to search for a candidate tag corresponding to the tag information from the tag list in response to a tag search request for the tag list; wherein the tag search request carries tag information of the target object;
  • the status setting module is configured to respond to the setting operation for the editable attributes of the target tag in the to-be-selected tag, and set the editable attributes of the target tag to an editable state;
  • the tag update module is configured to respond to the editable status in the editable state For the editing operation of the target label, the target label in the label list is replaced with the label content corresponding to the editing operation, and the label of the target object marked with the target label in the object library is modified to the label content.
  • an embodiment of the present application also provides an electronic device, including: a processor, a storage medium, and a bus.
  • the storage medium stores machine-readable instructions executable by the processor.
  • the processor executes machine-readable instructions to execute the steps of the method described in the first aspect.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, and the computer program executes the steps of the method described in the first aspect when the computer program is run by a processor.
  • the labels in the label list of the electronic device are configured with editable attributes.
  • the editable attributes of the target label can be set In this editable state, in response to the editing operation for the target label, the target label in the label list can be replaced with the label content corresponding to the editing operation, and the target label marked with the target label in the object library
  • the label of the object is modified to the content of the label.
  • FIG. 1 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application
  • Figure 2 shows a flowchart of a label processing method provided by an embodiment of the present application
  • Fig. 3 shows a flowchart of a request generation method provided by an embodiment of the present application
  • FIG. 4 shows a schematic diagram of a working process in a label processing method provided by an embodiment of the present application
  • FIG. 5 shows a structural block diagram of a label processing apparatus provided by an embodiment of the present application
  • Fig. 6 shows a structural block diagram of another label processing apparatus provided by an embodiment of the present application.
  • the embodiments of the present application provide a label processing method, device, and electronic equipment. For ease of understanding, the following describes the embodiments of the present application in detail.
  • FIG. 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the application.
  • the electronic device 100 includes one or more processors 102 and one or more storage devices 104. These components are interconnected by a bus system 112 and/or other forms of connection mechanisms (not shown).
  • the electronic device 100 may further include an input device 106, an output device 108, and an image acquisition device 110.
  • the components and structure of the electronic device 100 shown in FIG. 1 are only exemplary and not restrictive. According to needs, the electronic device 100 may have part of the components shown in FIG. Other components and structures shown.
  • the processor 102 may be a central processing unit (CPU), or another form of processing unit with data processing capability and/or instruction execution capability, and may control the electronic device 100 Other components to perform the desired function.
  • CPU central processing unit
  • the processor 102 may be a central processing unit (CPU), or another form of processing unit with data processing capability and/or instruction execution capability, and may control the electronic device 100 Other components to perform the desired function.
  • the storage device 104 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Lost memory.
  • the volatile memory may include random access memory (RAM) and/or cache memory (cache).
  • the non-volatile memory may include read-only memory (ROM), hard disk, flash memory, and the like.
  • one or more computer program instructions can be stored on the computer-readable storage medium, and the processor 102 can run the program instructions to implement the The device 102 implements the client function of) and/or other desired functions.
  • the computer-readable storage medium may also store various application programs and various data, such as various data used and/or generated by the application program.
  • the input device 106 may be a device used by a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, and a touch screen.
  • the output device 108 may output various information (for example, images or sounds) to the outside (for example, a user), and may include one or more of a display, a speaker, and the like.
  • the image capture device 110 may capture images (for example, photos, videos, etc.) desired by the user, and store the captured images in the storage device 104 for use by other components.
  • images for example, photos, videos, etc.
  • the exemplary electronic device used to implement a label processing method and device according to the embodiments of the present application may be implemented as a smart terminal such as a server, a monitoring device, a smart phone, a tablet computer, and a computer.
  • FIG. 2 is a flowchart of a label processing method provided by an embodiment of the present application.
  • the method may be applied to an electronic device 100, which may be a server or other devices such as an access control machine.
  • the tags in the tag list of the electronic device can be configured with editable attributes, and the tags in the tag list can be used to classify and label the target objects in the object library.
  • the target object here can be employees of the company, or hospital staff, etc.
  • the classification can be to classify the identity information or ranks of the employees or staff.
  • the label processing method may include the following steps:
  • Step S202 in response to the tag search request for the tag list, search for a candidate tag corresponding to the tag information from the tag list.
  • the tag search request carries tag information of the target object.
  • the tag information for the target object may be input by the user or received from other devices.
  • the user wants to set a label for a certain target object, he can input the label information he wants to find in the label search input box to initiate a label search request for the label list.
  • the electronic device 100 will respond to the tag search request for the tag list, and search for the candidate tag corresponding to the tag information from the tag list.
  • the implementation can be either regular matching or fuzzy matching.
  • the implementation can be either regular matching or fuzzy matching.
  • the multiple tags information that are searched can be used as candidate tags for the user to select or edit.
  • Step S204 in response to the setting operation for the editable attribute of the target tag among the tags to be selected, the editable attribute of the target tag is set to an editable state.
  • tags there can be one or more tags to be selected from the tag list. If there is only one candidate tag, you can select the candidate tag as the target tag; if there are multiple candidate tags searched, you can select one or more from the multiple candidate tags as the target tag .
  • the editable attributes of the target tags selected from the tags can be set. Since the tags in the tag list of the electronic device 100 are all configured with editable attributes, the electronic device 100 can respond to the setting operation for the editable attributes of the target tags and set the editable attributes of the target tags to an editable state.
  • the above-mentioned setting operation of the editable attribute of the target tag may include multiple methods, which are not specifically limited herein.
  • Step S206 In the editable state, in response to the editing operation for the target label, replace the target label in the label list with the label content corresponding to the editing operation, and modify the label of the target object marked with the target label in the object library to Label content.
  • the electronic device 100 in the editable state, after the user edits the target tag, the electronic device 100 can replace the target tag in the tag list with the edited tag content, and mark the target tag in the object library Modify the label of the target object to the above label content.
  • the labels in the label list of the electronic device 100 may be configured with editable attributes.
  • the editable attribute of the target label may be set to an editable state.
  • the target label in the label list in response to the editing operation for the target label, the target label in the label list can be replaced with the label content corresponding to the editing operation, and the label of the target object marked with the target label in the object library can be modified to a label content.
  • the method can realize online editing and batch update of labels, which facilitates the maintenance of labels and reduces the operating cost of users.
  • the processing method may also include the following steps:
  • Step S302 Receive a label setting request for the target object.
  • Step S304 based on the label setting request, display the label search input box and the label list.
  • Step S306 Obtain a tag search request based on the tag information input by the user in the tag search input box.
  • the user can first initiate a label setting request for the target object.
  • the target object is the personal information of an employee of a company
  • the user clicks on the label item to initiate a label setting request the electronic device 100 will respond to the label setting request for the target object, and then, based on the label setting request, display the label search Input box and label list.
  • a tag search input box and tag list can be displayed on the right side of the personal information table.
  • a tag search input box is displayed above the tag list.
  • it monitors the change of the value of searchValue bound to the tag search input box and the focus onfocus event of the tag search input box.
  • the user fills in the label information that he wants to set in the search input box, he can initiate a label search request for the label list to the electronic device 100.
  • the above step of searching for the candidate label corresponding to the label information from the label list can be implemented in the following manner:
  • the tag information perform regular matching or fuzzy matching on the tags in the tag list; use the matched tags as candidate tags.
  • the server when the mouse cursor is focused on the tag search input box and the value of the tag search input box changes, the server automatically matches all the tags in the list according to the principles of regular matching and forward and backward fuzzy matching.
  • regular matching or fuzzy matching there may be multiple tags searched, and multiple tags are used as candidate tags for the user to select or edit.
  • the tag processing method may also perform the following steps: perform the following steps: Processing of the preset format; and/or, adding the tags to be selected to the search result list in a preset order.
  • the above-mentioned preset format can either be bold in font or change in font color, which is not specifically limited here. Since there may be multiple matched tags, multiple matched tags can be sorted, and the one with the largest matching degree is placed at the top of the search result list. For example, the above-mentioned preset order can be sorted according to the number of the same characters in the matched tags from large to small, or it can be based on the total number of characters in the label from less to more when the number of the same characters is the same. Sort.
  • the following is an example of displaying the matched text in bold:
  • the matching tag is displayed as: courier. If there are multiple matches, the list structure will be displayed in the same way. Through the font modification of the preset format, the user can see the label with the highest matching degree more clearly.
  • the label processing method provided by some possible embodiments of the present application can also adjust the display state of the label list and the search result list.
  • both the tag list and the search result list are configured with hidden attributes, and the electronic device 100 can modify the value of the hidden attribute to the preset first value in response to tag information input to the tag search input box To display the list of search results and hide the list of tags.
  • the value of the hidden attribute is the preset second value by default, and when the value of the hidden attribute is the preset second value, the search result list is in the hidden state, and the label list is in the displayed state.
  • the above-mentioned preset first value and preset second value can be represented by 1 and 0 respectively, or can be represented by "true (true/T)" and “false (false/F)", or can be represented by Other values indicate that as long as they are distinguished from each other, the embodiment of the present application does not limit this.
  • some possible embodiments of the present application can switch the content displayed on the page through a search page parameter.
  • the search page parameter can be used to define the search page. Content.
  • the search result list is displayed, and the tag list is hidden.
  • the value of showSearch is false (that is, the second value mentioned above)
  • the tag list is displayed and the search result list is hidden.
  • the value of showSearch is false by default.
  • the electronic device 100 can change the value of the hidden attribute showSearch to true. At this time, the tag list is hidden and the search result list is displayed.
  • the electronic device 100 detects that the mouse cursor is hovering over the target tag among the tags to be selected, the target tag is displayed
  • the corresponding edit option and delete option respond to the setting operation of the editable attribute of the target label when receiving the user's click operation on the edit option.
  • each tag in the tag list can be controlled by the canEdit parameter to enter the editable state
  • the value of the canEdit parameter can be false by default
  • the user selector hover is on the target tag of the tag list
  • click When editing options, set the value of the canEdit parameter to true. At this time, the label enters the editable state.
  • the electronic device 100 may respond to the click operation on the delete option, display a second prompt message confirming whether to delete, and clear the object in response to the confirmation operation on the second prompt message.
  • the tag of the target object marked with the target tag in the library may be responded to the click operation on the delete option, display a second prompt message confirming whether to delete, and clear the object in response to the confirmation operation on the second prompt message.
  • a pop-up window for secondary confirmation can pop up when clicking the delete option to guide the user to perform a secondary confirmation.
  • the content of the pop-up window for the second confirmation may be that prompting the user to delete the target tag will clear the tag information of all persons who have marked the target tag, and whether the user continues the current deletion operation.
  • the pop-up window may include a Y control and an N control. The Y control indicates to continue the current delete operation, and the N control indicates to cancel the current delete operation.
  • the label of the target object marked with the target label in the object library is cleared.
  • the label deletion operation is stopped, and the original label list is restored, that is, to the click Delete the label list before the option.
  • some possible embodiments of the present application may further include a processing procedure of misoperation, which may include the following steps:
  • Monitor whether the non-focus event is triggered in the editable state; if it is, the third prompt message is displayed; the third prompt message is used to remind the user that the current information is not saved, and confirm whether to continue the execution.
  • the onblur event of the input of the target label edit box can be monitored, and the onblur event is triggered when the target label edit box is clicked by mistake, that is, the mouse cursor is not focused on the label edit box
  • a pop-up box may appear to display "The user's current information has not been saved, do you want to continue?", so that the user can make a second confirmation.
  • the mouse cursor will automatically focus on the label edit box to edit the target label.
  • the target label will be restored and the hover effect of other labels will be restored at the same time To perform other normal operations.
  • some possible embodiments of the present application may further include the following steps :
  • the mouse cursor when the target label is in the editable state, automatically moves to the label edit box Input. At this time, the target label can be edited, and at the same time, the hover state of all other labels can be cancelled to Ensure that you cannot edit multiple tags at the same time.
  • the current tag information currentTag will be saved before editing. When the user edits the tag but does not click Save, click Cancel to restore the original tag content without sending a request, that is, restore the target tag.
  • Object library The tags of all personnel who have been calibrated with the "Takeaway” label will be changed to "Takeaway-Meituan" to ensure data consistency and no dirty data will be generated.
  • the foregoing processes are all implemented in the case of searching for a candidate tag corresponding to the tag information from the tag list in response to a tag search request for the tag list. If the candidate tag corresponding to the tag information is not searched from the tag list, the first prompt information is displayed, indicating that a new tag is created with the tag information. In response to the click operation on the first prompt information, a new label is created in the label list, where the content of the new label is the above-mentioned label information.
  • the label information that the user wants to find is government visits, but there is no matching label for government visits in the label list.
  • the search results bar prompts to create the "government visits" label . Click the prompt, you can directly request the creation of a new government visit label, and at the same time, you can mark the government visit label for the key editors, so as to realize the operation of labeling the new label for the target object.
  • the label processing methods provided by some possible embodiments of the present application can directly add, delete, modify, and search for labels on the display page of the label, and can also perform batch operations on the label information of personnel, which can be effective Reduce user operating costs.
  • the above operations of adding, deleting, modifying and searching can all be realized in one panel, and the corresponding operations on all labels can be realized in the same panel, which can facilitate users to quickly classify personnel when managing personnel, and improve the label Maintenance efficiency.
  • some possible embodiments of the present application may also provide a tag processing device, which is applied to the electronic device 100.
  • the tags in the tag list of the electronic device 100 can be configured with editable attributes.
  • the tags in the list can be used to classify and label the target objects in the object library.
  • the device can include:
  • the tag search module 502 is configured to search for a candidate tag corresponding to the tag information from the tag list in response to a tag search request for the tag list; wherein the tag search request carries tag information of the target object.
  • the state setting module 504 is configured to set the editable property of the target tag to an editable state in response to the setting operation for the editable property of the target tag in the to-be-selected tags.
  • the label update module 506 is configured to, in an editable state, in response to an editing operation for the target label, replace the target label in the label list with the label content corresponding to the editing operation, and mark the target object with the target label in the object library Modify the label of to the label content.
  • the above device may also include: a request generation module 608 , List generation module 610, label creation module 612, display adjustment module 614, label deletion module 616, misoperation processing module 618, and label storage module 620.
  • the above-mentioned request generation module 608 is configured to receive a label setting request for the target object; based on the label setting request, display the label search input box and the label list; and based on the user input in the label search input box Tag information, get tag search request.
  • the above-mentioned tag search module 602 is further configured to: perform regular matching or fuzzy matching on the tags in the tag list according to the tag information; and use the matched tags as candidate tags.
  • the list generation module 610 is further configured to: process the tags to be selected and the same characters in the tag information in a preset format; and/or add the tags to be selected to the tag in a preset order. List of search results.
  • both the tag list and the search result list may be configured with hidden attributes; the display adjustment module 614 is configured to: in response to the tag information entered in the tag search input box, modify the value of the hidden attribute to the preset value. Set the first value to display the search result list and hide the tag list; among them, the value of the hidden attribute defaults to the preset second value, and when the hidden attribute value is the preset second value, the search result list is hidden, and the tag list For display status.
  • the above-mentioned label creation module 612 is configured to: if a candidate label corresponding to the label information is not searched from the label list, display the first prompt message for creating a new label with the label information; A click operation of the prompt message creates a new label in the label list; the content of the new label is the label information.
  • the above-mentioned label creation module 612 is further configured to mark a new label for the target object.
  • the above-mentioned state setting module 604 is further configured to: when detecting that the mouse cursor is hovering over the target label in the to-be-selected label, display the edit option and the delete option corresponding to the target label; For the click operation of the edit option, the editable attribute of the target label is set to the editable state.
  • the tag deletion module 616 is configured to: in response to a click operation on the delete option, display a second prompt message confirming whether to delete; in response to a confirmation operation on the second prompt message, clear the object database The label of the target object marked with the target label in.
  • the above-mentioned misoperation processing module 618 is configured to: monitor whether the unfocused event is triggered in the editable state; if so, display the third prompt message; the third prompt message is used to prompt the user that the current information is not saved , Confirm whether to continue the execution, set the editable attribute of the target label to the editable state; in response to the confirmation of the third prompt message, continue to set the editable attribute of the target label to the editable state; Three prompts to confirm the operation that does not continue, and restore the target label in the label list.
  • the above-mentioned tag saving module 620 is configured to: detect whether a saving instruction for the tag content is triggered; if so, execute replacing the target tag in the tag list with the tag content corresponding to the editing operation, and change The step of modifying the label of the target object marked with the target label in the object library to the label content; if not, cancel the label content corresponding to the editing operation to restore the target label.
  • Some possible embodiments of the present application also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the foregoing method when the computer program is run by a processing device.
  • the label processing method, device, and computer program product of the electronic device provided by the embodiments of the present application include a computer-readable storage medium storing program code, and instructions included in the program code can be used to execute the aforementioned method
  • a computer-readable storage medium storing program code, and instructions included in the program code can be used to execute the aforementioned method
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in each implementation manner of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the labels in the label list of the electronic device are configured with editable attributes.
  • the editable attributes of the target label can be set In this editable state, in response to the editing operation for the target label, the target label in the label list can be replaced with the label content corresponding to the editing operation, and the target label marked with the target label in the object library
  • the label of the object is modified to the content of the label.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种标签的处理方法、装置及电子设备,该方法中,电子设备的标签列表中的标签配置有可编辑属性,方法包括:响应于针对标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签;其中,标签搜索请求携带有目标对象的标签信息;响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态;在可编辑状态下,响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。本申请可以实现标签的在线编辑,批量更新,方便对标签的维护,减少用户的操作成本。

Description

标签的处理方法、装置及电子设备
相关申请的交叉引用
本申请要求于2020年04月21日提交中国专利局的申请号为2020103176896、名称为“标签的处理方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及标签分类技术领域,尤其是涉及一种标签的处理方法、装置及电子设备。
背景技术
现有的标签分类方法中,首先确定好一些固定场景的分类标签,然后再对人员进行分类的时候,采用搜索的形式选择固定好的标签,或者去新建标签。这种方式没有办法修改固有的标签,如果想对已经打过了标签的人员的标签进行修改,必须要通过别的方式去改数据库或者改代码,过程繁琐效率低。
发明内容
有鉴于此,本申请的目的之一在于提供一种标签的处理方法、装置及电子设备,可以实现标签的在线编辑,批量更新,方便对标签的维护。
为了实现上述目的,本申请实施例采用的技术方案如下:
第一方面,本申请实施例提供了一种标签的处理方法,该方法应用于电子设备,电子设备的标签列表中的标签配置有可编辑属性,标签列表中的标签用于对对象库中的目标对象进行分类标注,方法包括:响应于针对标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签;其中,标签搜索请求携带有目标对象的标签信息;响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态;在可编辑状态下,响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。
在一种可能的实现方式中,上述从标签列表中搜索标签信息对应的待选标签的步骤,包括:根据标签信息,对标签列表中的标签进行正则匹配或者模糊匹配;将匹配到的标签作为待选标签。
在一种可能的实现方式中,上述响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态的步骤,包括:在检测到鼠标光标悬浮于待选标签中的目标标签上时,显示目标标签对应的编辑选项和删除选项;如果接收到用户针对编辑选项的点击操作,将目标标签的可编辑属性设置为可编辑状态。
在一种可能的实现方式中,上述在显示目标标签对应的编辑选项和删除选项的步骤之 后,还包括:响应于针对删除选项的点击操作,显示确认是否删除的第二提示信息;响应于针对第二提示信息的确认操作,清除对象库中标注有目标标签的目标对象的标签。
在一种可能的实现方式中,上述方法还包括:接收针对目标对象的标签设置请求;基于标签设置请求,显示标签搜索输入框和标签列表;基于用户在标签搜索输入框中输入的标签信息,得到标签搜索请求。
在一种可能的实现方式中,上述方法还包括:将待选标签与标签信息中相同的字符进行预设格式的处理;和/或,按照预设顺序将待选标签添加至搜索结果列表。
在一种可能的实现方式中,上述预设顺序包括按照待选标签中的相同的字符的数量从大到小排序,或者在相同的字符数量一致的情况下,以待选标签的总字符数从少到多排序。
在一种可能的实现方式中,上述标签列表和搜索结果列表均配置有隐藏属性;方法还包括:响应于针对标签搜索输入框输入的标签信息,修改隐藏属性的值为预设第一值,显示搜索结果列表,隐藏标签列表;其中,隐藏属性的值默认为预设第二值,且隐藏属性的值为预设第二值时,搜索结果列表为隐藏状态,标签列表为显示状态。
在一种可能的实现方式中,上述响应针对于标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签之后,还包括:如果从标签列表中未搜索到标签信息对应的待选标签,显示以标签信息创建新标签的第一提示信息;响应于针对第一提示信息的点击操作,在标签列表中创建新标签;新标签的内容为标签信息。
在一种可能的实现方式中,上述方法还包括:为目标对象标注新标签。
在一种可能的实现方式中,上述将目标标签的可编辑属性设置为可编辑状态的步骤之后,还包括:监听可编辑状态下是否触发不关注事件;如果是,显示第三提示信息;第三提示信息用于提示用户当前信息未保存,确认是否继续执行将目标标签的可编辑属性设置为可编辑状态;响应于针对第三提示信息的确认继续执行的操作,将目标标签的可编辑属性继续设置为可编辑状态;响应于针对第三提示信息的确认不继续执行的操作,恢复标签列表中的目标标签。
在一种可能的实现方式中,上述响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容的步骤之后,还包括:检测是否有触发针对标签内容的保存指令;如果是,执行将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容的步骤;如果否,取消编辑操作对应的标签内容,以恢复目标标签。
第二方面,本申请实施例还提供一种标签的处理装置,装置应用于电子设备,电子设备的标签列表中的标签配置有可编辑属性,标签列表中的标签用于对对象库中的目标对象进行分类标注,装置包括:标签搜索模块,配置成响应于针对标签列表的标签搜索请求, 从标签列表中搜索标签信息对应的待选标签;其中,标签搜索请求携带有目标对象的标签信息;状态设置模块,配置成响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态;标签更新模块,配置成在可编辑状态下,响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。
第三方面,本申请实施例还提供一种电子设备,包括:处理器、存储介质和总线,存储介质存储有处理器可执行的机器可读指令,当电子设备运行时,处理器与存储介质之间通过总线通信,处理器执行机器可读指令,以执行如第一方面所述的方法的步骤。
第四方面,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器运行时执行上述第一方面所述的方法的步骤。
本申请实施例提供的标签的处理方法中,电子设备的标签列表中的标签配置有可编辑属性,当响应于针对目标标签的可编辑属性的设置操作时,可以将目标标签的可编辑属性设置为可编辑状态;在这种可编辑状态下,响应于针对目标标签的编辑操作,可以将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为该标签内容。该方法可以实现标签的在线编辑,批量更新,方便对标签的维护,减少用户的操作成本。
本申请的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本申请的上述技术即可得知。
为使本申请的上述目的、特征和优点能更明显易懂,下文特举可选实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例所提供的一种电子设备的结构示意图;
图2示出了本申请实施例所提供的一种标签的处理方法的流程图;
图3示出了本申请实施例所提供的一种请求生成方法的流程图;
图4示出了本申请实施例所提供的一种标签的处理方法中工作过程示意图;
图5示出了本申请实施例所提供的一种标签的处理装置的结构框图;
图6示出了本申请实施例所提供的另一种标签的处理装置的结构框图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
考虑到现有的标签分类方法中,如果想对已经打过了标签的人员的标签进行修改,必须要通过别的方式去改数据库或者改代码,过程繁琐效率低。为改善此问题,本申请实施例提供了一种标签的处理方法、装置及电子设备,为便于理解,以下对本申请实施例进行详细介绍。
首先,参照图1来描述用于实现本申请实施例的标签的处理方法、装置的示例电子设备。
如图1所示,图1为本申请实施例提供的一种电子设备100的结构示意图,电子设备100包括一个或多个处理器102、一个或多个存储装置104。这些组件通过总线系统112和/或其它形式的连接机构(未示出)互连。可选地,该电子设备100还可以包括输入装置106、输出装置108以及图像采集装置110。应当注意,图1所示的电子设备100的组件和结构只是示例性的,而非限制性的,根据需要,所述电子设备100可以具有图1示出的部分组件,也可以具有图1未示出的其他组件和结构。
在一些可能的实施例中,所述处理器102可以是中央处理单元(CPU),或者具有数据处理能力和/或指令执行能力的其它形式的处理单元,并且可以控制所述电子设备100中的其它组件以执行期望的功能。
在一些可能的实施例中,所述存储装置104可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。在一些可能的实施例中,所述易失性存储器可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。在另一些可能的实施例中,所述非易失性存储器可以包括只读存储器(ROM)、硬盘、闪存等。在一些可能的实施例中,所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器102可以运行所述程序指令,以实现下文所述的本申请实施例中(由处理器102实现)的客户端功能以及/或者其它期望的功能。在另一些可能的实施例中,所述计算机可读存储介质中还可以存储各种应用程序和各种数据,例如所述应用程序使用和/或产生的各种数据等。
在一些可能的实施例中,所述输入装置106可以是用户用来输入指令的装置,并且可以包括键盘、鼠标、麦克风和触摸屏等中的一个或多个。
在一些可能的实施例中,所述输出装置108可以向外部(例如,用户)输出各种信息(例如,图像或声音),并且可以包括显示器、扬声器等中的一个或多个。
在一些可能的实施例中,所述图像采集装置110可以拍摄用户期望的图像(例如,照片、视频等),并且将所拍摄的图像存储在所述存储装置104中以供其它组件使用。
可选地,用于实现根据本申请实施例中的一种标签的处理方法及装置的示例电子设备,可以被实现为诸如服务器、监控设备、智能手机、平板电脑、计算机等智能终端上。
参照图2,图2为本申请实施例提供的一种标签的处理方法的流程图,该方法可以应用于电子设备100,该电子设备100可以是服务器,也可以是门禁机等其它设备。该电子设备的标签列表中的标签可以配置有可编辑属性,标签列表中的标签可以用于对对象库中的目标对象进行分类标注。其中,这里的目标对象可以是公司的员工,也可以是医院的工作人员等,分类可以是对员工或工作人员的身份信息或者职级等进行分类。可选地,该标签的处理方法可以包括以下几个步骤:
步骤S202,响应于针对标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签。
其中,标签搜索请求携带有目标对象的标签信息。该针对目标对象的标签信息可以是用户输入的,也可以是从其他设备接收到的。在一些可能的实施例中,当用户想要对某个目标对象进行标签设置时,可以在标签搜索输入框中输入想要查找的标签信息,以发起对标签列表的标签搜索请求。同时,电子设备100会响应针对标签列表的标签搜索请求,从标签列表中搜索该标签信息对应的待选标签。
可选地,这里的搜索标签的功能有多种实现方式,例如,实现方式既可以是正则匹配,也可以是模糊匹配。基于上述匹配,搜索到的标签通常会有多个,可以将搜索到的多个标签信息作为待选标签,供用户进行选择或编辑。步骤S204,响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态。
从标签列表中搜索到的待选标签可以为一个也可以为多个。如果搜索到的待选标签为一个,则可以选择该待选标签可以目标标签;如果搜索到的待选标签为多个,则可以从该多个待选标签中选择一个或多个作为目标标签。
例如,上述待选标签有多个,当用户想要对其中的某个标签(即目标标签)进行编辑时,可以对从待选标签中选择的目标标签的可编辑属性进行设置。由于电子设备100的标签列表中的标签均配置有可编辑属性,因此,电子设备100可以响应针对目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态。可选地,上述对目标标签的可编辑属性的设置操作可以包括多种方式,在此不做具体限定。
步骤S206,在可编辑状态下,响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。
在一些可能的实施例中,在可编辑状态下,用户对目标标签进行编辑操作后,电子设备100可以利用编辑后的标签内容替换标签列表中的目标标签,并且将对象库中标注有目标标签的目标对象的标签修改为上述标签内容。
在本申请的一些可能的实施例提供的标签的处理方法中,电子设备100的标签列表中的标签可以配置有可编辑属性。当响应针对目标标签的可编辑属性的设置操作时,可以将目标标签的可编辑属性设置为可编辑状态。在这种可编辑状态下,响应针对目标标签的编辑操作,可以将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。该方法可以实现标签的在线编辑,批量更新,方便对标签的维护,减少用户的操作成本。
在上述示例的基础上,参见图3所示流程图和图4所示的标签处理工作过程示意图,为了方便对目标对象的标签进行设置或修改,本申请的一些可能的实施例提供的标签的处理方法还可以包括以下步骤:
步骤S302,接收针对目标对象的标签设置请求。
步骤S304,基于标签设置请求,显示标签搜索输入框和标签列表。
步骤S306,基于用户在标签搜索输入框中输入的标签信息,得到标签搜索请求。
可选地,用户可以首先针对目标对象发起标签设置请求。例如,在目标对象为公司某个员工的个人信息时,用户点击标签项以发起标签设置请求,电子设备100会响应针对该目标对象的标签设置请求,然后,基于该标签设置请求,显示标签搜索输入框和标签列表。例如,可以在个人信息表的右侧显示标签搜索输入框和标签列表,如图4所示,在标签列表的上方显示一个标签搜索输入框,当标签数据很多时,可以针对标签列表进行筛选,同时监听标签搜索输入框对应绑定的searchValue的值的变化和标签搜索输入框的聚焦onfocus事件。当用户在搜索输入框中填写想要设置的标签信息时,可以向电子设备100发起针对标签列表的标签搜索请求。
在一些可能的实施例中,为了快速地检索出用户想要的标签,上述从标签列表中搜索标签信息对应的待选标签的步骤可以通过以下方式实现:
根据标签信息,对标签列表中的标签进行正则匹配或者模糊匹配;将匹配到的标签作为待选标签。
在一些可能的实施例中,当鼠标光标聚焦在标签搜索输入框上,且标签搜索输入框的值发生变化时,服务器自动按照正则匹配和前后模糊匹配的原则去匹配所有列表中的标签,通过上述正则匹配或者模糊匹配,搜索到的标签可能会有多个,将多个标签作为供用户选择或编辑的待选标签。
为了提高用户的直观体验,在上述匹配到待选标签的步骤之后,本申请的一些可能的 实施例提供的标签的处理方法还可以执行以下步骤:将待选标签与标签信息中相同的字符进行预设格式的处理;和/或,按照预设顺序将待选标签添加至搜索结果列表。
可选地,上述预设格式既可以是字体加粗,也可以是字体颜色改变,在此不做具体限定。由于匹配到的标签可能有多个,因此可以对多个匹配到的标签进行排序,将匹配度最大的放在搜索结果列表中最靠前的位置。例如,上述预设顺序既可以为按照匹配到的标签中的相同的字符的数量从大到小排序,也可以为在相同的字符数量一致的情况下,以标签的总字符数从少到多排序。
在一些可能的实施例中,下面列举一个将匹配上的文本通过加粗进行显示的例子:
例如,在已有的标签是快递员,标签搜索输入框中输入的值是快递时,匹配标签显示为:快递员,如果有多个匹配的,则按照相同的方式采用列表结构显示。通过预设格式的字体修改,可以使用户更加清楚地看到匹配度最高的标签。
在另一些可能的实施例中,本申请的一些可能的实施例提供的标签的处理方法还可以对标签列表和搜索结果列表的显示状态进行调整。本申请的一些可能的实施例中的标签列表和搜索结果列表均配置有隐藏属性,电子设备100可以响应于针对标签搜索输入框输入的标签信息,将隐藏属性的值修改为预设第一值,显示搜索结果列表,隐藏标签列表。其中,隐藏属性的值默认为预设第二值,且在隐藏属性的值为预设第二值时,搜索结果列表为隐藏状态,标签列表为显示状态。
可选地,上述预设第一值和预设第二值既可以分别用1和0表示,也可以用“真(true/T)”和“假(false/F)”表示,还可以用其它值表示,只要达到相互区分即可,本申请实施例对此不进行限定。
为了达到较好的显示效果,本申请的一些可能的实施例可以通过一个搜索页面参数切换页面展示的内容。在一些可能的实施例中,可以通过检测搜索页面参数(例如,隐藏属性showSearch的值)是否为真(true)的方式,判断是否切换页面展示的内容,该搜索页面参数可以用于定义搜索页面的内容。在showSearch的值为true(即上述第一值)时,显示搜索结果列表,隐藏标签列表。在showSearch的值为false(即上述第二值)时,显示标签列表,隐藏搜索结果列表。其中,在默认情况下showSearch的值为false。
因此,在完成上述标签信息的匹配步骤之后,电子设备100可以将隐藏属性showSearch的值变为true,此时,标签列表被隐藏,显示搜索结果列表。
在上述示例的基础上,在上述基于目标对象的标签信息完成搜索,生成搜索结果列表的步骤之后,在电子设备100检测到鼠标光标悬浮于待选标签中的目标标签上时,显示该目标标签对应的编辑选项和删除选项,在接收到用户针对编辑选项的点击操作时,响应针对目标标签的可编辑属性的设置操作。
在一些可能的实施例中,标签列表中每个标签都可以通过canEdit参数来控制是否进入可编辑状态,canEdit参数的值可以默认为false,用户选择器hover在标签列表的目标标签上,并且点击编辑选项时,将canEdit参数的值置为true,此时,该标签进入可编辑状态。
在另一些可能的实施例中,在用户点击删除选项时,电子设备100可以响应针对删除选项的点击操作,显示确认是否删除的第二提示信息,响应针对第二提示信息的确认操作,清除对象库中标注有目标标签的目标对象的标签。
在一些可能的实施例中,如果标签列表中某些标签不需要继续使用,例如,在用户需要对目标标签进行清除时,选择器hover在目标标签上,点击删除选项。为了避免点击错误引起不必要的麻烦,可以在点击删除选项时弹出二次确认的弹窗,引导用户进行二次确认。可选地,二次确认的弹窗内容可以是提示用户删掉目标标签会清除所有标记了该目标标签的人员的标签信息,用户是否继续当前删除操作。例如,在一些可能的实施例中,弹窗中可以包括Y控件和N控件,Y控件表示继续当前删除操作,N控件表示取消当前删除操作。在用户选择继续当前删除操作时,清除对象库中标注有该目标标签的目标对象的标签,在用户选择取消当前删除操作时,停止标签删除操作,恢复至原有的标签列表,即恢复至点击删除选项前的标签列表。
在一种可选的实施方式中,在将目标标签的可编辑属性设置为可编辑状态之后,本申请的一些可能的实施例还可以包括误操作的处理过程,可以包括以下步骤:
监听可编辑状态下是否触发不关注事件;如果是,显示第三提示信息;该第三提示信息用于提示用户当前信息未保存,确认是否继续执行将目标标签的可编辑属性设置为可编辑状态;响应于针对第三提示信息的确认继续执行的操作,将目标标签的可编辑属性继续设置为可编辑状态;响应于针对第三提示信息的确认不继续执行的操作,恢复标签列表中的目标标签。
在一些可能的实施例中,在目标标签处于可编辑状态时,可以监听目标标签编辑框input的onblur事件,在误操作点击到其他地方时,触发onblur事件,即鼠标光标未聚焦到标签编辑框中,可以出现一个弹框显示“用户当前信息未保存,是否继续?”,以使用户进行二次确认。在用户选择“是”确认继续时,将鼠标光标自动聚焦到标签编辑框,对目标标签进行编辑,在用户选择“否”确认不继续时,将目标标签进行恢复,同时恢复其他标签的hover效果,进行其他正常操作。
在另一些可能的实施例中,在响应针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容的步骤之后,本申请的一些可能的实施例还可以包括以下步骤:
检测是否有触发针对标签内容的保存指令;如果是,执行将标签列表中的目标标签替 换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容的步骤;如果否,取消编辑操作对应的标签内容,以恢复目标标签。
在一些可能的实施例中,在目标标签处于可编辑状态时,鼠标光标自动移动到标签编辑框Input,此时,可以对该目标标签进行编辑,同时,可以取消所有其他标签的hover状态,以保证不能同时编辑多个标签。编辑前会保存当前的标签信息currentTag,在用户编辑了标签但是没有点击保存时,点击取消,可以在不再发一条请求的情况下对原标签内容进行恢复,也就是恢复目标标签。
在一些可能的实施例中,当编辑完成后,可以点击右侧的保存按钮即可保存修改后的标签信息,也就是上述编辑操作对应的标签内容。在上述示例的基础上,可以修改掉之前对象库中已经标定了目标标签的人员的标签信息。例如,张三原来标签可以是“外卖员”,在管理人员将“外卖员”标签改成了“外卖员-美团”后,张三的标签变成“外卖员-美团”,对象库中标定了“外卖员”标签的所有人员的标签都会修改为“外卖员-美团”,以保证数据的一致性,不会产生脏数据。
需要说明的是,上述过程均是在响应于针对标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签的情况下实现的。如果从标签列表中未搜索到标签信息对应的待选标签,则显示第一提示信息,指示以标签信息创建新标签的。响应于针对第一提示信息的点击操作,在标签列表中创建新标签,其中,新标签的内容为上述标签信息。
参见图4所示,用户想要查找的标签信息为政务访查,但标签列表中没有政务访查匹配的标签,在用户输入政务访查时,搜索结果栏中提示创建“政务访查”标签。点击该提示,可以直接请求创建一个新的政务访查标签,同时,可以给编辑的重点人员标注该政务访查标签,以实现为目标对象标注新标签的操作。
本申请的一些可能的实施例提供的标签的处理方法,可以直接在该标签的展示页面对标签进行增加、删除、修改以及查找的操作,并且还可以对人员的标签信息进行批量操作,能够有效减少用户的操作成本。上述增加、删除、修改以及查找的操作可以均在一个面板中实现,在同一个面板中实现对所有的标签的相应操作,可以方便用户在管理人员时,对人员进行的快速分类,提升了标签的维护效率。
在上述示例的基础上,本申请的一些可能的实施例还可以提供一种标签的处理装置,该装置应用于电子设备100,电子设备100的标签列表中的标签可以配置有可编辑属性,标签列表中的标签可以用于对对象库中的目标对象进行分类标注,参见图5所示,该装置可以包括:
标签搜索模块502,配置成响应于针对标签列表的标签搜索请求,从标签列表中搜索标签信息对应的待选标签;其中,标签搜索请求携带有目标对象的标签信息。
状态设置模块504,配置成响应于针对待选标签中目标标签的可编辑属性的设置操作,将目标标签的可编辑属性设置为可编辑状态。
标签更新模块506,配置成在可编辑状态下,响应于针对目标标签的编辑操作,将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容。
在另一些可能的实施例中,参见图6所示,上述装置除了包括与上一实施例类似的标签搜索模块602、状态设置模块604和标签更新模块606外,还可以包括:请求生成模块608、列表生成模块610、标签创建模块612,显示调整模块614、标签删除模块616、误操作处理模块618和标签保存模块620。
在另一些可能的实施例中,上述请求生成模块608配置成,接收针对目标对象的标签设置请求;基于标签设置请求,显示标签搜索输入框和标签列表;基于用户在标签搜索输入框中输入的标签信息,得到标签搜索请求。
在另一些可能的实施例中,上述标签搜索模块602还配置成:根据标签信息,对标签列表中的标签进行正则匹配或者模糊匹配;将匹配到的标签作为待选标签。
在另一些可能的实施例中,上述列表生成模块610还配置成:将待选标签与标签信息中相同的字符进行预设格式的处理;和/或,按照预设顺序将待选标签添加至搜索结果列表。
在另一些可能的实施例中,上述标签列表和搜索结果列表可以均配置有隐藏属性;上述显示调整模块614配置成:响应于针对标签搜索输入框输入的标签信息,修改隐藏属性的值为预设第一值,显示搜索结果列表,隐藏标签列表;其中,隐藏属性的值默认为预设第二值,且隐藏属性的值为预设第二值时,搜索结果列表为隐藏状态,标签列表为显示状态。
在另一些可能的实施例中,上述标签创建模块612配置成:如果从标签列表中未搜索到标签信息对应的待选标签,显示以标签信息创建新标签的第一提示信息;响应于针对第一提示信息的点击操作,在标签列表中创建新标签;新标签的内容为标签信息。
在另一些可能的实施例中,上述标签创建模块612还配置成,为目标对象标注新标签。
在另一些可能的实施例中,上述状态设置模块604还配置成:在检测到鼠标光标悬浮于待选标签中的目标标签上时,显示目标标签对应的编辑选项和删除选项;如果接收到用户针对编辑选项的点击操作,将目标标签的可编辑属性设置为可编辑状态。
在另一些可能的实施例中,上述标签删除模块616配置成:响应于针对删除选项的点击操作,显示确认是否删除的第二提示信息;响应于针对第二提示信息的确认操作,清除对象库中标注有目标标签的目标对象的标签。
在另一些可能的实施例中,上述误操作处理模块618配置成:监听可编辑状态下是否 触发不关注事件;如果是,显示第三提示信息;第三提示信息用于提示用户当前信息未保存,确认是否继续执行将目标标签的可编辑属性设置为可编辑状态;响应于针对第三提示信息的确认继续执行的操作,将目标标签的可编辑属性继续设置为可编辑状态;响应于针对第三提示信息的确认不继续执行的操作,恢复标签列表中的目标标签。
在另一些可能的实施例中,上述标签保存模块620配置成:检测是否有触发针对标签内容的保存指令;如果是,执行将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为标签内容的步骤;如果否,取消编辑操作对应的标签内容,以恢复目标标签。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本申请的一些可能的实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理设备运行时执行上述方法的步骤。
本申请实施例所提供的一种标签的处理方法、装置及电子设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面所述的方法,具体实现可参见本申请实施例前述内容,在此不再赘述。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实现方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上所述实施例,仅为本申请的可选的实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
工业实用性
本申请实施例提供的标签的处理方法中,电子设备的标签列表中的标签配置有可编辑 属性,当响应于针对目标标签的可编辑属性的设置操作时,可以将目标标签的可编辑属性设置为可编辑状态;在这种可编辑状态下,响应于针对目标标签的编辑操作,可以将标签列表中的目标标签替换为编辑操作对应的标签内容,以及将对象库中标注有目标标签的目标对象的标签修改为该标签内容。该方法可以实现标签的在线编辑,批量更新,方便对标签的维护,减少用户的操作成本。

Claims (15)

  1. 一种标签的处理方法,其特征在于,所述方法应用于电子设备,所述电子设备的标签列表中的标签配置有可编辑属性,所述标签列表中的标签用于对对象库中的目标对象进行分类标注,所述方法包括:
    响应于针对所述标签列表的标签搜索请求,从所述标签列表中搜索标签信息对应的待选标签;其中,所述标签搜索请求携带有目标对象的标签信息;
    响应于针对所述待选标签中目标标签的可编辑属性的设置操作,将所述目标标签的可编辑属性设置为可编辑状态;
    在所述可编辑状态下,响应于针对所述目标标签的编辑操作,将所述标签列表中的所述目标标签替换为所述编辑操作对应的标签内容,以及将所述对象库中标注有所述目标标签的目标对象的标签修改为所述标签内容。
  2. 根据权利要求1所述的方法,其特征在于,从所述标签列表中搜索所述标签信息对应的待选标签的步骤,包括:
    根据所述标签信息,对所述标签列表中的标签进行正则匹配或者模糊匹配;
    将匹配到的标签作为所述待选标签。
  3. 根据权利要求1所述的方法,其特征在于,响应于针对所述待选标签中目标标签的可编辑属性的设置操作,将所述目标标签的可编辑属性设置为可编辑状态的步骤,包括:
    在检测到鼠标光标悬浮于所述待选标签中的目标标签上时,显示所述目标标签对应的编辑选项和删除选项;
    如果接收到用户针对所述编辑选项的点击操作,将所述目标标签的可编辑属性设置为可编辑状态。
  4. 根据权利要求3所述的方法,其特征在于,在显示所述目标标签对应的编辑选项和删除选项的步骤之后,还包括:
    响应于针对所述删除选项的点击操作,显示确认是否删除的第二提示信息;
    响应于针对所述第二提示信息的确认操作,清除所述对象库中标注有所述目标标签的目标对象的标签。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    接收针对目标对象的标签设置请求;
    基于所述标签设置请求,显示标签搜索输入框和标签列表;
    基于用户在所述标签搜索输入框中输入的标签信息,得到所述标签搜索请求。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,还包括:
    将所述待选标签与所述标签信息中相同的字符进行预设格式的处理;和/或,
    按照预设顺序将所述待选标签添加至搜索结果列表。
  7. 根据权利要求6所述的方法,其特征在于,所述预设顺序包括按照所述待选标签中的相同的字符的数量从大到小排序,或者在相同的字符数量一致的情况下,以所述待选标签的总字符数从少到多排序。
  8. 根据权利要求6所述的方法,其特征在于,所述标签列表和所述搜索结果列表均配置有隐藏属性;
    所述方法还包括:
    响应于针对标签搜索输入框输入的标签信息,修改所述隐藏属性的值为预设第一值,显示所述搜索结果列表,隐藏所述标签列表;其中,所述隐藏属性的值默认为预设第二值,且所述隐藏属性的值为所述预设第二值时,所述搜索结果列表为隐藏状态,所述标签列表为显示状态。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,响应针对于所述标签列表的标签搜索请求,从所述标签列表中搜索标签信息对应的待选标签之后,还包括:
    如果从所述标签列表中未搜索到所述标签信息对应的待选标签,显示以所述标签信息创建新标签的第一提示信息;
    响应于针对所述第一提示信息的点击操作,在所述标签列表中创建新标签;所述新标签的内容为所述标签信息。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    为所述目标对象标注所述新标签。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,将所述目标标签的可编辑属性设置为可编辑状态的步骤之后,还包括:
    监听所述可编辑状态下是否触发不关注事件;
    如果是,显示第三提示信息;所述第三提示信息用于提示用户当前信息未保存,确认是否继续执行将所述目标标签的可编辑属性设置为可编辑状态;
    响应于针对所述第三提示信息的确认继续执行的操作,将所述目标标签的可编辑属性继续设置为可编辑状态;
    响应于针对所述第三提示信息的确认不继续执行的操作,恢复所述标签列表中的所述目标标签。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,响应于针对所述目标标签的编辑操作,将所述标签列表中的所述目标标签替换为所述编辑操作对应的标签内容的步骤之后,还包括:
    检测是否有触发针对所述标签内容的保存指令;
    如果是,执行将所述标签列表中的所述目标标签替换为所述编辑操作对应的标签内容,以及将所述对象库中标注有所述目标标签的目标对象的标签修改为所述标签内容的步骤;
    如果否,取消所述编辑操作对应的标签内容,以恢复所述目标标签。
  13. 一种标签的处理装置,其特征在于,所述装置应用于电子设备,所述电子设备的标签列表中的标签配置有可编辑属性,所述标签列表中的标签用于对对象库中的目标对象进行分类标注,所述装置包括:
    标签搜索模块,用于响应于针对所述标签列表的标签搜索请求,从所述标签列表中搜索标签信息对应的待选标签;其中,所述标签搜索请求携带有目标对象的标签信息;
    状态设置模块,用于响应于针对所述待选标签中目标标签的可编辑属性的设置操作,将所述目标标签的可编辑属性设置为可编辑状态;
    标签更新模块,用于在所述可编辑状态下,响应于针对所述目标标签的编辑操作,将所述标签列表中的所述目标标签替换为所述编辑操作对应的标签内容,以及将所述对象库中标注有所述目标标签的目标对象的标签修改为所述标签内容。
  14. 一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1至12任一项所述方法的步骤。
  15. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,其特征在于,所述计算机程序被处理器运行时执行上述权利要求1至12任一项所述的方法的步骤。
PCT/CN2020/119631 2020-04-21 2020-09-30 标签的处理方法、装置及电子设备 WO2021212761A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010317689.6A CN111625161B (zh) 2020-04-21 2020-04-21 标签的处理方法、装置及电子设备
CN202010317689.6 2020-04-21

Publications (1)

Publication Number Publication Date
WO2021212761A1 true WO2021212761A1 (zh) 2021-10-28

Family

ID=72259113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119631 WO2021212761A1 (zh) 2020-04-21 2020-09-30 标签的处理方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN111625161B (zh)
WO (1) WO2021212761A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117050A (zh) * 2021-11-30 2022-03-01 济南农村商业银行股份有限公司 一种全自动记账流程弹窗处理方法、装置和系统
CN115129200A (zh) * 2022-07-07 2022-09-30 金蝶软件(中国)有限公司 列表内容项的处理方法、装置、设备及存储介质
CN116821523A (zh) * 2023-08-30 2023-09-29 山西合力思创科技股份有限公司 一种人员匹配逻辑校验方法、装置、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625161B (zh) * 2020-04-21 2021-06-22 武汉旷视金智科技有限公司 标签的处理方法、装置及电子设备
CN112287177B (zh) * 2020-11-25 2021-07-13 城云科技(中国)有限公司 一种创建、变更、显示和查询对象标签的方法和装置
CN112631481A (zh) * 2020-12-30 2021-04-09 航天信息软件技术有限公司 一种可编辑列表下的交互方法及系统
CN113723062A (zh) * 2021-08-31 2021-11-30 远光软件股份有限公司 报表标签的编辑方法、装置、存储介质及终端设备
CN114594889A (zh) * 2022-02-24 2022-06-07 联想(北京)有限公司 一种控制方法以及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677870A (zh) * 2016-01-11 2016-06-15 浙江慧脑信息科技有限公司 一种侧边分类索引设置方法
US20190138851A1 (en) * 2016-06-06 2019-05-09 A9.Com, Inc. Neural network-based image manipulation
CN110543477A (zh) * 2019-07-16 2019-12-06 武汉烽火众智数字技术有限责任公司 一种标签构建系统及方法
CN111625161A (zh) * 2020-04-21 2020-09-04 武汉旷视金智科技有限公司 标签的处理方法、装置及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6136770B2 (ja) * 2013-08-30 2017-05-31 株式会社島津製作所 質量分析データ解析装置及び解析方法
US10635672B2 (en) * 2015-09-02 2020-04-28 Oath Inc. Method and system for merging data
CN107194573A (zh) * 2017-05-18 2017-09-22 郝继英 资产资源集中管理方法
CN109242417A (zh) * 2018-08-20 2019-01-18 中国平安财产保险股份有限公司 保单批量修改方法、装置、计算机设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677870A (zh) * 2016-01-11 2016-06-15 浙江慧脑信息科技有限公司 一种侧边分类索引设置方法
US20190138851A1 (en) * 2016-06-06 2019-05-09 A9.Com, Inc. Neural network-based image manipulation
CN110543477A (zh) * 2019-07-16 2019-12-06 武汉烽火众智数字技术有限责任公司 一种标签构建系统及方法
CN111625161A (zh) * 2020-04-21 2020-09-04 武汉旷视金智科技有限公司 标签的处理方法、装置及电子设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117050A (zh) * 2021-11-30 2022-03-01 济南农村商业银行股份有限公司 一种全自动记账流程弹窗处理方法、装置和系统
CN114117050B (zh) * 2021-11-30 2022-08-05 济南农村商业银行股份有限公司 一种全自动记账流程弹窗处理方法、装置和系统
CN115129200A (zh) * 2022-07-07 2022-09-30 金蝶软件(中国)有限公司 列表内容项的处理方法、装置、设备及存储介质
CN116821523A (zh) * 2023-08-30 2023-09-29 山西合力思创科技股份有限公司 一种人员匹配逻辑校验方法、装置、电子设备及存储介质
CN116821523B (zh) * 2023-08-30 2023-11-24 山西合力思创科技股份有限公司 一种人员匹配逻辑校验方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN111625161B (zh) 2021-06-22
CN111625161A (zh) 2020-09-04

Similar Documents

Publication Publication Date Title
WO2021212761A1 (zh) 标签的处理方法、装置及电子设备
US11715069B2 (en) Chat and email messaging integration
US10884835B2 (en) Situation dashboard system and method from event clustering
US11023858B2 (en) System and method for generating desktop focus work areas
US8201079B2 (en) Maintaining annotations for distributed and versioned files
US7689578B2 (en) Dealing with annotation versioning through multiple versioning policies and management thereof
CN107430622A (zh) 用于向用户通知对存储在基于云的文件存储系统中的文件的改变的系统和方法
US10243779B2 (en) System for decomposing events from managed infrastructures with situation room
US9998598B1 (en) Methods and systems for automatically recognizing actions in a call center environment using screen capture technology
US11789993B2 (en) Correlating non-text machine data using event fields
WO2023016264A1 (zh) 一种页面生成方法及装置
US20210200939A1 (en) Document conversion, annotation, and data capturing system
US11262977B2 (en) Display control apparatus, display control method, and non-transitory recording medium
US20100057770A1 (en) System and method of file management, and recording medium storing file management program
WO2023284531A1 (zh) 目标推荐方法、装置及存储介质
US11816096B2 (en) Systems and methods for managing designated content in collaboration systems
US20220318319A1 (en) Focus Events
JPH03135664A (ja) 文書にマークを付ける方法
US20210097055A1 (en) System having a content consistency service for a collaboration tool
JP2007233698A (ja) ウェブ表示端末および注釈処理モジュール
US20220164076A1 (en) Knowledge management systems and methods
US8190563B2 (en) Document management apparatus, document management method, and computer-readable encoding medium recorded with a computer program
JP2020149327A (ja) 情報処理装置及びプログラム
US11886530B2 (en) Systems and methods for website segmentation and quality analysis
JP6279969B2 (ja) コミュニケーション装置

Legal Events

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

Ref document number: 20932415

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20932415

Country of ref document: EP

Kind code of ref document: A1