Skip to content

Commit

Permalink
Bump project to version 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Nov 30, 2020
1 parent ccfb5cc commit c980cbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# NLP Sandbox Person Name Annotator Example

[![Docker Pulls](https://img.shields.io/docker/pulls/nlpsandbox/person-name-annotator-example.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/nlpsandbox/person-name-annotator-example)
[![GitHub Release](https://img.shields.io/github/release/nlpsandbox/person-name-annotator-example.svg?include_prereleases&color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/nlpsandbox/person-name-annotator-example/releases)
[![GitHub CI](https://img.shields.io/github/workflow/status/nlpsandbox/person-name-annotator-example/ci.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/nlpsandbox/person-name-annotator-example)
[![GitHub License](https://img.shields.io/github/license/nlpsandbox/person-name-annotator-example.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/nlpsandbox/person-name-annotator-example)
[![Docker Pulls](https://img.shields.io/docker/pulls/nlpsandbox/person-name-annotator-example.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/nlpsandbox/person-name-annotator-example)
[![Discord](https://img.shields.io/discord/770484164393828373.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://discord.gg/Zb4ymtF "Realtime support / chat with the community and the team")

An example implementation of the [NLP Sandbox Person Name Annotator].

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "person-name-annotator-example",
"version": "0.2.2",
"version": "0.2.3",
"license": "Apache-2.0",
"devDependencies": {
"@openapitools/openapi-generator-cli": "^1.0.18-4.3.1"
Expand Down
5 changes: 4 additions & 1 deletion server/openapi_server/__main__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/usr/bin/env python3

import connexion
import flask

from openapi_server import encoder

app = connexion.App(__name__, specification_dir='./openapi/')
app.app.json_encoder = encoder.JSONEncoder
app.add_api('openapi.yaml',
arguments={'title': 'NLP Sandbox Person Name Annotator API'},
pythonic_params=True)

# Configuring / to return the service information (required by NLP Sandbox)
app.add_url_rule('/', 'root', lambda: flask.redirect('/api/v1/service'))


def main():
app.run(port=8080)
Expand Down
2 changes: 1 addition & 1 deletion server/openapi_server/controllers/service_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def service(): # noqa: E501
"""
service = Service(
name="person-name-annotator-example",
version="0.2.1",
version="0.2.3",
license="Apache-2.0",
repository="github:nlpsandbox/person-name-annotator-example",
description="An example implementation of the NLP Sandbox " +
Expand Down

0 comments on commit c980cbe

Please sign in to comment.