Comments (2)
Suppose we have pretrained BERT on custom dataset.
How do we use this BERT model instead of default Hugging Face model?
just need to revise the name of from_pretrained
, just like what you did in HuggingFace
I understand that the repo has a feature to use ELMo/BERT's contextual embeddings in a static manner by pre-computing the embeddings for the whole dataset. Any suggestion on how to do this or where to look in the code?
You can find the information here:
https://github.com/allanj/pytorch_neural_crf/blob/master/preprocess
from pytorch_neural_crf.
This helps. Thank you!
from pytorch_neural_crf.
Related Issues (20)
- AttributeError: 'str' object has no attribute 'size' HOT 2
- Macro F1 and Precision HOT 2
- get error when running in torch 1.81 HOT 4
- ValueError: The label B-MISC does not exist in label2idx dict. The label might not appear in the training set. HOT 1
- How to tweak the learning rate of CRF layer? HOT 1
- Errors when running the default model HOT 7
- Is there a way to use local model checkpoints for Hugginface models ? HOT 3
- About orig_to_token_index padding problem HOT 2
- About CRF layer HOT 3
- Evaluation question HOT 1
- About GLOVE result F1 91.36 HOT 9
- Can not run ner_predictor.py HOT 3
- Please help me? HOT 7
- Summary of training/finetuning/prediction commands HOT 2
- Learning on Heterogeneous Tag Sets using Tag Hierarchy HOT 1
- purpose of token_type_ids or segments HOT 2
- load data error HOT 5
- computation of partition function HOT 11
- ImportError: cannot import name 'context_models' from 'src.config' when running transformers_predictor.py HOT 2
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 pytorch_neural_crf.