Comments (5)
Hi, pwichmann, thanks for your interest!
One possibility is that something happened during the first download of the model (abort, corruption, not enough disc space etc.), see: https://discuss.pytorch.org/t/loading-pretrained-model-error/10315
Flair models are stored at ~/.flair/models/
- could you try deleting this folder and calling the tagger again? This should trigger a new download.
from flair.
UPDATE:
It was indeed a memory error (insufficient disc space) where a previous model download was incomplete and was not corrected in subsequent FLAIR uses.
I could correct the error following the advice described above. Note that the link does not point to where flair is installed (e.g. in your virtual env). It is indeed '''~/.flair'''.
Many thanks, @alanakbik !
Amazingly fast response and merci for the great tool.
from flair.
from flair.
Great, thanks!
from flair.
Hi,
i have most probably the same issue with one of the LM (XLNetEmbeddings()).
I looked into '''~/.flair''' there is a folder called "embeddings" and inside i see only:
en-fasttext-news-300d-1M glove.gensim.vectors.npy
en-fasttext-news-300d-1M.vectors.npy news-backward-0.4.1.pt
glove.gensim news-forward-0.4.1.pt
Is there any other place where flair stores the downloaded LMs? I have downloaded and used successfully other i.e. RoBERTaEmbeddings(), OpenAIGPT2Embeddings() so they should be somewhere there but i can't find them.
I'd appreciate some help!
from flair.
Related Issues (20)
- [Question]: Combining two different Models? HOT 1
- [Question]: Pre-Tagging information in Sequence-Tagging? HOT 4
- [Question]: AttributeError: 'dict' object has no attribute 'embedding_length' HOT 1
- [Bug]: copying a param with shape compatibility HOT 1
- [Feature]: Fixed versions of black and ruff in CI HOT 2
- [Question]: SpanClassifier For Overlapping NER Tasks? HOT 2
- [Question]: Status of zappr integration HOT 2
- [Bug]: Error message: "learning rate too small - quitting training!" HOT 1
- [Feature]: Multiple GPU Training for MultiTask Learning HOT 3
- [Question]: Embedding with fine tuned classifier model HOT 1
- [Question]: Fine-tune transformer model with TransformerWordEmbedding HOT 1
- [Question]: How much GPU Memory For Zelda Entity Linking?
- [Question]:
- [Bug]: HOT 2
- [Bug]: No Python 3.12 support HOT 2
- [Bug]: Validation F1 score is consistently 0 across training epochs but test F1 is ~0.85 HOT 5
- ImportError: cannot import name 'triu' from 'scipy.linalg'[Question]: HOT 4
- [Question]: Using flair for creating tags or keywords that represents a given text
- [Bug]: optimizer state not saved HOT 2
- [Bug]: Loading task classifier from `Classifier` class not working
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 flair.