Created
December 27, 2022 20:50
-
-
Save tomasonjo/8255418559ee70acc3731177f7352375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tokenizer = AutoTokenizer.from_pretrained("yanekyuk/bert-uncased-keyword-extractor") | |
model = AutoModelForTokenClassification.from_pretrained( | |
"yanekyuk/bert-uncased-keyword-extractor" | |
) | |
nlp = pipeline("ner", model=model, tokenizer=tokenizer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment