Skip to content

yasufumy/allennlp_imdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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