spaCy: Problem with spacy.load('de')
How to reproduce the problem
import torch
import torch.nn as nn
import torch.optim as optim
from torchtext.datasets import Multi30k
from torchtext.data import Field, BucketIterator
import numpy as np
import spacy
import random
from torch.utils.tensorboard import SummaryWriter # to print to tensorboard
Libraries imported, when i load dataset using the function with spacy, as below,
Error comes while running below code:
spacy_ger = spacy.load("de")
spacy_eng = spacy.load("en")
OSError: [E050] Can't find model 'de'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory
Your Environment
- Operating System: Windows 10
- Python Version Used: 3.7
- spaCy Version Used:2.3.0
- Environment Information: none
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (3 by maintainers)
Python doesn’t register packages that have been installed after it started running, so you need to restart the runtime in the notebook in order for it to be able to find the new models.