CN110717312B - Text labeling method and device - Google Patents

Text labeling method and device Download PDF

Info

Publication number
CN110717312B
CN110717312B CN201910960330.8A CN201910960330A CN110717312B CN 110717312 B CN110717312 B CN 110717312B CN 201910960330 A CN201910960330 A CN 201910960330A CN 110717312 B CN110717312 B CN 110717312B
Authority
CN
China
Prior art keywords
target
instruction
text
tag
target text
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.)
Active
Application number
CN201910960330.8A
Other languages
Chinese (zh)
Other versions
CN110717312A (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

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 marking of a target text to be marked; displaying a target tag 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; labeling the one or more target labels for the target text according to the drag instruction. The method can solve the problem that manual labeling of the text is complicated in the related art, labeling of the text label can be completed by directly selecting the target label from the label list, the manual labeling mode is simplified, and text classification is expanded to support multi-label text classification labeling unlike common single-label classification texts, so that multi-label text classification is 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 a text labeling device.
Background
Machine learning of human language has been a problem that various students struggle to solve. Artificial intelligence will also become a reality if the machine can fully understand the human language and give appropriate feedback according to different circumstances. Artificial intelligence is a widely known concept that makes it possible to solve various problems with machines with unlimited expectations, however, it is unknown to most people that the intelligence of a machine is derived from artificial information input and is made intelligent by a large amount of artificial information input.
Natural language processing is a major problem of artificial intelligence, and is popular in that it allows a machine to understand the meaning of language in various expressions such as human text and speech. Also, natural language processing still requires a significant amount of manual information input as the basis for machine learning.
The manual information input is not required to be any information, and for the text field, the manual information input must be marked information, and only marked data is valuable to a machine, namely a training set which is commonly known by people, and the machine learning must have a certain amount of training set as a learning source.
The labeling of data is to label and classify the data according to the knowledge of human beings. Is equivalent to making a piece of learning data specific to the machine, so that the machine can learn.
When the data is marked manually, the labels corresponding to the text are marked manually, but the manual marking in the related technology is complicated.
Aiming at the problem that manual labeling of text is complicated in the related art, no solution has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a text labeling method and a text labeling device, which at least solve the problem that manual labeling of text labels is complicated in the related art.
According to one embodiment of the present invention, there is provided a text labeling method including:
receiving a trigger instruction for triggering marking of a target text to be marked;
displaying a target tag 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 labeling 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 the following:
displaying a first tag list including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
displaying a third tag list comprising a plurality of tag categories and tags corresponding to the tag categories at the first preset position in a mode of preset transparency and covering a partial area of the target text, wherein each tag category corresponds to the tag, each tag category and the corresponding tag are marked by the same identification, and the target tag list comprises at least one of the following: the first tag list, the second tag list, and the third tag list.
Further, in the case that the number of labels in the first label list, the second label list, and/or the third label list is relatively large, in order to avoid occupying too many areas, folding the display labels, for example, when the number of labels is greater than 10, displaying, according to the trigger instruction, the target label list at the first predetermined position of the page where the target text is located 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 the displayed arrow.
Optionally, after labeling the one or more target labels for the target text 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 tag list and/or the second tag 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 tag in the first tag list;
receiving a second selection instruction for selecting a target tag in the second tag 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 following: 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 drag instruction, the method further comprises:
receiving a first touch instruction of clicking or double-clicking the target text;
displaying the marked one or more target labels 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 marked one or more target labels according to the second touch instruction.
Optionally, after labeling the one or more target labels for the target text 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 content of the target text as the one or more target labels marked by 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 triggering instruction for triggering marking of the target text to be marked;
the first display module is used for displaying a target tag 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 into the target text;
and the labeling module is used for labeling the one or more target labels for the target text according to the dragging instruction.
Optionally, the first display module includes at least one of:
a first display sub-module for displaying a first tag list including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
a second display sub-module for displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
a third display sub-module, configured to display, at the first predetermined location, 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 covers a partial area of the target text, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are labeled by the same identification, 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:
the third receiving module is used for receiving a display instruction for displaying the first tag list and/or the second tag list on the page where the target text is located;
and the second display module is used for displaying the first tag list and/or the second tag 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 sub-module is used for receiving a first selection instruction for selecting the target tag in the first tag list;
the second receiving sub-module is used for receiving a second selection instruction for selecting the target tag in the second tag list;
a third receiving sub-module, 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 target labels marked 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 marked one or more 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 the 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 labels marked for the target text at the third preset position.
According to a further embodiment of the invention, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, a trigger instruction for triggering marking of the target text to be marked is received; displaying a target tag 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 dragging instruction, the one or more target labels are marked for the target text, so that the problem that the labels are complicated for manually marking the text in the related technology can be solved, the marking of the text labels can be completed by directly selecting the target labels from the label list, the manual marking mode is simplified, and the text classification is expanded to support multi-label text classification marking, so that the multi-label text classification 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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a hardware architecture 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 labeling 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 present invention;
FIG. 4 is a schematic diagram of text labels according to an embodiment of the present invention;
fig. 5 is a block diagram of a text labeling device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in 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 a mobile terminal according to an embodiment of the present invention, where, as shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input/output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. 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 a message receiving method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. 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 examples, 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 means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Based on the above mobile terminal, this embodiment provides a text labeling method, and fig. 2 is a flowchart of the text labeling method according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, receiving a trigger instruction for triggering marking of a target text to be marked;
step S204, displaying a target tag 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, left or right of the page, and may be set in advance.
Optionally, the step S204 may specifically include at least one of the following:
displaying a first tag list including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
displaying a third tag list comprising a plurality of tag categories and tags corresponding to the tag categories at the first preset position in a mode of preset transparency and covering a partial area of the target text, wherein each tag category corresponds to the tag, each tag category and the corresponding tag are marked by the same identification, and the target tag list comprises at least one of the following: the first tag list, the second tag list, and the third tag list.
Further, in the case that the number of labels in the first label list, the second label list, and/or the third label list is relatively large, in order to avoid occupying too many areas, folding the display labels, for example, when the number of labels is greater than 10, displaying, according to the trigger instruction, the target label list at the first predetermined position of the page where the target text is located 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 the displayed arrow.
Preferably, a search box can be set for the label, and the user can search the corresponding label 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:
receiving a first selection instruction for selecting a target tag in the first tag list;
receiving a second selection instruction for selecting a target tag in the second tag 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 following: the first selection instruction, the second selection instruction, and the third selection instruction.
Further, after receiving the drag instruction, in order to facilitate the user to annotate the target text, the target tag list may be hidden, i.e. hidden.
And 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 labeling of the target text to be labeled is received; displaying a target tag 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 dragging instruction, the one or more target labels are marked for the target text, so that the problem that the labels are complicated for manually marking the text in the related technology can be solved, the marking of the text labels can be completed by directly selecting the target labels from the label list, the manual marking mode is simplified, and the text classification is expanded to support multi-label text classification marking, so that the multi-label text classification is faster.
In the embodiment of the invention, after the one or more target labels are marked for the target text according to the dragging instruction, a display instruction for displaying the first label list and/or the second label list on the page where the target text is located is received; and displaying the first tag list and/or the second tag 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 set in advance at a position in the target text.
In the embodiment of the invention, after the one or more target labels are marked for the target text according to the dragging instruction, a first touch instruction of clicking or double-clicking the target text is received; displaying the marked one or more target labels 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 marked one or more target labels according to the second touch instruction. The marked target label can be displayed, and the target label can be hidden.
In the embodiment of the invention, after the one or more target labels are marked for the target text 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 content of the target text as the one or more target labels marked by 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, text classification is the classification of a piece of natural language text. Firstly, a double-layer (each layer can have countless 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. Tags on the tag tree can be added, deleted and modified at any time. The tag tree may be folded and possess some transparency so as not to affect reading text. The uppermost tag column will have a recommended tag for the text when reading the text, providing a quick way 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 category of the text is determined, and then the label of the category is searched and clicked in the label tree, so that the labels can be marked in all the texts of the category at one time, and the method is convenient and quick.
Clicking the text, wherein the category of the text appears in the upper right corner of the text, the text is indicated to be associated with the tag, clicking the text box once again, and the text box displaying the category disappears; indicating that the text disassociates the tag. And selecting any place of the text to click the right key, wherein the category of the text appears near the place where the right key is pressed, and then any place of the text is clicked, so that the text box also disappears. Multiple labels can be selected from the same text, so long as a new label is selected after one label is marked each time, and the operation is repeated.
FIG. 4 is a schematic diagram of text labeling according to an embodiment of the present invention, as shown in FIG. 4, if the text is too long, the front part of the text will be displayed on the page, if the complete text is to be read, the arrow below the text is clicked. When the document slides down, the label selected by the text can be fixedly displayed at the top end of the document, so that a user can conveniently select the label according to the text content. After the document is marked up and exceeds the text marked up, the text association previously marked up is automatically saved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 2
The embodiment of the invention also provides a text labeling device, which is used for realizing the embodiment and the preferred implementation mode, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, 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 device according to an embodiment of the invention, as shown in FIG. 5, comprising:
the first receiving module 52 is configured to receive a trigger instruction for triggering labeling of a target text to be labeled;
a first display module 54, 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 drag instruction for dragging the selected one or more target tags into the target text;
and the labeling module 58 is 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 including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
a second display sub-module for displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
a third display sub-module, configured to display, at the first predetermined location, 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 covers a partial area of the target text, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are labeled by the same identification, 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:
the third receiving module is used for receiving a display instruction for displaying the first tag list and/or the second tag list on the page where the target text is located;
and the second display module is used for displaying the first tag list and/or the second tag 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 sub-module is used for receiving a first selection instruction for selecting the target tag in the first tag list;
the second receiving sub-module is used for receiving a second selection instruction for selecting the target tag in the second tag list;
a third receiving sub-module, 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 target labels marked 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 marked one or more 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 the 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 labels marked for the target text at the third preset position.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s11, receiving a trigger instruction for triggering marking of a target text to be marked;
s12, displaying a target tag 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;
and S14, labeling the one or more target labels for the target text according to the dragging instruction.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Example 4
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s11, receiving a trigger instruction for triggering marking of a target text to be marked;
s12, displaying a target tag 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;
and S14, labeling the one or more target labels for the target text according to the dragging instruction.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for labeling text, comprising:
receiving a trigger instruction for triggering marking of a target text to be marked;
displaying a target tag 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 target label list, and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
labeling the one or more target labels for the target text according to the dragging instruction;
the step of displaying the target tag list at the first preset position of the page where the target text is located according to the trigger instruction comprises the following steps:
displaying a first tag list including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
displaying a third tag list comprising a plurality of tag categories and tags corresponding to the tag categories at the first preset position in a mode of preset transparency and covering a partial area of the target text, wherein each tag category corresponds to the tag, each tag category and the corresponding tag are marked by the same identification, and the target tag list comprises at least one of the following: the first tag list, the second tag list, the third tag list;
wherein after labeling the one or more target labels for the target text 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 tag list and/or the second tag list at a second preset position of the page where the target text is located according to the display instruction.
2. The method of claim 1, 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 tag in the first tag list;
receiving a second selection instruction for selecting a target tag in the second tag 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 following: the first selection instruction, the second selection instruction, and the third selection instruction.
3. The method of claim 1, wherein after labeling the one or more target labels for the target text according to the drag instruction, the method further comprises:
receiving a first touch instruction of clicking or double-clicking the target text;
displaying the marked one or more target labels 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 marked one or more target labels according to the second touch instruction.
4. The method of claim 3, wherein after labeling the one or more target labels for the target text 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 content of the target text as the one or more target labels marked by the target text at the third preset position.
5. A text labeling device, comprising:
the first receiving module is used for receiving a triggering instruction for triggering marking of the target text to be marked;
the first display module is used for displaying a target tag 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 target label list and receiving a dragging instruction for dragging the selected one or more target labels into the target text;
the labeling module is used for labeling the one or more target labels for the target text according to the dragging instruction;
wherein, the first display module includes:
a first display sub-module for displaying a first tag list including a predetermined number of tags determined according to a frequency of use in a manner of predetermined transparency and covering a partial area of the target text at the first predetermined position;
a second display sub-module for displaying a second tag list including tags used for a predetermined period of time in the first predetermined position in such a manner that the predetermined transparency covers a partial area of the target text;
a third display sub-module, configured to display, at the first predetermined location, 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 covers a partial area of the target text, where each tag category corresponds to a plurality of tags, each tag category and the corresponding plurality of tags are labeled by the same identification, and the target tag list includes at least one of: the first tag list, the second tag list, the third tag list;
the device is further used for 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 after the one or more target tags are marked for the target text according to the dragging instruction; and displaying the first tag list and/or the second tag list at a second preset position of the page where the target text is located according to the display instruction.
6. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of claims 1 to 4 when run.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 4.
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 CN110717312A (en) 2020-01-21
CN110717312B true 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)

Families Citing this family (3)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8689123B2 (en) * 2010-12-23 2014-04-01 Microsoft Corporation Application reporting in an application-selectable user interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN110717312A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN110717312B (en) Text labeling method and device
CN108920457B (en) Address recognition method and device and storage medium
CN107608652B (en) Method and device for controlling graphical interface through voice
CN107590174B (en) Page access method and device
CN110377743B (en) Text labeling method and device
US9286325B2 (en) Methods and systems for ranking images using semantic and aesthetic models
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
CN112328823A (en) Training method and device for multi-label classification model, electronic equipment and storage medium
CN110795548A (en) Intelligent question answering method, device and computer readable storage medium
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
CN110414001B (en) Sentence generation method and device, storage medium and electronic device
US20220301307A1 (en) Video Generation Method and Apparatus, and Promotional Video Generation Method and Apparatus
CN111352623B (en) Page generation method and device
CN110647504B (en) Method and device for searching judicial documents
CN111562911A (en) Webpage editing method and device and storage medium
CN112528146B (en) Content resource recommendation method and device, electronic equipment and storage medium
CN106648367B (en) A kind of reading method and point-of-reading device
CN114564938A (en) Document parsing method and device, storage medium and processor
CN109190019B (en) User image generation method, electronic equipment and computer storage medium
WO2019184539A1 (en) Image processing
CN113836453A (en) Text display method and device
CN114265777B (en) Application program testing method and device, electronic equipment and storage medium
CN111274813A (en) Language sequence marking method, device storage medium and computer equipment
CN114461886A (en) Labeling method, labeling 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