DeDeckerThomas commited on
Commit
0a79f9e
•
1 Parent(s): 6bfff72

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -11
README.md CHANGED
@@ -9,7 +9,17 @@ datasets:
9
  metrics:
10
  - seqeval
11
  widget:
12
- - text: "Keyphrase extraction is a technique in text analysis where you extract the important keyphrases from a text. Since this is a time-consuming process, Artificial Intelligence is used to automate it. Currently, classical machine learning methods, that use statistics and linguistics, are widely used for the extraction process. The fact that these methods have been widely used in the community has the advantage that there are many easy-to-use libraries. Now with the recent innovations in NLP, transformers can be used to improve keyphrase extraction. Transformers also focus on the semantics and context of a document, which is quite an improvement."
 
 
 
 
 
 
 
 
 
 
13
  example_title: "Example 1"
14
  - text: "In this work, we explore how to learn task specific language models aimed towards learning rich representation of keyphrases from text documents. We experiment with different masking strategies for pre-training transformer language models (LMs) in discriminative as well as generative settings. In the discriminative setting, we introduce a new pre-training objective - Keyphrase Boundary Infilling with Replacement (KBIR), showing large gains in performance (up to 9.26 points in F1) over SOTA, when LM pre-trained using KBIR is fine-tuned for the task of keyphrase extraction. In the generative setting, we introduce a new pre-training setup for BART - KeyBART, that reproduces the keyphrases related to the input text in the CatSeq format, instead of the denoised original input. This also led to gains in performance (up to 4.33 points inF1@M) over SOTA for keyphrase generation. Additionally, we also fine-tune the pre-trained language models on named entity recognition(NER), question answering (QA), relation extraction (RE), abstractive summarization and achieve comparable performance with that of the SOTA, showing that learning rich representation of keyphrases is indeed beneficial for many other fundamental NLP tasks."
15
  example_title: "Example 2"
@@ -94,13 +104,21 @@ extractor = KeyphraseExtractionPipeline(model=model_name)
94
  ```python
95
  # Inference
96
  text = """
97
- Keyphrase extraction is a technique in text analysis where you extract the important keyphrases from a text.
98
- Since this is a time-consuming process, Artificial Intelligence is used to automate it.
99
- Currently, classical machine learning methods, that use statistics and linguistics,
100
- are widely used for the extraction process. The fact that these methods have been widely used in the community
101
- has the advantage that there are many easy-to-use libraries. Now with the recent innovations in NLP,
102
- transformers can be used to improve keyphrase extraction. Transformers also focus on the semantics
103
- and context of a document, which is quite an improvement.
 
 
 
 
 
 
 
 
104
  """
105
 
106
  keyphrases = extractor(text)
@@ -111,9 +129,8 @@ print(keyphrases)
111
 
112
  ```
113
  # Output
114
- ['Artificial Intelligence' 'Keyphrase extraction' 'NLP'
115
- 'keyphrase extraction' 'linguistics' 'machine learning' 'semantics'
116
- 'statistics' 'text analysis']
117
  ```
118
 
119
  ## 📚 Training Dataset
 
9
  metrics:
10
  - seqeval
11
  widget:
12
+ - text: "Keyphrase extraction is a technique in text analysis where you extract the important keyphrases from a document.
13
+ Thanks to these keyphrases humans can understand the content of a text very quickly and easily without reading
14
+ it completely. Keyphrase extraction was first done primarily by human annotators, who read the text in detail
15
+ and then wrote down the most important keyphrases. The disadvantage is that if you work with a lot of documents,
16
+ this process can take a lot of time.
17
+
18
+ Here is where Artificial Intelligence comes in. Currently, classical machine learning methods, that use statistical
19
+ and linguistic features, are widely used for the extraction process. Now with deep learning, it is possible to capture
20
+ the semantic meaning of a text even better than these classical methods. Classical methods look at the frequency,
21
+ occurrence and order of words in the text, whereas these neural approaches can capture long-term semantic dependencies
22
+ and context of words in a text."
23
  example_title: "Example 1"
24
  - text: "In this work, we explore how to learn task specific language models aimed towards learning rich representation of keyphrases from text documents. We experiment with different masking strategies for pre-training transformer language models (LMs) in discriminative as well as generative settings. In the discriminative setting, we introduce a new pre-training objective - Keyphrase Boundary Infilling with Replacement (KBIR), showing large gains in performance (up to 9.26 points in F1) over SOTA, when LM pre-trained using KBIR is fine-tuned for the task of keyphrase extraction. In the generative setting, we introduce a new pre-training setup for BART - KeyBART, that reproduces the keyphrases related to the input text in the CatSeq format, instead of the denoised original input. This also led to gains in performance (up to 4.33 points inF1@M) over SOTA for keyphrase generation. Additionally, we also fine-tune the pre-trained language models on named entity recognition(NER), question answering (QA), relation extraction (RE), abstractive summarization and achieve comparable performance with that of the SOTA, showing that learning rich representation of keyphrases is indeed beneficial for many other fundamental NLP tasks."
25
  example_title: "Example 2"
 
104
  ```python
105
  # Inference
106
  text = """
107
+ Keyphrase extraction is a technique in text analysis where you extract the
108
+ important keyphrases from a document. Thanks to these keyphrases humans can
109
+ understand the content of a text very quickly and easily without reading it
110
+ completely. Keyphrase extraction was first done primarily by human annotators,
111
+ who read the text in detail and then wrote down the most important keyphrases.
112
+ The disadvantage is that if you work with a lot of documents, this process
113
+ can take a lot of time.
114
+
115
+ Here is where Artificial Intelligence comes in. Currently, classical machine
116
+ learning methods, that use statistical and linguistic features, are widely used
117
+ for the extraction process. Now with deep learning, it is possible to capture
118
+ the semantic meaning of a text even better than these classical methods.
119
+ Classical methods look at the frequency, occurrence and order of words
120
+ in the text, whereas these neural approaches can capture long-term
121
+ semantic dependencies and context of words in a text.
122
  """
123
 
124
  keyphrases = extractor(text)
 
129
 
130
  ```
131
  # Output
132
+ ['Artificial Intelligence' 'Keyphrase extraction' 'deep learning'
133
+ 'features' 'text analysis']
 
134
  ```
135
 
136
  ## 📚 Training Dataset