AllenNLP Startup Guide

yasufumy, updated 🕥 2022-12-10 06:11:08

A gentle guild to starting your NLP project with AllenNLP

Requirements

  • Pipenv

Setup

bash 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:

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

Running on GPU:

bash 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

Issues

allennlp version

opened on 2020-09-15 13:51:08 by Mayar2009

Hi! thanks for information but I noticed that the version of used allennlp library was not mentioned It would be very helpful if we know this information

allennlp pytorch python deep-learning natural-language-processing machine-learning