-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update README and package.json * Re-generate tool for API version 1.0.1 * Update API and tool version in Tool object
- Loading branch information
1 parent
2996548
commit 8f30afb
Showing
8 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ def get_tool(): # noqa: E501 | |
""" | ||
tool = Tool( | ||
name="physical-address-annotator-example", | ||
version="1.0.0", | ||
version="1.0.1", | ||
license=License.APACHE_2_0, | ||
repository="github:nlpsandbox/physical-address-annotator-example", | ||
description="Example implementation of the NLP Sandbox Physical " + | ||
|
@@ -22,7 +22,7 @@ def get_tool(): # noqa: E501 | |
author_email="[email protected]", | ||
url="https://github.com/nlpsandbox/physical-address-annotator-example", | ||
tool_type="nlpsandbox:physical-address-annotator", | ||
tool_api_version="1.0.0" | ||
tool_api_version="1.0.1" | ||
) | ||
return tool, 200 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,28 @@ info: | |
name: The NLP Sandbox Team | ||
url: https://nlpsandbox.io | ||
description: | | ||
# Overview | ||
# Introduction | ||
The Physical Address Annotator is one of the first type of NLP Tools that can be benchmarked on [nlpsandbox.io](https://nlpsandbox.io). A Physical Address Annotator takes as input a clinical note and outputs a list of predicted physical address annotations found in the clinical note. This OpenAPI document describes the specification of a Physical Address Annotator. This specification includes the schemas of the input and output data, and the conditions that this annotator must meet if you want to benchmark its performance on [nlpsandbox.io](https://nlpsandbox.io). | ||
# Getting Started | ||
The GitHub repository [nlpsandbox/physical-address-annotator-example](https://github.com/nlpsandbox/physical-address-annotator-example) provides a simple example implementation of a Python-Flask Physical Address Annotator. By the end of the tutorial available in this repository, you will have built a Docker image for a simple Physical Address Annotator. You will then be able to submit this image to [nlpsandbox.io](https://nlpsandbox.io) to benchmark its performance. | ||
# Benchmarking Requirements | ||
The following conditions must be met by your Physical Address Annotator if you want to benchmark its performance on [nlpsandbox.io](https://nlpsandbox.io). | ||
- The endpoint `/` must redirect to `/api/v1/tool`. | ||
- The endpoint `/ui` must redirect to the web interface (UI). | ||
- The output of this tool must be reproducible: a given input should always | ||
generate the same output. | ||
This NLP tool detects references of physical addresses in the clinical note | ||
given as input and returns a list of physical address annotations. | ||
- This tool must not attempt to connect to remote server for reproducibility, | ||
robustness, and security reasons. When benchmarked on [nlpsandbox.io](https://nlpsandbox.io), | ||
this tool will not be able to connect to remote servers. | ||
# Examples | ||
- [NLP Sandbox Physical Address Annotator (Python)](https://github.com/nlpsandbox/physical-address-annotator-example) | ||
- [Physical Address Annotator Example (Python)](https://github.com/nlpsandbox/physical-address-annotator-example) | ||
license: | ||
name: Apache 2.0 | ||
url: https://github.com/nlpsandbox/nlpsandbox-schemas/blob/develop/LICENSE | ||
title: NLP Sandbox Physical Address Annotator API | ||
version: 1.0.0 | ||
version: 1.0.1 | ||
x-logo: | ||
url: https://nlpsandbox.github.io/nlpsandbox-schemas/logo.png | ||
servers: | ||
|
@@ -290,6 +299,7 @@ components: | |
minimum: 0 | ||
type: number | ||
required: | ||
- confidence | ||
- length | ||
- start | ||
- text | ||
|
@@ -366,6 +376,7 @@ components: | |
- ncsa | ||
- unlicense | ||
- zlib | ||
- none | ||
example: apache-2.0 | ||
type: string | ||
ToolType: | ||
|
@@ -387,7 +398,7 @@ components: | |
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.0 | ||
toolApiVersion: 1.0.1 | ||
properties: | ||
name: | ||
description: The tool name | ||
|
@@ -457,7 +468,7 @@ components: | |
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.0 | ||
toolApiVersion: 1.0.1 | ||
- name: awesome-nlp-tool | ||
version: 1.0.6 | ||
license: apache-2.0 | ||
|
@@ -467,7 +478,7 @@ components: | |
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.0 | ||
toolApiVersion: 1.0.1 | ||
properties: | ||
toolDependencies: | ||
description: A list of tools | ||
|