CN110717312A - Text labeling method and device - Google Patents

Text labeling method and device Download PDF

Info

Publication number
CN110717312A
CN110717312A CN201910960330.8A CN201910960330A CN110717312A CN 110717312 A CN110717312 A CN 110717312A CN 201910960330 A CN201910960330 A CN 201910960330A CN 110717312 A CN110717312 A CN 110717312A
Authority
CN
China
Prior art keywords
target
instruction
text
tag
receiving
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910960330.8A
Other languages
Chinese (zh)
Other versions
CN110717312B (en
Inventor
徐安华
廉雨薇
马瑞璇
路德龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
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 Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201910960330.8A priority Critical patent/CN110717312B/en
Publication of CN110717312A publication Critical patent/CN110717312A/en
Application granted granted Critical
Publication of CN110717312B publication Critical patent/CN110717312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/381Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using identifiers, e.g. barcodes, RFIDs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a text labeling method and a text labeling device, wherein the method comprises the following steps: receiving a trigger instruction for triggering the labeling of a target text to be labeled; displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction; receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text; and marking the one or more target labels for the target text according to the dragging instruction. The method can solve the problem that labels are manually marked on the texts in the related technology, can finish marking of the text labels by directly selecting the target labels from the label list, simplifies the manual marking mode, is different from common single-label classified texts, expands text classification into text classification marking supporting multiple labels, and enables the text classification of the multiple labels to be faster.

Description

Text labeling method and device
Technical Field
The invention relates to the technical field of information, in particular to a text labeling method and device.
Background
Understanding human language by machines has been a problem that has been solved by various scholars. Artificial intelligence will also become a reality if the machine can have full knowledge of the human language and give appropriate feedback depending on the situation. While artificial intelligence is a well-known concept that holds an infinite expectation for machines to solve various problems, most people are not aware that the intelligence of machines is derived from manual information input, which is a large amount of manual information input to make machines intelligent.
Natural language processing is a major problem of artificial intelligence, and in popular science, natural language processing is to enable a machine to understand the meaning of languages in various expression forms such as human characters and voice. Likewise, natural language processing still requires a large amount of manual information input as the basis for machine learning.
The manual information input is not any information, for the text field, the manual information input is marked information, and the marked data is valuable for the machine, namely a training set which people often say, and a certain amount of training set is required to be used as a learning source for machine learning.
The labeling of data is actually to label and classify the data according to the knowledge of human beings. It is equivalent to making a learning data specially belonging to the machine, and making the machine learn.
When data is labeled manually, labels corresponding to texts are generally labeled manually, but manual labeling in the related art is complicated.
Aiming at the problem that manually labeling the text with labels in the related technology is complicated, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides a text labeling method and device, which at least solve the problem that manually labeling a text label is complicated in the related technology.
According to an embodiment of the present invention, there is provided a text labeling method including:
receiving a trigger instruction for triggering the labeling of a target text to be labeled;
displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
and marking the one or more target labels for the target text according to the dragging instruction.
Optionally, displaying the target tag list at the first predetermined position of the page where the target text is located according to the trigger instruction includes at least one of:
displaying a first tag list containing a predetermined number of tags determined according to a use frequency at the first predetermined position in a manner of a predetermined transparency and covering a partial region of the target text;
displaying a second label list containing labels used in a predetermined time period at the first predetermined position in a manner of the predetermined transparency and covering a partial area of the target text;
displaying a third tag list containing a plurality of tag categories and tags corresponding to the plurality of tag categories at the first predetermined position in a manner of covering a partial area of the target text with the predetermined transparency, wherein each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list comprises at least one of the following items: the first tag list, the second tag list, and the third tag list.
Further, when the number of tags in the first tag list, the second tag list, and/or the third tag list is large, in order to avoid occupying too many areas, the tags are displayed in a folded manner, for example, when the number of tags is greater than 10, correspondingly, displaying the target tag list at the first predetermined position of the page where the target text is located according to the trigger instruction may specifically include: and displaying the labels in the first label list, the second label list and/or the third label list in a folding mode, namely only displaying part of the labels, folding the other part of the labels, and displaying the complete labels when the current user clicks an arrow displayed in an unfolding mode.
Optionally, after labeling the one or more target labels for the target text according to the dragging instruction, the method further includes:
receiving a display instruction for displaying the first tag list and/or the second tag list on a page where the target text is located;
and displaying the first label list and/or the second label list at a second preset position of the page where the target text is located according to the display instruction.
Optionally, receiving a selection instruction for selecting one or more target tags in the tag list includes:
receiving a first selection instruction for selecting a target label in the first label list;
receiving a second selection instruction for selecting a target label in the second label list;
receiving a third selection instruction for selecting a target tag in the third tag list, wherein the target selection instruction comprises at least one of: the first selection instruction, the second selection instruction, and the third selection instruction.
Optionally, after labeling the one or more target labels for the target text according to the dragging instruction, the method further includes:
receiving a first touch instruction of clicking or double clicking the target text;
displaying the one or more labeled target tags at a third preset position of the page where the target text is located according to the first touch instruction;
receiving a second touch instruction of clicking or double-clicking the target text again;
hiding the one or more labeled target labels according to the second touch instruction.
Optionally, after labeling the one or more target labels for the target text according to the dragging instruction, the method further includes:
receiving a third touch instruction for switching the content of the target text from the current page to the next page;
and switching the content of the target text from the current page to the next page according to the third touch instruction, and displaying the one or more target tags labeled for the target text at the third preset position.
According to another embodiment of the present invention, there is also provided a text labeling apparatus including:
the first receiving module is used for receiving a trigger instruction for triggering the labeling of the target text to be labeled;
the first display module is used for displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
the second receiving module is used for receiving a target selection instruction for selecting one or more target labels in the label list and receiving a dragging instruction for dragging the selected one or more target labels to the target text;
and the marking module is used for marking the one or more target labels for the target text according to the dragging instruction.
Optionally, the first display module comprises at least one of:
a first display sub-module for displaying a first tag list containing a predetermined number of tags determined according to a frequency of use at the first predetermined position in a manner of a predetermined transparency and covering a partial area of the target text;
a second display sub-module for displaying a second tag list containing tags used within a predetermined period of time at the first predetermined position in such a manner that the predetermined transparency is covered over a partial region of the target text;
a third display sub-module, configured to display, at the first predetermined position, a third tag list including a plurality of tag categories and tags corresponding to the plurality of tag categories, in a manner that the predetermined transparency is set and a partial area of the target text is covered, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list includes at least one of: the first tag list, the second tag list, and the third tag list.
Optionally, the apparatus further comprises:
a third receiving module, configured to receive a display instruction for displaying the first tag list and/or the second tag list on a page where the target text is located;
and the second display module is used for displaying the first label list and/or the second label list at a second preset position of the page where the target text is located according to the display instruction.
Optionally, the second receiving module includes:
the first receiving submodule is used for receiving a first selection instruction for selecting a target label in the first label list;
the second receiving submodule is used for receiving a second selection instruction for selecting the target label in the second label list;
a third receiving submodule, configured to receive a third selection instruction for selecting a target tag in the third tag list, where the target selection instruction includes at least one of: the first selection instruction, the second selection instruction, and the third selection instruction.
Optionally, the apparatus further comprises:
the fourth receiving module is used for receiving a first touch instruction of clicking or double clicking the target text;
the third display module is used for displaying the one or more labeled target labels at a third preset position of the page where the target text is located according to the first touch instruction;
the fifth receiving module is used for receiving a second touch instruction of clicking or double clicking the target text again;
and the hiding module is used for hiding the one or more labeled target labels according to the second touch instruction.
Optionally, the apparatus further comprises:
a sixth receiving module, configured to receive a third touch instruction for switching content of the target text from a current page to a next page;
and the fourth display module is used for switching the content of the target text from the current page to the next page according to the third touch instruction and displaying the one or more target tags labeled for the target text at the third preset position.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a trigger instruction for triggering the marking of the target text to be marked is received; displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction; receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text; according to the method, the one or more target labels are marked on the target text according to the dragging instruction, so that the problem that the labels are marked on the text manually in the related technology can be solved, the labeling of the text labels can be completed by directly selecting the target labels from the label list, the manual labeling mode is simplified, the method is different from the common single-label classified text, the text classification is expanded to the text classification labeling supporting multiple labels, and the text classification of the multiple labels is faster.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a text labeling method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a text annotation method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a text label display according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a text annotation according to an embodiment of the present invention;
FIG. 5 is a block diagram of a text annotation device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a text annotation method according to an embodiment of the present invention, as shown in fig. 1, a mobile terminal 10 may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the message receiving method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Based on the above mobile terminal, this embodiment provides a text annotation method, and fig. 2 is a flowchart of the text annotation method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving a trigger instruction for triggering the labeling of a target text to be labeled;
step S204, displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
the first predetermined position may be a position directly above, directly below, to the left or to the right of the page, and may be set in advance.
Optionally, the step S204 may specifically include at least one of the following steps:
displaying a first tag list containing a predetermined number of tags determined according to a use frequency at the first predetermined position in a manner of a predetermined transparency and covering a partial region of the target text;
displaying a second label list containing labels used in a predetermined time period at the first predetermined position in a manner of the predetermined transparency and covering a partial area of the target text;
displaying a third tag list containing a plurality of tag categories and tags corresponding to the plurality of tag categories at the first predetermined position in a manner of covering a partial area of the target text with the predetermined transparency, wherein each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list comprises at least one of the following items: the first tag list, the second tag list, and the third tag list.
Further, when the number of tags in the first tag list, the second tag list, and/or the third tag list is large, in order to avoid occupying too many areas, the tags are displayed in a folded manner, for example, when the number of tags is greater than 10, correspondingly, displaying the target tag list at the first predetermined position of the page where the target text is located according to the trigger instruction may specifically include: and displaying the labels in the first label list, the second label list and/or the third label list in a folding mode, namely only displaying part of the labels, folding the other part of the labels, and displaying the complete labels when the current user clicks an arrow displayed in an unfolding mode.
Preferably, a search box can be set for the tag, and the user can search the corresponding tag only by inputting the keyword into the search box.
Step S206, receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
further, the step S206 may specifically include at least one of the following steps:
receiving a first selection instruction for selecting a target label in the first label list;
receiving a second selection instruction for selecting a target label in the second label list;
receiving a third selection instruction for selecting a target tag in the third tag list, wherein the target selection instruction comprises at least one of: the first selection instruction, the second selection instruction, and the third selection instruction.
Further, after receiving the dragging instruction, in order to facilitate the user to mark the target text, the target label list may be hidden, that is, the target label list is hidden.
Step S208, labeling the one or more target labels for the target text according to the dragging instruction.
Through the steps S202 to S208, a trigger instruction for triggering the labeling of the target text to be labeled is received; displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction; receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text; according to the method, the one or more target labels are marked on the target text according to the dragging instruction, so that the problem that the labels are marked on the text manually in the related technology can be solved, the labeling of the text labels can be completed by directly selecting the target labels from the label list, the manual labeling mode is simplified, the method is different from the common single-label classified text, the text classification is expanded to the text classification labeling supporting multiple labels, and the text classification of the multiple labels is faster.
In the embodiment of the present invention, after the one or more target tags are labeled for the target text according to the dragging instruction, a display instruction for displaying the first tag list and/or the second tag list on a page where the target text is located is received; and displaying the first label list and/or the second label list at a second preset position of the page where the target text is located according to the display instruction. The second predetermined position may be preset at a position in the target text.
In the embodiment of the invention, after the target text is labeled with the one or more target labels according to the dragging instruction, a first touch instruction for clicking or double-clicking the target text is received; displaying the one or more labeled target tags at a third preset position of the page where the target text is located according to the first touch instruction; receiving a second touch instruction of clicking or double-clicking the target text again; hiding the one or more labeled target labels according to the second touch instruction. The target label of the label can be displayed or hidden.
In the embodiment of the invention, after the target text is labeled with the one or more target labels according to the dragging instruction, a third touch instruction for switching the content of the target text from the current page to the next page is received; and switching the content of the target text from the current page to the next page according to the third touch instruction, and displaying the one or more target tags labeled for the target text at the third preset position.
Fig. 3 is a schematic diagram of a text label display according to an embodiment of the present invention, and as shown in fig. 3, the text classification is to classify a piece of natural language text. Firstly, a double-layer (each layer can have numerous labels) label tree is newly built in a label column, the first layer is a large class, and the second layer is a small class of each label of the first layer. The labels on the label tree can be added, deleted and modified at any time. The tag tree can be folded and possesses a certain transparency so as not to affect reading the text. When the text is read, the top label column has recommended labels for the text, and a quick method is provided for labeling. After the label tree is built, the classification work of the text data can be started.
Multiple texts may appear in one page. Through observation, the type of the text is determined, then the label of the type is searched and clicked in the label tree, and the label can be labeled in all types of texts at one time, so that the method is convenient and quick.
Clicking the text, wherein the type of the text appears in the upper right corner of the text, the text is associated with the label, clicking the text box once again, and the text box displaying the type disappears; indicating that the text disassociates the tag. And selecting a right key at any position of the text, wherein the type of the text appears near the position of the right key pressed by the text, and then clicking one position at any time, so that the text box disappears. Multiple labels can be selected from the same text, and only after one label is labeled each time, a new label is selected and the operation is repeated.
Fig. 4 is a schematic diagram of a text label according to an embodiment of the present invention, as shown in fig. 4, if the text is too long, a previous part of the text will be displayed on a page, and if the text is to be read completely, an arrow below the text is clicked. When the document slides down, the label selected by the text is fixedly displayed at the top end of the document, so that a user can conveniently select the label according to the content of the text. When the document is marked up, the text association marked up before is automatically saved after the marked up text is exceeded.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
The embodiment of the present invention further provides a text labeling apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the text labeling apparatus is omitted here. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a text labeling apparatus according to an embodiment of the present invention, as shown in fig. 5, including:
the first receiving module 52 is configured to receive a trigger instruction for triggering labeling of a target text to be labeled;
the first display module 54 is configured to display a target tag list at a first predetermined position of a page where the target text is located according to the trigger instruction;
a second receiving module 56, configured to receive a target selection instruction for selecting one or more target tags in the tag list, and receive a dragging instruction for dragging the selected one or more target tags into the target text;
and a labeling module 58, configured to label the one or more target labels for the target text according to the dragging instruction.
Optionally, the first display module 54 includes at least one of:
a first display sub-module for displaying a first tag list containing a predetermined number of tags determined according to a frequency of use at the first predetermined position in a manner of a predetermined transparency and covering a partial area of the target text;
a second display sub-module for displaying a second tag list containing tags used within a predetermined period of time at the first predetermined position in such a manner that the predetermined transparency is covered over a partial region of the target text;
a third display sub-module, configured to display, at the first predetermined position, a third tag list including a plurality of tag categories and tags corresponding to the plurality of tag categories, in a manner that the predetermined transparency is set and a partial area of the target text is covered, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list includes at least one of: the first tag list, the second tag list, and the third tag list.
Optionally, the apparatus further comprises:
a third receiving module, configured to receive a display instruction for displaying the first tag list and/or the second tag list on a page where the target text is located;
and the second display module is used for displaying the first label list and/or the second label list at a second preset position of the page where the target text is located according to the display instruction.
Optionally, the second receiving module includes:
the first receiving submodule is used for receiving a first selection instruction for selecting a target label in the first label list;
the second receiving submodule is used for receiving a second selection instruction for selecting the target label in the second label list;
a third receiving submodule, configured to receive a third selection instruction for selecting a target tag in the third tag list, where the target selection instruction includes at least one of: the first selection instruction, the second selection instruction, and the third selection instruction.
Optionally, the apparatus further comprises:
the fourth receiving module is used for receiving a first touch instruction of clicking or double clicking the target text;
the third display module is used for displaying the one or more labeled target labels at a third preset position of the page where the target text is located according to the first touch instruction;
the fifth receiving module is used for receiving a second touch instruction of clicking or double clicking the target text again;
and the hiding module is used for hiding the one or more labeled target labels according to the second touch instruction.
Optionally, the apparatus further comprises:
a sixth receiving module, configured to receive a third touch instruction for switching content of the target text from a current page to a next page;
and the fourth display module is used for switching the content of the target text from the current page to the next page according to the third touch instruction and displaying the one or more target tags labeled for the target text at the third preset position.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, receiving a trigger instruction for triggering the labeling of the target text to be labeled;
s12, displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
s13, receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
s14, labeling the one or more target labels for the target text according to the dragging instruction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, receiving a trigger instruction for triggering the labeling of the target text to be labeled;
s12, displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
s13, receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
s14, labeling the one or more target labels for the target text according to the dragging instruction.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A text labeling method is characterized by comprising the following steps:
receiving a trigger instruction for triggering the labeling of a target text to be labeled;
displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
receiving a target selection instruction for selecting one or more target labels in the label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
and marking the one or more target labels for the target text according to the dragging instruction.
2. The method of claim 1, wherein displaying the target tag list at the first predetermined position of the page where the target text is located according to the trigger instruction comprises at least one of:
displaying a first tag list containing a predetermined number of tags determined according to a use frequency at the first predetermined position in a manner of a predetermined transparency and covering a partial region of the target text;
displaying a second label list containing labels used in a predetermined time period at the first predetermined position in a manner of the predetermined transparency and covering a partial area of the target text;
displaying a third tag list containing a plurality of tag categories and tags corresponding to the plurality of tag categories at the first predetermined position in a manner of covering a partial area of the target text with the predetermined transparency, wherein each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list comprises at least one of the following items: the first tag list, the second tag list, and the third tag list.
3. The method of claim 2, wherein after labeling the target text with the one or more target labels according to the drag instruction, the method further comprises:
receiving a display instruction for displaying the first tag list and/or the second tag list on a page where the target text is located;
and displaying the first label list and/or the second label list at a second preset position of the page where the target text is located according to the display instruction.
4. The method of claim 2 or 3, wherein receiving a selection instruction to select one or more target tags in the tag list comprises:
receiving a first selection instruction for selecting a target label in the first label list;
receiving a second selection instruction for selecting a target label in the second label list;
receiving a third selection instruction for selecting a target tag in the third tag list, wherein the target selection instruction comprises at least one of: the first selection instruction, the second selection instruction, and the third selection instruction.
5. The method of claim 1, wherein after labeling the target text with the one or more target labels according to the drag instruction, the method further comprises:
receiving a first touch instruction of clicking or double clicking the target text;
displaying the one or more labeled target tags at a third preset position of the page where the target text is located according to the first touch instruction;
receiving a second touch instruction of clicking or double-clicking the target text again;
hiding the one or more labeled target labels according to the second touch instruction.
6. The method of claim 5, wherein after labeling the target text with the one or more target labels according to the drag instruction, the method further comprises:
receiving a third touch instruction for switching the content of the target text from the current page to the next page;
and switching the content of the target text from the current page to the next page according to the third touch instruction, and displaying the one or more target tags labeled for the target text at the third preset position.
7. A text labeling apparatus, comprising:
the first receiving module is used for receiving a trigger instruction for triggering the labeling of the target text to be labeled;
the first display module is used for displaying a target label list at a first preset position of a page where the target text is located according to the trigger instruction;
the second receiving module is used for receiving a target selection instruction for selecting one or more target labels in the label list and receiving a dragging instruction for dragging the selected one or more target labels to the target text;
and the marking module is used for marking the one or more target labels for the target text according to the dragging instruction.
8. The apparatus of claim 7, wherein the first display module comprises at least one of:
a first display sub-module for displaying a first tag list containing a predetermined number of tags determined according to a frequency of use at the first predetermined position in a manner of a predetermined transparency and covering a partial area of the target text;
a second display sub-module for displaying a second tag list containing tags used within a predetermined period of time at the first predetermined position in such a manner that the predetermined transparency is covered over a partial region of the target text;
a third display sub-module, configured to display, at the first predetermined position, a third tag list including a plurality of tag categories and tags corresponding to the plurality of tag categories, in a manner that the predetermined transparency is set and a partial area of the target text is covered, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are marked by the same identification mark, and the target tag list includes at least one of: the first tag list, the second tag list, and the third tag list.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN201910960330.8A 2019-10-10 2019-10-10 Text labeling method and device Active CN110717312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910960330.8A CN110717312B (en) 2019-10-10 2019-10-10 Text labeling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910960330.8A CN110717312B (en) 2019-10-10 2019-10-10 Text labeling method and device

Publications (2)

Publication Number Publication Date
CN110717312A true CN110717312A (en) 2020-01-21
CN110717312B CN110717312B (en) 2024-02-20

Family

ID=69211377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910960330.8A Active CN110717312B (en) 2019-10-10 2019-10-10 Text labeling method and device

Country Status (1)

Country Link
CN (1) CN110717312B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324706A (en) * 2020-01-21 2020-06-23 全球能源互联网研究院有限公司 Labeling method and device and electronic equipment
CN111898336A (en) * 2020-09-30 2020-11-06 拼说说(深圳)网络科技有限公司 Bullet screen display method and device, computer equipment and storage medium
CN114492310A (en) * 2022-02-16 2022-05-13 平安科技(深圳)有限公司 Text labeling method, text labeling device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120167011A1 (en) * 2010-12-23 2012-06-28 Microsoft Corporation Application Reporting in an Application-Selectable User Interface
CN102915301A (en) * 2011-08-01 2013-02-06 联想(北京)有限公司 Method for generating label lists and electronic device
CN107861927A (en) * 2017-09-21 2018-03-30 广州视源电子科技股份有限公司 Document annotation, device, readable storage medium storing program for executing and computer equipment
CN109683773A (en) * 2017-10-19 2019-04-26 北京国双科技有限公司 Corpus labeling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120167011A1 (en) * 2010-12-23 2012-06-28 Microsoft Corporation Application Reporting in an Application-Selectable User Interface
CN102915301A (en) * 2011-08-01 2013-02-06 联想(北京)有限公司 Method for generating label lists and electronic device
CN107861927A (en) * 2017-09-21 2018-03-30 广州视源电子科技股份有限公司 Document annotation, device, readable storage medium storing program for executing and computer equipment
CN109683773A (en) * 2017-10-19 2019-04-26 北京国双科技有限公司 Corpus labeling method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324706A (en) * 2020-01-21 2020-06-23 全球能源互联网研究院有限公司 Labeling method and device and electronic equipment
CN111324706B (en) * 2020-01-21 2023-05-26 全球能源互联网研究院有限公司 Labeling method and device and electronic equipment
CN111898336A (en) * 2020-09-30 2020-11-06 拼说说(深圳)网络科技有限公司 Bullet screen display method and device, computer equipment and storage medium
CN114492310A (en) * 2022-02-16 2022-05-13 平安科技(深圳)有限公司 Text labeling method, text labeling device, electronic equipment and storage medium
CN114492310B (en) * 2022-02-16 2023-06-23 平安科技(深圳)有限公司 Text labeling method, text labeling device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110717312B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN107590174B (en) Page access method and device
CN103514299B (en) Information search method and device
CN110717312B (en) Text labeling method and device
CN104636428B (en) A kind of trade mark recommends method and device
CN110377743B (en) Text labeling method and device
CN105224554A (en) Search word is recommended to carry out method, system, server and the intelligent terminal searched for
CN111159494B (en) Data labeling method for multi-user concurrent processing
CN109086420B (en) Method, device and storage medium for selecting reading material
CN112507139B (en) Knowledge graph-based question and answer method, system, equipment and storage medium
CN106919711A (en) The method and apparatus of the markup information based on artificial intelligence
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
CN110414001B (en) Sentence generation method and device, storage medium and electronic device
CN108681910A (en) Retroactive method, device, terminal device based on network structure and storage medium
US20220301307A1 (en) Video Generation Method and Apparatus, and Promotional Video Generation Method and Apparatus
CN111352623B (en) Page generation method and device
CN110489032B (en) Dictionary query method for electronic book and electronic equipment
CN114564938A (en) Document parsing method and device, storage medium and processor
CN110647504B (en) Method and device for searching judicial documents
CN110147358B (en) Construction method and construction system of automatic question-answering knowledge base
CN114265777B (en) Application program testing method and device, electronic equipment and storage medium
CN110362694A (en) Data in literature search method, equipment and readable storage medium storing program for executing based on artificial intelligence
CN104850608A (en) Method for searching keywords on information exhibiting page
CN111274813A (en) Language sequence marking method, device storage medium and computer equipment
CN109062890A (en) A kind of label switching method and apparatus, computer readable storage medium
CN114218907A (en) Presentation generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant