Skip to content

Commit

Permalink
Merge pull request #145 from deepmipt/dev
Browse files Browse the repository at this point in the history
Release v0.1.4
  • Loading branch information
dilyararimovna committed Apr 30, 2022
2 parents 1c9a463 + cffbe57 commit f8e4a59
Show file tree
Hide file tree
Showing 66 changed files with 2,663 additions and 3,854 deletions.
2 changes: 1 addition & 1 deletion annotators/IntentCatcher/data/intent_phrases.json
Expand Up @@ -559,7 +559,7 @@
},
"what_can_you_do": {
"phrases": [
"((so )){0,1}(tell me ){0,1}what can you do",
"((so )){0,1}(tell me ){0,1}what (else ){0,1}can you do",
"(tell me ){0,1}what are you able to do",
"(tell me ){0,1}what you can do",
"what are your ((skills)|(abilities)|(features))",
Expand Down
19 changes: 14 additions & 5 deletions annotators/entity_detection/Dockerfile
@@ -1,26 +1,35 @@
FROM tensorflow/tensorflow:1.15.2-gpu
FROM deeppavlov/base-gpu:0.12.1

RUN apt-get update && apt-get install git -y

ARG SEQ_TAG_CONFIG
ARG EL_TAG_CONFIG
ARG CONFIG
ARG COMMIT=0.13.0
ARG FINEGRAINED
ARG LOWERCASE
ARG PORT
ARG SRC_DIR
ARG SED_ARG=" | "

ENV SEQ_TAG_CONFIG=$SEQ_TAG_CONFIG
ENV EL_TAG_CONFIG=$EL_TAG_CONFIG
ENV CONFIG=$CONFIG
ENV FINEGRAINED=$FINEGRAINED
ENV LOWERCASE=$LOWERCASE
ENV PORT=$PORT

COPY ./annotators/entity_detection/requirements.txt /src/requirements.txt
RUN pip install -r /src/requirements.txt

RUN pip install git+https://github.com/deepmipt/DeepPavlov.git@${COMMIT}
RUN python -m spacy download en_core_web_sm

COPY $SRC_DIR /src

WORKDIR /src
RUN python -m deeppavlov install $CONFIG
RUN python -m deeppavlov install $SEQ_TAG_CONFIG
RUN python -m deeppavlov install $EL_TAG_CONFIG

RUN sed -i "s|$SED_ARG|g" "$CONFIG"
RUN sed -i "s|$SED_ARG|g" "$SEQ_TAG_CONFIG"
RUN sed -i "s|$SED_ARG|g" "$EL_TAG_CONFIG"

CMD gunicorn --workers=1 --timeout 500 server:app -b 0.0.0.0:8103
31 changes: 0 additions & 31 deletions annotators/entity_detection/Dockerfile_new

This file was deleted.

161 changes: 0 additions & 161 deletions annotators/entity_detection/bert_ner_preprocessor.py

This file was deleted.

0 comments on commit f8e4a59

Please sign in to comment.