Skip to content
Discussion options

You must be logged in to vote

Solved! by replacing code from

spacy.require_gpu()
nlp = spacy.load('en_core_web_trf')

to

nlp = spacy.load('en_core_web_trf')
spacy.require_gpu()

I am not sure about the logic here and do not know if it was mentioned before, but accidentally changing the lines worked!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@polm
Comment options

@fatihbozdag
Comment options

Answer selected by fatihbozdag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Third-party packages and services gpu Using spaCy on GPU
2 participants