Comments (4)
Apologies for taking so long to respond -- exBERT should work out of the box with Roberta but I haven't run it through tests for models trained on more recent versions of huggingface. My guess is that it would work as I am not aware of differences to how they save the model's weights. Would you be willing to try and see what issues you run into with your model? I will gladly take a look to fix/update anything that is not working.
from exbert.
@bhoov - I am unclear how to get this to connect to my existing ClinicalBERT model, can you please provide some guidance so I can see metrics in the web UI?
from exbert.
The following instructions pull the model from https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT with some sensible defaults. They should also work for a local model saved with huggingface's API
There are 2 main parts to exbert:
- Part A: The attention visualization and layer exploration (quick)
- Part B: Annotating a custom (small-ish) corpus and searching for nearest embeddings over them. (harder)
After you setup the environment:
- Part A:
python server/main.py --model emilyalsentzer/Bio_ClinicalBERT --kind bidirectional
- Part B: From the root of the project:
cd server/data_processing
python create_corpus.py -f MY_LOCAL_CLINICAL_CORPUS.txt -o ../../clinical_corpus --model emilyalsentzer/Bio_ClinicalBERT
cd ../..
python server/main.py --model emilyalsentzer/BioClinicalBERT --kind bidirectional --corpus clinical_corpus/
from exbert.
@bhoov Thank you š kindly for that explanation this helps a lot.
As for using makefile, it does break, and have been unsuccessful starting it up via other instructions.
If you can help me get it going, Iād be more than happy to contribute a Dockerfile so it will run everywhere. I also think that is a opportunity for me to refac some of the code & upgrade to PyTorch 1.7 & HuggingFace:latest, while Iām in there containerizing it. Let me know plz.
from exbert.
Related Issues (20)
- 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
- 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
- demo website is not accessible
- provide data files? HOT 5
- 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.