From 5e8529fbfe158e5dfe238fadc7400b77d8fcbb79 Mon Sep 17 00:00:00 2001 From: Vincent Prins Date: Tue, 4 Jun 2024 12:49:54 +0200 Subject: [PATCH 1/2] Update readme links to new repos --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 366653c..323934d 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ # galahad-taggers-dockerized (1.0.0) GaLAHaD Taggers Dockerized provides a unified interface for linguistic annotation taggers to be added to GaLAHaD or to be run on their own. Tagger are containerized and can be accessed with an API in order to tag documents. Documents are queued and sent to a callback server once tagged. -[![Development images to Docker](https://github.com/INL/taggers-dockerized/actions/workflows/dev-to-docker.yml/badge.svg)](https://github.com/INL/taggers-dockerized/actions/workflows/dev-to-docker.yml) -[![Production images to Docker](https://github.com/INL/taggers-dockerized/actions/workflows/prod-to-docker.yml/badge.svg)](https://github.com/INL/taggers-dockerized/actions/workflows/prod-to-docker.yml) +[![Development images to Docker](https://github.com/INL/galahad-taggers-dockerized/actions/workflows/dev-to-docker.yml/badge.svg)](https://github.com/INL/galahad-taggers-dockerized/actions/workflows/dev-to-docker.yml) +[![Production images to Docker](https://github.com/INL/galahad-taggers-dockerized/actions/workflows/prod-to-docker.yml/badge.svg)](https://github.com/INL/galahad-taggers-dockerized/actions/workflows/prod-to-docker.yml) ### GaLAHaD-related Repositories - [galahad](https://github.com/INL/galahad) @@ -19,7 +19,7 @@ This repository refers to tagger models that have already been trained and are r ## Quick start Clone this repository and its submodules. ``` -git clone --recurse-submodules https://github.com/INL/taggers-dockerized +git clone --recurse-submodules https://github.com/INL/galahad-taggers-dockerized ``` ### Pull builds from Docker Hub Do you have docker and docker compose? Do you have access to the public Docker Hub [instituutnederlandsetaal](https://hub.docker.com/repositories/instituutnederlandsetaal)? Then you can clone this repository and run @@ -55,10 +55,10 @@ docker compose --env-file .env.dev ## Creating your own tagger To create your own tagger, use the base tagger as a starting point and overwrite `process.py`. I.e., start your Dockerfile with: ``` -FROM instituutnederlandsetaal/taggers-dockerized-pie-base:$tag +FROM instituutnederlandsetaal/taggers-dockerized-base:$tag COPY --link process.py / ``` -And fill out the process() and (optionally) init() functions of [base/process.py](https://github.com/INL/taggers-dockerized/blob/development/base/process.py). +And fill out the process() and (optionally) init() functions of [base/process.py](https://github.com/INL/galahad-taggers-dockerized/blob/release/base/process.py). The `in_file` points to a plain text file. Currently, your tagger is expected to produce tsv as output. The output tsv must contain a header with at least the columns 'token', 'lemma', 'pos' defined in any order. ### Running your own tagger @@ -85,4 +85,4 @@ The `in_file` points to a plain text file. Currently, your tagger is expected to If you specified a devport, you can now find your tagger at `localhost` port devport. ### Make Galahad aware of your tagger -All that is left, is to add a yaml metadata file in the [server/data/taggers/](https://github.com/INL/Galahad/tree/development/server/data/taggers) folder of Galahad. See the [Galahad repository](https://github.com/INL/galahad) for more details. +All that is left, is to add a yaml metadata file in the [server/data/taggers/](https://github.com/INL/galahad/tree/release/server/data/taggers) folder of Galahad. See the [Galahad repository](https://github.com/INL/galahad) for more details. From 7bad469c75c399f2fc7036a0717961097a688b12 Mon Sep 17 00:00:00 2001 From: Vincent Prins Date: Tue, 4 Jun 2024 12:53:11 +0200 Subject: [PATCH 2/2] Rename prod workflow step --- .github/workflows/prod-to-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prod-to-docker.yml b/.github/workflows/prod-to-docker.yml index d416626..cbbb666 100644 --- a/.github/workflows/prod-to-docker.yml +++ b/.github/workflows/prod-to-docker.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - dev-images-to-docker: + prod-images-to-docker: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4