Skip to content

Commit

Permalink
Merge pull request #26 from nlpsandbox/release-1.0.1
Browse files Browse the repository at this point in the history
Release 1.0.1
  • Loading branch information
tschaffter authored Feb 26, 2021
2 parents 36b527d + bf6311d commit 3c9357e
Show file tree
Hide file tree
Showing 21 changed files with 32 additions and 28 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![GitHub License](https://img.shields.io/github/license/nlpsandbox/date-annotator-example-java.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/nlpsandbox/date-annotator-example-java/blob/develop/LICENSE)
[![Docker Pulls](https://img.shields.io/docker/pulls/nlpsandbox/date-annotator-example-java.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/nlpsandbox/date-annotator-example-java)
[![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")
[![nlpsandbox.io](https://img.shields.io/badge/OpenAPI-nlpsandbox.io-blue?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjMxIiBoZWlnaHQ9IjMxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogPGcgY2xhc3M9ImxheWVyIj4KICA8dGl0bGU+U3luYXBzZSBMb2dvPC90aXRsZT4KICA8ZyBpZD0ic3ZnXzkiPgogICA8cmVjdCBmaWxsPSIjNUM5NEI5IiBoZWlnaHQ9IjIuNDg2MDUiIGlkPSJzdmdfMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43ODU4MTUgLTAuNDU1Nzg3IDAuNDU1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NCwtMC42MDc2OTUgMC4xODM2MzksLTEuMzA0MDk4IC0wLjE2NTg5OCwtMS45MDU1OGMtMC4zMzA5MDUsLTAuNTcwNDMxIC0wLjg3NDcxOSwtMC45NDEyNTMgLTEuNDczNTM5LC0xLjA3MDc3N2MtMC41MzQwNTgsLTAuMTE1MzI1IC0xLjExMjQ3NCwtMC4wMzk5MTYgLTEuNjI0MzU3LDAuMjU3Mjc3Yy0wLjU0NzM2NiwwLjMxNzU5NyAtMC45MTM3NTUsMC44Mjc2OTkgLTEuMDYxOTAxLDEuMzkzNjk3Yy0wLjE0NDYwNCwwLjU1NTM0MiAtMC4wNzg5NjEsMS4xNjQ4MDkgMC4yMzA2NTEsMS42OTg4NjZjMC42MjYzMjcsMS4wNzg3NjIgMi4wMTI5MiwxLjQ0MzM3OSAzLjA5Nzg5NiwwLjgxNDM5OWMwLjQ3OTk0MiwtMC4yNzg1NjEgMC44MjA2MDQsLTAuNzA1Mjc5IDAuOTk3MTQ5LC0xLjE4Nzg4M3oiIGZpbGw9IiM2MkFDNjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9InN2Z184Ii8+CiAgPC9nPgogPC9nPgo8L3N2Zz4=&label=)](https://www.nlpsandbox.io/tools/date-annotator/leaderboards "View the performance of this NLP Tool on nlpsandbox.io")

Example implementation of the [NLP Sandbox Date Annotator]

Expand All @@ -18,8 +17,8 @@ and outputs a list of predicted date annotations found in the clinical note.

### Specification

- Date Annotator API version: 1.0.0
- Tool version: 1.0.0
- Date Annotator API version: 1.0.1
- Tool version: 1.0.1
- Docker image: [nlpsandbox/date-annotator-example-java]

## Model
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"

services:
date-annotator:
image: nlpsandbox/date-annotator-example-java:1.0.0
image: nlpsandbox/date-annotator-example-java:1.0.1
build:
context: server
dockerfile: Dockerfile
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@openapitools/openapi-generator-cli": "2.1.23"
},
"scripts": {
"generate:server": "openapi-generator-cli generate -g spring -o server -i $npm_config_specification"
"generate:server": "openapi-generator-cli generate -g spring -o server -i $npm_config_specification",
"generate:server:latest": "openapi-generator-cli generate -g spring -o server -i https://nlpsandbox.github.io/nlpsandbox-schemas/date-annotator/latest/openapi.json"
}
}
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.9.1-slim-buster

ENV APP_DIR=/opt/app
ENV APP_VERSION="1.0.0"
ENV APP_VERSION="1.0.1"

SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]

Expand Down
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>openapi-spring</artifactId>
<packaging>jar</packaging>
<name>openapi-spring</name>
<version>1.0.0</version>
<version>1.0.1</version>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.context.request.NativeWebRequest;
import java.util.Optional;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-12T21:49:56.981797-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
@Controller
@RequestMapping("${openapi.nLPSandboxDateAnnotator.base-path:/api/v1}")
public class HealthCheckApiController implements HealthCheckApi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.context.request.NativeWebRequest;
import java.util.Optional;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-12T21:49:56.981797-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
@Controller
@RequestMapping("${openapi.nLPSandboxDateAnnotator.base-path:/api/v1}")
public class TextDateAnnotationsApiController implements TextDateAnnotationsApi {
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/java/org/openapitools/api/ToolApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ default Optional<NativeWebRequest> getRequest() {
default ResponseEntity<Tool> getTool() {
Tool tool = new Tool()
.name("date-annotator-example-java")
.version("1.0.0")
.version("1.0.1")
.license(License.APACHE_2_0)
.repository("github:nlpsandbox/date-annotator-example-java")
.description("Example implementation of the NLP Sandbox Date Annotator")
.author("The NLP Sandbox Team")
.authorEmail("[email protected]")
.url(URI.create("https://github.com/nlpsandbox/date-annotator-example-java"))
.toolType("nlpsandbox:date-annotator")
.toolApiVersion("1.0.0");
.toolApiVersion("1.0.1");
return new ResponseEntity<Tool>(tool, HttpStatus.OK);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.context.request.NativeWebRequest;
import java.util.Optional;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-12T21:49:56.981797-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
@Controller
@RequestMapping("${openapi.nLPSandboxDateAnnotator.base-path:/api/v1}")
public class ToolApiController implements ToolApi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@

import javax.servlet.ServletContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
@Configuration
@EnableSwagger2
public class OpenAPIDocumentationConfig {

ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("NLP Sandbox Date Annotator API")
.description("# Overview This NLP tool detects references of dates in the clinical note given as input and returns a list of date annotations. # Examples - [NLP Sandbox Date Annotator (Python)](https://github.com/nlpsandbox/date-annotator-example) - [NLP Sandbox Date Annotator (Java)](https://github.com/nlpsandbox/date-annotator-example-java) ")
.description("")
.license("Apache 2.0")
.licenseUrl("https://github.com/nlpsandbox/nlpsandbox-schemas/blob/develop/LICENSE")
.termsOfServiceUrl("https://nlpsandbox.io")
.version("1.0.0")
.version("1.0.1")
.contact(new Contact("","", "[email protected]"))
.build();
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/org/openapitools/model/Error.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Problem details (tools.ietf.org/html/rfc7807)
*/
@ApiModel(description = "Problem details (tools.ietf.org/html/rfc7807)")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class Error {
@JsonProperty("title")
private String title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Represents the health of a service
*/
@ApiModel(description = "Represents the health of a service")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class HealthCheck {
/**
* Indicates whether the service status is acceptable or not
Expand Down
4 changes: 3 additions & 1 deletion server/src/main/java/org/openapitools/model/License.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public enum License {

UNLICENSE("unlicense"),

ZLIB("zlib");
ZLIB("zlib"),

NONE("none");

private String value;

Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/org/openapitools/model/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* A clinical note
*/
@ApiModel(description = "A clinical note")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class Note {
@JsonProperty("identifier")
private String identifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* An annotation in a text
*/
@ApiModel(description = "An annotation in a text")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class TextAnnotation {
@JsonProperty("start")
private Integer start;
Expand Down Expand Up @@ -101,7 +101,8 @@ public TextAnnotation confidence(Float confidence) {
* maximum: 100
* @return confidence
*/
@ApiModelProperty(value = "The confidence in the accuracy of the annotation")
@ApiModelProperty(required = true, value = "The confidence in the accuracy of the annotation")
@NotNull

@DecimalMin("0") @DecimalMax("100")
public Float getConfidence() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* A date annotation in a text
*/
@ApiModel(description = "A date annotation in a text")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class TextDateAnnotation {
@JsonProperty("start")
private Integer start;
Expand Down Expand Up @@ -106,7 +106,8 @@ public TextDateAnnotation confidence(Float confidence) {
* maximum: 100
* @return confidence
*/
@ApiModelProperty(value = "The confidence in the accuracy of the annotation")
@ApiModelProperty(required = true, value = "The confidence in the accuracy of the annotation")
@NotNull

@DecimalMin("0") @DecimalMax("100")
public Float getConfidence() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* TextDateAnnotationAllOf
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class TextDateAnnotationAllOf {
@JsonProperty("dateFormat")
private String dateFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* A request to annotate dates in a clinical note
*/
@ApiModel(description = "A request to annotate dates in a clinical note")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class TextDateAnnotationRequest {
@JsonProperty("note")
private Note note;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The response to a dates annotation request
*/
@ApiModel(description = "The response to a dates annotation request")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class TextDateAnnotationResponse {
@JsonProperty("textDateAnnotations")
@Valid
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/org/openapitools/model/Tool.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Information about an NLP tool
*/
@ApiModel(description = "Information about an NLP tool")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class Tool {
@JsonProperty("name")
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* A list of tool dependencies
*/
@ApiModel(description = "A list of tool dependencies")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-14T20:17:34.317816-08:00[America/Los_Angeles]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-02-25T15:53:35.186246-08:00[America/Los_Angeles]")
public class ToolDependencies {
@JsonProperty("toolDependencies")
@Valid
Expand Down

0 comments on commit 3c9357e

Please sign in to comment.