DeDeckerThomas commited on
Commit
9aec2f2
1 Parent(s): 4f8e3db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md CHANGED
@@ -58,6 +58,14 @@ Sahrawat, Dhruva, Debanjan Mahata, Haimin Zhang, Mayank Kulkarni, Agniv Sharma,
58
 
59
  ### ❓ How to use
60
  ```python
 
 
 
 
 
 
 
 
61
  # Define keyphrase extraction pipeline
62
  class KeyphraseExtractionPipeline(TokenClassificationPipeline):
63
  def __init__(self, model, *args, **kwargs):
 
58
 
59
  ### ❓ How to use
60
  ```python
61
+ from transformers import (
62
+ TokenClassificationPipeline,
63
+ AutoModelForTokenClassification,
64
+ AutoTokenizer,
65
+ )
66
+ from transformers.pipelines import AggregationStrategy
67
+ import numpy as np
68
+
69
  # Define keyphrase extraction pipeline
70
  class KeyphraseExtractionPipeline(TokenClassificationPipeline):
71
  def __init__(self, model, *args, **kwargs):