Closed KevinLion15 closed 3 years ago
Hello can you help me please
From the error, it looks like pytorch isn't installed. You will need to install pytorch to use bert-extractive-summarizer
pip install torchvision --user
should help
If you are having any other issues, feel free to re-open.
Traceback (most recent call last):
File "d:\btech\3-YEAR\sem-6\NLP\project\extractive\bert-extractive-summarizer-master\examples\summarize.py", line 1, in
please need help
pip install summarizer
this is the message they give me None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. Traceback (most recent call last): File "C:/Users/klion/AppData/Local/Programs/Python/Python39/test.py", line 1, in
from summarizer import Summarizer
File "C:\Users\klion\AppData\Local\Programs\Python\Python39\lib\site-packages\summarizer__init__.py", line 1, in
from summarizer.model_processors import Summarizer, TransformerSummarizer
File "C:\Users\klion\AppData\Local\Programs\Python\Python39\lib\site-packages\summarizer\model_processors.py", line 6, in
from summarizer.bert_parent import BertParent
File "C:\Users\klion\AppData\Local\Programs\Python\Python39\lib\site-packages\summarizer\bert_parent.py", line 4, in
import torch
ModuleNotFoundError: No module named 'torch'