Created
September 4, 2023 13:16
-
-
Save fsndzomga/e009e948b2be9558e8057693cd3c4769 to your computer and use it in GitHub Desktop.
Simple usage of Spacy LLM
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
from keys import OPENAI_API_KEY | |
import os | |
from spacy_llm.util import assemble | |
os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY | |
nlp = assemble("config.cfg") | |
doc = nlp("You are an idiot !") | |
print(doc.cats) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment