From 6b55193fcb932f86f30b09a560e0a33143fd7e80 Mon Sep 17 00:00:00 2001 From: Joel Grus Date: Wed, 13 Jun 2018 16:56:32 -0700 Subject: [PATCH] bump version number to v0.5.1 --- README.md | 2 +- allennlp/version.py | 2 +- tutorials/README.md | 2 +- .../getting_started/using_as_a_library_pt1.md | 2 +- .../getting_started/using_as_a_library_pt2.md | 18 +++++++++--------- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index fbddc5b57c8..ef3015e4677 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ isolation and consistency, and also makes it easy to distribute your environment to a compute cluster. Once you have [installed Docker](https://docs.docker.com/engine/installation/) -just run `docker run -it -p 8000:8000 --rm allennlp/allennlp:v0.5.0` to get an environment that will run on either the cpu or gpu. +just run `docker run -it -p 8000:8000 --rm allennlp/allennlp:v0.5.1` to get an environment that will run on either the cpu or gpu. You can now test your installation with `./scripts/verify.py`. diff --git a/allennlp/version.py b/allennlp/version.py index 9798e8f2a09..b7139a8c5d3 100644 --- a/allennlp/version.py +++ b/allennlp/version.py @@ -1,6 +1,6 @@ _MAJOR = "0" _MINOR = "5" -_REVISION = "1-unreleased" +_REVISION = "1" VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR) VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION) diff --git a/tutorials/README.md b/tutorials/README.md index d90209c1a04..2cf9a5a25b8 100644 --- a/tutorials/README.md +++ b/tutorials/README.md @@ -1,6 +1,6 @@ # Tutorials -These tutorials relate to the version of AllenNLP at the git commit SHA you are currently looking at (likely the HEAD commit of the master branch). If you want to see the tutorials that relate to the latest pip release, please see https://github.com/allenai/allennlp/tree/v0.5.0/tutorials. +These tutorials relate to the version of AllenNLP at the git commit SHA you are currently looking at (likely the HEAD commit of the master branch). If you want to see the tutorials that relate to the latest pip release, please see https://github.com/allenai/allennlp/tree/v0.5.1/tutorials. ## Getting Started diff --git a/tutorials/getting_started/using_as_a_library_pt1.md b/tutorials/getting_started/using_as_a_library_pt1.md index a3d89f69f60..cb6c45eb7e5 100644 --- a/tutorials/getting_started/using_as_a_library_pt1.md +++ b/tutorials/getting_started/using_as_a_library_pt1.md @@ -20,7 +20,7 @@ lines of code to get a very flexible classifier for academic papers. The first thing we need to do is specify AllenNLP as a dependency in our project. We'll do this by creating a [`requirements.txt`](https://github.com/allenai/allennlp-as-a-library-example/blob/master/requirements.txt) -file. It contains a single line: `allennlp==0.5.0`. Then, after creating a python 3.6 environment, +file. It contains a single line: `allennlp==0.5.1`. Then, after creating a python 3.6 environment, you install AllenNLP by running `pip install -r requirements.txt`. ```bash diff --git a/tutorials/getting_started/using_as_a_library_pt2.md b/tutorials/getting_started/using_as_a_library_pt2.md index 10ccbe5ad24..9e311eec5e1 100644 --- a/tutorials/getting_started/using_as_a_library_pt2.md +++ b/tutorials/getting_started/using_as_a_library_pt2.md @@ -8,11 +8,11 @@ for something. In this tutorial we'll cover both Here we'll be working with the paper classification model we developed in the ["Using AllenNLP in your Project"](using_in_your_repo.md) -tutorial. All the code for that model is [on GitHub](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.0). +tutorial. All the code for that model is [on GitHub](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.1). You can either train it yourself or download a [trained model](https://s3-us-west-2.amazonaws.com/allennlp/models/tutorial-s2-classification-model-2018-02-01.tar.gz), although in this tutorial we'll just use the tiny model that's included -[as a test fixture](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.0/tests/fixtures). +[as a test fixture](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.1/tests/fixtures). ## Creating a Predictor @@ -39,10 +39,10 @@ Usually you only need to implement the `_json_to_instance` function, which specifies how to turn a JSON dict of inputs into an AllenNLP [`Instance`](https://allenai.github.io/allennlp-docs/api/allennlp.data.instance.html). And our `DatasetReader` already has a -[`text_to_instance`](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/my_library/dataset_readers/semantic_scholar_papers.py#L68) +[`text_to_instance`](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/my_library/dataset_readers/semantic_scholar_papers.py#L68) method, which means all we have to do is extract what that method needs from the JSON. -This means our predictor [can be very simple](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/my_library/predictors/paper_classifier_predictor.py): +This means our predictor [can be very simple](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/my_library/predictors/paper_classifier_predictor.py): ```python @Predictor.register('paper-classifier') @@ -87,7 +87,7 @@ The main gotcha here is that our test will (implicitly) need to instantiate our model, dataset reader, and predictor by name, which means that they need to be registered before our test runs. I added them all as imports in -[`my_library/__init__.py`](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/my_library/__init__.py), +[`my_library/__init__.py`](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/my_library/__init__.py), so we just have to import that package: ```python @@ -248,16 +248,16 @@ as those will be implicitly provided by the HTML code. The simplest way to get started is to just "view source" on the demo and save the resulting file in some directory. I called my directory -[`static_html`](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.0/static_html) +[`static_html`](https://github.com/allenai/allennlp-as-a-library-example/tree/0.5.1/static_html) and saved `index.html` there. The original page had a lot of embedded CSS, which I split out into -[its own file](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/static_html/demo.css). +[its own file](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/static_html/demo.css). For our customization, we'll replace the ugly JSON output with a beautiful pie chart of the predicted class probabilities, using a library called [chart.js](http://www.chartjs.org/docs/latest/getting-started/usage.html). -To start with, we need to [add a `script` tag to load chart.js](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/static_html/index.html#L47). +To start with, we need to [add a `script` tag to load chart.js](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/static_html/index.html#L47). ```html @@ -287,7 +287,7 @@ document.getElementById("output").innerHTML = htmlResults; Which means we just need to make a few changes to those parts of our code. If you look at the `chart.js` documentation, we'll need to have a `canvas` element for our chart, so we'll start by -[placing that inside our `output` div](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.0/static_html/index.html#L61): +[placing that inside our `output` div](https://github.com/allenai/allennlp-as-a-library-example/blob/0.5.1/static_html/index.html#L61): ```javascript var canvas = '';