Skip to content

Commit 296513d

Browse files
authored
Merge pull request #519 from ServiceNow/main
Release 2.6.0
2 parents 0b4b5a7 + abb987e commit 296513d

File tree

231 files changed

+12510
-7016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+12510
-7016
lines changed

.app_env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ BACKEND_VERSION=latest
33
FRONTEND_VERSION=latest
44
DEVICE=cpu
55
STAGE=production
6-
CFG_PATH=/config/examples/clinc_oos/conf.json
6+
CFG_PATH=
7+
LOAD_CONFIG_HISTORY=

.dockerignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
azimuth_shr/local_files
2-
azimuth_shr/files
3-
azimuth_shr/sentence_transformers
4-
azimuth_shr/tfhub
1+
azimuth_shr
52
cache
3+
config
64
dist
5+
docs
76
.coverage*
87

98
# Must be kept in sync with webapp/.dockerignore

.github/workflows/docker_cd.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- "v*"
66
jobs:
7-
docker-deploy:
7+
docker-deploy-cpu:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
@@ -16,11 +16,28 @@ jobs:
1616
with:
1717
username: ${{ secrets.DOCKERHUB_USERNAME }}
1818
password: ${{ secrets.DOCKERHUB_TOKEN }}
19-
- run: |
20-
make DEVICE=gpu build push
21-
make DEVICE=cpu build push
22-
make TAG=$VERSION DEVICE=gpu build push
23-
make TAG=$VERSION DEVICE=cpu build push
19+
- name: Build and push CPU Docker image
20+
run: |
21+
make DEVICE=cpu build push
22+
make DEVICE=cpu TAG=$VERSION build push
23+
env:
24+
VERSION: ${{ steps.get_version.outputs.VERSION }}
25+
docker-deploy-gpu:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: Get the version
30+
id: get_version
31+
run: echo VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
32+
- name: Login to Docker Hub
33+
uses: docker/login-action@v2
34+
with:
35+
username: ${{ secrets.DOCKERHUB_USERNAME }}
36+
password: ${{ secrets.DOCKERHUB_TOKEN }}
37+
- name: Build and push GPU Docker image
38+
run: |
39+
make DEVICE=gpu build push
40+
make DEVICE=gpu TAG=$VERSION build push
2441
env:
2542
VERSION: ${{ steps.get_version.outputs.VERSION }}
2643

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repos:
5252
entry: poetry run flake8
5353
types: [ python ]
5454
- repo: https://github.com/pycqa/isort
55-
rev: 5.8.0
55+
rev: 5.12.0
5656
hooks:
5757
- id: isort
5858
name: isort
@@ -63,6 +63,6 @@ repos:
6363
name: mypy
6464
language: system
6565
verbose: true
66-
entry: bash -c 'poetry run mypy "azimuth" || true' --
66+
entry: poetry run mypy azimuth
6767
files: azimuth
6868
pass_filenames: false

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Released changes are shown in the
1111
## [Not released]
1212

1313
### Added
14-
- Persistent id.
1514

1615
### Changed
1716

CITATION.cff

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,59 @@
1-
cff-version: 1.0.0
1+
cff-version: 1.2.0
22
message: "If you use Azimuth in your projects, please cite it as below."
33
authors:
4-
- family-names: "Branchaud-Charron"
5-
given-names: "Frederic"
6-
- family-names: "Gauthier-Melancon"
7-
given-names: "Gabrielle"
8-
- family-names: "Marinier"
9-
given-names: "Joseph"
10-
- family-names: "Brin"
11-
given-names: "Lindsay"
12-
- family-names: "Tyler"
13-
given-names: "Chris"
14-
- family-names: "Le"
15-
given-names: "Di"
16-
- family-names: "Grande"
17-
given-names: "Karine"
18-
- family-names: "Babu"
19-
given-names: "Nandhini"
4+
- family-names: Branchaud-Charron
5+
given-names: Frederic
6+
- family-names: Gauthier-Melancon
7+
given-names: Gabrielle
8+
- family-names: Marinier
9+
given-names: Joseph
10+
- family-names: Brin
11+
given-names: Lindsay
12+
- family-names: Tyler
13+
given-names: Chris
14+
- family-names: Le
15+
given-names: Di
16+
- family-names: Grande
17+
given-names: Karine
18+
- family-names: Babu
19+
given-names: Nandhini
2020
title: "Azimuth, an open-source dataset and error analysis tool for text classification"
2121
version: 2.5
22-
doi: 10.5281/zenodo.6511558
2322
date-released: 2022-08-17
24-
url: "https://github.com/ServiceNow/azimuth"
23+
url: "https://servicenow.github.io/azimuth"
24+
repository-code: "https://github.com/ServiceNow/azimuth"
25+
license: Apache-2.0
26+
identifiers:
27+
- type: doi
28+
value: 10.5281/zenodo.6511558
29+
preferred-citation:
30+
type: conference-paper
31+
title: "Azimuth: Systematic Error Analysis for Text Classification"
32+
authors:
33+
- family-names: Gauthier-Melancon
34+
given-names: Gabrielle
35+
- family-names: Marquez-Ayala
36+
given-names: Orlando
37+
- family-names: Brin
38+
given-names: Lindsay
39+
- family-names: Tyler
40+
given-names: Chris
41+
- family-names: Branchaud-Charron
42+
given-names: Frederic
43+
- family-names: Marinier
44+
given-names: Joseph
45+
- family-names: Grande
46+
given-names: Karine
47+
- family-names: Le
48+
given-names: Di
49+
collection-title: "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: System Demonstrations"
50+
collection-type: proceedings
51+
month: 12
52+
year: 2022
53+
publisher:
54+
name: "Association for Computational Linguistics"
55+
url: "https://aclanthology.org/2022.emnlp-demos.30/"
56+
identifiers:
57+
- type: other
58+
value: "arXiv:2212.08216"
59+
description: "The arXiv preprint of the paper"

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get update && \
2626
DEBIAN_FRONTEND=noninteractive apt-get install -y curl gcc make && \
2727
rm -rf /var/lib/apt/lists/*
2828

29-
RUN curl -sSL https://install.python-poetry.org | python - --version 1.2.0 \
29+
RUN curl -sSL https://install.python-poetry.org | python - --version 1.4.0 \
3030
&& ln -sf /usr/local/poetry/bin/poetry /usr/local/bin/poetry
3131

3232
# Install dependencies.
@@ -39,6 +39,8 @@ RUN poetry config virtualenvs.create false && \
3939
# Install the project.
4040
COPY . /app/
4141
RUN poetry install --extras ${DEVICE} --no-interaction --no-ansi $(/usr/bin/test $STAGE == production && echo "--no-dev")
42-
ENV CFG_PATH="/config/nlp_sa/conf.json"
43-
ENV PORT=8091
44-
CMD ["sh","-c","umask 0002; python runner.py ${CFG_PATH} --port ${PORT}"]
42+
ENV CFG_PATH=
43+
ENV LOAD_CONFIG_HISTORY=
44+
ENV PORT=
45+
ENV ARTIFACT_PATH=/cache
46+
CMD ["sh","-c","umask 0002; python runner.py ${CFG_PATH} ${LOAD_CONFIG_HISTORY:+--load-config-history} ${PORT:+--port ${PORT}}"]

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ include makefiles/Makefile.security
3131
include makefiles/Makefile.test
3232
include makefiles/Makefile.local
3333
include makefiles/Makefile.demo
34-
include makefiles/Makefile.docs
3534

3635
.PHONY: build
3736
build: build_be build_fe
@@ -56,7 +55,7 @@ compose: build launch
5655

5756
.PHONY: launch
5857
launch:
59-
docker-compose -f docker-compose.yml $(COMPOSE_EXT) --env-file $(ENV_FILE) up
58+
docker compose -f docker-compose.yml $(COMPOSE_EXT) --env-file $(ENV_FILE) up
6059

6160
.PHONY: push
6261
push:

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
<a href="https://servicenow.github.io/azimuth">
99
<img alt="Documentation" src="https://github.com/ServiceNow/azimuth/actions/workflows/docs_cd.yml/badge.svg"/></a>
1010
<a href="https://join.slack.com/t/azimuth-org/shared_invite/zt-1i9eu48n9-7NnCXHw5VzUs~gs20xHxyg">
11-
<img alt="Slack" src="https://img.shields.io/badge/slack-chat-green.svg?logo=slack"/></a>
11+
<img alt="Slack" src="https://img.shields.io/badge/slack-chat-blue.svg?logo=slack"/></a>
1212
<a href="./LICENSE">
1313
<img alt="Licence" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a>
1414
<a href="https://doi.org/10.5281/zenodo.6511558">
1515
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.6511558.svg" alt="DOI"></a>
16+
<a href="https://arxiv.org/abs/2212.08216">
17+
<img src="https://img.shields.io/badge/arXiv-2212.08216-blue.svg" alt="arXiv"></a>
18+
<a href="https://azimuth-demo.net/">
19+
<img alt="Azimuth" src="https://shields.io/badge/Azimuth-demo-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAFBlWElmTU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADJ6kISAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAJHklEQVRoBe2YfWzW1RXHz7339/QVSovl7WmrjNcJCKIuumxxmzFGApsmbMSEbCxQQJD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Ph2jTEXVHwDM6ebOMLAlEPd2a6OclL7AcC8xsdgfkbuPhHo8LC1+t2/kNzgyyiunRqJ348V/haGe0XZq35ju3nv5ZKbk5lB9fL45f+WeTAz2BRjSdsFiK621paN+0wqa7tLdR0xgHkPRg9D2MK/hve4cvY+0lhYfDjYnXiPKK3QQfZcIvNCrxNPjvdePw3fcVCQuso22QoFi3y9m67zEJNVAXlXKvpHMyjkmc4c2YmHPxnDwmZj9EwomwDErXFT0t14Xv9Xk5uqJxspuP83FcUavdy9O71hzOJ7vzFnk4PdxXAl4VyshNCY7dx4DP0aPP9088KOAIyHVP/jWPRnq0F8Lrsi15quCJ/hYWUoGvcIe3hDlxZ/uWurg7XfT5VXPs69fRN+asCr+nEw6GsilQbkSy8wPVBRn749TVk+jIt6HUr6jpQCqwrMvW52xESNoHDJScWG0VtFMAD9KekxndAREyW37haEORbUsRCWSWoB/maz338Yb2YIf0m8SFTVRWAmzTop1IcGzPKn4vkJQElJVSCzf9yaTNbKZySbiXL/VcnR9Bu2F8pEaia7hAPNgfWFh51D1uCSCdI9VHIaV8ZP+0G03gJmO5pNlUF6RCe1Epy11Wr7I3GgY8YYMpT8I8nlD/nTUdbrAaf9JxS/m+ymi29b8GeDX888UtU3wDxn/K4T//UiuwnQFq3GWPgfg45TjI5G4Y/KZq+xaXLobkFKZevro/PZcprRmAjwcEguCAq7dBZRivKOHOGXz2Gq5IMoBQJZzmlPYeQMNcNv1g4Z3AKqQA6GVt2ZmmnAfXucHL6v8aVyndFSXDH0ZjzVIU7JRlhfDd4s8TOFLP9MeSHsg7YG0B9IeSHsg7YHP74F/A3MLvD0hrV0DAAAAAElFTkSuQmCC"/></a>
1620

1721
<br>
1822
<br>
@@ -37,7 +41,7 @@ Play with Azimuth on CLINC-OOS and a DistilBert model with a [live demo](https:/
3741

3842
### Published Paper at [EMNLP](https://2022.emnlp.org/)
3943

40-
Our paper was accepted as a [system demo at EMNLP 2022](https://www.servicenow.com/research/publication/gabrielle-gauthier-melancon-azim-emnlp2022.html). More information will be available soon.
44+
Our paper was accepted as a [system demo at EMNLP 2022](https://www.servicenow.com/research/publication/gabrielle-gauthier-melancon-azim-emnlp2022.html). It is available [here](https://arxiv.org/abs/2212.08216).
4145

4246
### Documentation
4347

@@ -54,15 +58,15 @@ references to use Azimuth.
5458
different **contracts** which allow **configuring** Azimuth with different datasets and pipelines.
5559
* [Development](https://servicenow.github.io/azimuth/development) guides on how to develop and
5660
**contribute** to the repo.
57-
61+
5862
### YouTube Playlist
5963

6064
<p align="center">
6165
<a href="https://www.youtube.com/playlist?list=PLdq4WQvLzJCnJmInRYBSfeCWLiHbX55V8">
6266
<img src="docs/docs/_static/images/youtube.png" width="560" height="315" />
6367
</a>
6468
</p>
65-
69+
6670
## Run Our Demo
6771

6872
After installing the requirements, as explained

azimuth/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import os
12
from pathlib import Path
23

3-
from datasets import set_progress_bar_enabled
4+
from datasets import disable_progress_bar
45
from datasets.utils.logging import set_verbosity_error
56

67
from azimuth.utils.logs import set_logger_config
78

89
PROJECT_ROOT = str(Path(__file__).parent)
910

1011
set_verbosity_error()
11-
set_progress_bar_enabled(False)
12+
disable_progress_bar()
1213
set_logger_config()
14+
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "1" # INFO messages from TensorFlow are not printed

0 commit comments

Comments
 (0)