traschke / allennlp_imdb

AllenNLP Startup Guide

Home Page:https://towardsdatascience.com/allennlp-startup-guide-24ffd773cd5b

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A gentle guild to starting your NLP project with AllenNLP

Requirements

  • Pipenv

Setup

git clone https://github.com/yasufumy/allennlp_imdb
cd allennlp_imdb
pipenv install
pipenv shell

Usage

There is a post about this repository: Click this link

Running on Colab

Running on CPU:

allennlp train \
    --include-package allennlp_imdb \
    -s /path/to/serialization \
    training_config/base_cpu.jsonnet

Running on GPU:

allennlp train \
    --include-package allennlp_imdb \
    -s /path/to/serialization \
    -o '{"trainer": {"cuda_device": 0}}' \
    training_config/base_cpu.jsonnet

Creating your own configuration file:

allennlp configure --include-package allennlp_imdb

About

AllenNLP Startup Guide

https://towardsdatascience.com/allennlp-startup-guide-24ffd773cd5b

License:MIT License


Languages

Language:Python 85.0%Language:Jsonnet 15.0%