Instructions to use lanwuwei/BERTOverflow_stackoverflow_github with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lanwuwei/BERTOverflow_stackoverflow_github with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="lanwuwei/BERTOverflow_stackoverflow_github")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("lanwuwei/BERTOverflow_stackoverflow_github") model = AutoModel.from_pretrained("lanwuwei/BERTOverflow_stackoverflow_github", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from lanwuwei/BERTOverflow_stackoverflow_github: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/lanwuwei/BERTOverflow_stackoverflow_github/resolve/9101078b5aa24f05820ba6b1885a18f5cc07715c/README.md
- Command line
-
hf download hf://lanwuwei/BERTOverflow_stackoverflow_github@9101078b5aa24f05820ba6b1885a18f5cc07715c/README.md
-
curl -L -o README.md https://huggingface.co/lanwuwei/BERTOverflow_stackoverflow_github/resolve/9101078b5aa24f05820ba6b1885a18f5cc07715c/README.md
1.06 kB
BERTOverflow
Model description
We pre-trained BERT-base model on 152 million sentences from the StackOverflow's 10 year archive. More details of this model can be found in our ACL 2020 paper: Code and Named Entity Recognition in StackOverflow. We would like to thank Wuwei Lan for helping us in training this model.
How to use
from transformers import *
import torch
tokenizer = AutoTokenizer.from_pretrained("jeniya/BERTOverflow")
model = AutoModelForTokenClassification.from_pretrained("jeniya/BERTOverflow")
BibTeX entry and citation info
@inproceedings{tabassum2020code,
title={Code and Named Entity Recognition in StackOverflow},
author={Tabassum, Jeniya and Maddela, Mounica and Xu, Wei and Ritter, Alan },
booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL)},
url={https://www.aclweb.org/anthology/2020.acl-main.443/}
year = {2020},
}