Sentence Semitics classification with CNN

Hi, i have a problem using the torchtext library, its giving me an os error

OSError                                   Traceback (most recent call last)
Cell In[40], line 1
----> 1 from torchtext.vocab import build_vocab_from_iterator
      2 from collections import Counter
      3 from torchtext.vocab import Vocab

File ~/anaconda3/envs/torch/lib/python3.10/site-packages/torchtext/__init__.py:18
     15     _WARN = False
     17 # the following import has to happen first in order to load the torchtext C++ library
---> 18 from torchtext import _extension  # noqa: F401
     20 _TEXT_BUCKET = "https://download.pytorch.org/models/text/"
     22 _CACHE_DIR = os.path.expanduser(os.path.join(_get_torch_home(), "text"))

File ~/anaconda3/envs/torch/lib/python3.10/site-packages/torchtext/_extension.py:64
     59     # This import is for initializing the methods registered via PyBind11
     60     # This has to happen after the base library is loaded
     61     from torchtext import _torchtext  # noqa
---> 64 _init_extension()

File ~/anaconda3/envs/torch/lib/python3.10/site-packages/torchtext/_extension.py:58, in _init_extension()
     55 if not _mod_utils.is_module_available("torchtext._torchtext"):
     56     raise ImportError("torchtext C++ Extension is not found.")
---> 58 _load_lib("libtorchtext")
     59 # This import is for initializing the methods registered via PyBind11
...
    376     self._handle = handle

You could try to reinstall torchtext to check if your installation is broken for some reason. However, also note that torchtext is in maintenance mode and not actively developed anymore.