in
----> 1 from sentence_transformers import SentenceTransformer, util
2 import numpy as np
3
4 embedder = SentenceTransformer('distilbert-base-nli-stsb-mean-tokens')
5
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\sentence_transformers\__init__.py in
1 __version__ = "0.3.4"
2 __DOWNLOAD_SERVER__ = 'https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/'
----> 3 from .datasets import SentencesDataset, SentenceLabelDataset, ParallelSentencesDataset
4 from .LoggingHandler import LoggingHandler
5 from .SentenceTransformer import SentenceTransformer
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\sentence_transformers\datasets\__init__.py in
----> 1 from .sampler import *
2 from .ParallelSentencesDataset import ParallelSentencesDataset
3 from .SentenceLabelDataset import SentenceLabelDataset
4 from .SentencesDataset import SentencesDataset
5 from .EncodeDataset import EncodeDataset
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\sentence_transformers\datasets\sampler\__init__.py in
----> 1 from .LabelSampler import *
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\sentence_transformers\datasets\sampler\LabelSampler.py in
2 This file contains sampler functions, that can be used to sample mini-batches with specific properties.
3 """
----> 4 from torch.utils.data import Sampler
5 import numpy as np
6 from ...datasets import SentenceLabelDataset
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\torch\utils\data\__init__.py in
2 from .distributed import DistributedSampler
3 from .dataset import Dataset, IterableDataset, TensorDataset, ConcatDataset, ChainDataset, Subset, random_split
----> 4 from .dataloader import DataLoader, _DatasetKind, get_worker_info
c:\users\cyril\appdata\local\programs\python\python36\lib\site-packages\torch\utils\data\dataloader.py in
13 import torch
14 import torch.multiprocessing as multiprocessing
---> 15 from torch._utils import ExceptionWrapper
16 from torch._six import queue, string_classes
17
ImportError: cannot import name 'ExceptionWrapper'
ImportError Traceback (most recent call last)