Comments (6)
That worked. Thank you so much.
from transformersum.
Experiencing the same issue when trying to import extractive from ExtractiveSummary
Initially, the ModuleNotFoundError: No module named 'extractive'
error was experienced (as mentioned in issue #59 but it was resolved after changing the directory to src
.
from transformersum.
Same issue for me as well, with import extractive from ExtractiveSummary
. It used to work a couple of weeks ago. Anything changed recently ?
from transformersum.
This should now be resolved by 1395f37. Please let me know if this didn't work.
from transformersum.
Thank you for fixing "_LazyAutoMapping" issue.
But now it triggers a ValueError though (which seems to have originally resolved a while back)
summary = extrSumm_model.predict(context, raw_scores=False, num_summary_sentences=6)
Error message is
ValueError: [E003] Not a valid pipeline component. Expected callable, but got 'sentencizer' (name: 'None').[E004] If you meant to add a built-in component, use `create_pipe`: `nlp.add_pipe(nlp.create_pipe('sentencizer'))`
Log is
/content/transformersum/src/extractive.py in predict(self, input_text, raw_scores, num_summary_sentences)
1174 """
1175 nlp = English()
-> 1176 nlp.add_pipe("sentencizer")
1177 doc = nlp(input_text)
/usr/local/lib/python3.7/dist-packages/spacy/language.py in add_pipe(self, component, name, before, after, first, last)
325 if isinstance(component, basestring_) and component in self.factories:
326 msg += Errors.E004.format(component=component)
--> 327 raise ValueError(msg)
328 if name is None:
329 name = util.get_component_name(component)
Tried making the change as mentioned in the error message; but no luck. Would you please check ?
from transformersum.
Looks like you're using an old version of Spacy (probably v2). Please try upgrading to v3 with pip install -U spacy
. Some services (ex: Google Colab) come with v2 installed by default but this library is updated to work with v3.
from transformersum.
Related Issues (20)
- Unable to reproduce example HOT 5
- TypeError: __init__() got an unexpected keyword argument 'gradient_checkpointing' HOT 1
- ModuleNotFoundError: No module named 'extractive' HOT 1
- AttributeError: '_LazyAutoMapping' object has no attribute '_mapping' HOT 1
- ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. HOT 3
- error when training an extractive summarization model HOT 2
- Found keys that are in the model state dict but not in the checkpoint HOT 3
- Suggest about the index order of extractive results
- A Chinese solution for TransformerSum-extractive, and I've implemented your work in my project HOT 1
- After extractive training, a process on one GPU won't terminate automatically.
- Fine-tuning/Inference commands for "roberta-base-ext-sum"
- '--data_type' is not accepted when running main.py (extractive mode)
- Why tokenize twice?
- TypeError: forward() got an unexpected keyword argument 'source'
- Instruction for fine tune
- Installation via Pip
- Some versioning problems when installing the environment HOT 2
- pytorch_lightning.callbacks update HOT 1
- RoBERTa & Longformer extractive model checkpoints availability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformersum.