项目作者: loretoparisi

项目描述 :
Text Classification with BERT
高级语言: Jupyter Notebook
项目地址: git://github.com/loretoparisi/bert_text_classifier.git
创建时间: 2019-12-03T09:03:57Z
项目社区:https://github.com/loretoparisi/bert_text_classifier

开源协议:MIT License

下载


bert_text_classifier

Text Classification with BERT with Fastai and HuggingFace. Adapted from https://www.kaggle.com/maroberti/fastai-with-transformers-bert-roberta

How to run Notebooks

You can run BertTextClassifier.ipynb in a Jupyter Notebook or Google’s Colab. To run within Microsoft VisualStudio Code use BertTextClassifier_VSCode.ipynb version.

How to run in command line

To run in command line please first install requirements in a virtual env:

  1. python3 -m venv .env
  2. pip3 install -r requirements.txt
  3. python3 BertTextClassifier.py

Disclaimer

This project was freely adapted by Loreto Parisi from “Fastai with HuggingFace 🤗Transformers (BERT, RoBERTa, XLNet, XLM, DistilBERT)” - https://www.kaggle.com/maroberti/fastai-with-transformers-bert-roberta