Comments (5)
We are working on resolving this in a more universal way shortly. Atm, check out the files and directions here.
Note that the files that contain all the attentions and the hidden representations for an entire corpus can be very large. Make sure you have at least 10GB of space before performing this operation on the wizard of oz txt
from exbert.
I see, thanks for the explanation. There seems to be some issue with tokenization (I didn't read the code in-depth) when I tried to generate the attention files. I guess I will wait for a more universal solution.
At this point, is it possible to run the demo on single sentences without caching a large corpus? In theory that's doable right?
from exbert.
The most common issue with tokenization is an environment one -- make sure you run python -m spacy download en_core_web_sm
after you set up your conda environment. If this does not solve your problem, please paste the issue and we can work on getting it fixed.
So long as there are no "file not found" issues when looking for the hdf5 and faiss files on starting the server, you should be able to run just to play with the attention graph. Without those, you will not be able to search across the inner representations, however.
from exbert.
Hi, thanks for the corpus creating scripts. They're very helpful.
I got an index error with BPE/spacy tokenization as shown below:
Extracting embeddings into /felicity/workspace/exbert/server/data/mt/deepak/embeddings/embeddings.hdf5
['deep', '##ak', 'i', 'don', '’', 't', 'feel', 'like', 'doing', 'my', 'meditation', 'today', '.']
['deepak', 'i', 'do', 'n’t', 'feel', 'like', 'doing', 'my', 'meditation', 'today', '.']
11
0
Deepak I don’t feel like doing my meditation today.
Traceback (most recent call last):
File "/felicity/workspace/exbert/server/data/processing/create_corpus.py", line 19, in <module>
create_hdf5.main(unique_sent_pckl, args.outdir, args.force)
File "/felicity/workspace/exbert/server/data/processing/create_hdf5.py", line 221, in main
sentences_to_hdf5(embedding_extractor, str(embedding_outpath), sentences, clear_file=force)
File "/felicity/workspace/exbert/server/data/processing/create_hdf5.py", line 179, in sentences_to_hdf5
b_pos = combine_tokens_meta(b_tokens, s_tokens, s_pos)
File "/felicity/workspace/exbert/server/utils/token_processing.py", line 121, in combine_tokens_meta
meta_list.append(spacy_meta[j])
IndexError: list index out of range
In IndexError designed to raise under certain circumstances? If not how can I solve it?
Thank you very much.
from exbert.
This looks like a separate bug for the spaCy - BPE alignment. Will look into it in a separate issue.
Looking at the two tokenized lists, it looks like the contraction don't
messes up the alignment.
from exbert.
Related Issues (19)
- corpus explorer unavailable? HOT 1
- Inability to launch responsive server possibly due to package version issues HOT 5
- How to avoid splitting [SEP] HOT 4
- Makefile doesn't work for spacy HOT 1
- Environment not able to recognize `from_pretrained` from `transformer_details` HOT 3
- loading weights with default model HOT 2
- Corpus View 500 error on Live Demo HOT 2
- Running locally with custom models HOT 4
- Processing Reference Corpus [details] HOT 2
- Server got error after open on browser HOT 1
- Problem running locally
- Not able to install exbert using node version 19 HOT 3
- Not able to use create_corpus.py or create_hdf5.py to create a .hdf5 file
- spaCy - BPE Alignment sometimes faulty, raises index errors HOT 2
- Attention block doesn't load when running locally HOT 2
- Compatibility with transformers trained on non-language sequential data HOT 2
- i got the error while i process the text?
- while i am doing the data processing?
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 exbert.