Downloads · 30 days
31
25% of all-time downloads
sahilnishad/BERT-GED-FCE-FT
BERT-GED-FCE-FT is a token classification model from sahilnishad. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
Fine-tuning bert-base-uncased model for token-level binary grammatical error detection on English-FCE dataset provided by MultiGED-2023
Downloads · 30 days
31
25% of all-time downloads
All-time downloads
123
Public
Parameters
109M
436 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
Fine-tuning bert-base-uncased model for token-level binary grammatical error detection on English-FCE dataset provided by MultiGED-2023
from transformers import AutoModelForTokenClassification, BertTokenizer
# Load the model
model = AutoModelForTokenClassification.from_pretrained("sahilnishad/BERT-GED-FCE-FT")
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
# Function to perform inference
def infer(sentence):
inputs = tokenizer(sentence, return_tensors="pt", add_special_tokens=True)
with torch.no_grad():
outputs = model(**inputs)
return outputs.logits.argmax(-1)
# Example usage
print(infer("Your example sentence here"))
@misc{sahilnishad_bert_ged_fce_ft,
author = {Sahil Nishad},
title = {Fine-tuned BERT Model for Grammatical Error Detection on the FCE Dataset},
year = {2024},
url = {https://huggingface.co/sahilnishad/BERT-GED-FCE-FT},
note = {Model available on HuggingFace Hub},
howpublished = {\url{https://huggingface.co/sahilnishad/BERT-GED-FCE-FT}},
}