<commit_before>FROM python:3

WORKDIR /usr/src/app

RUN mkdir -p /usr/src/app/src/nlp_service

COPY ./src/nlp_service/requirements.txt ./src/nlp_service/
COPY ./src/nlp_service/requirements_test.txt ./src/nlp_service/
RUN pip install --no-cache-dir -r ./src/nlp_service/requirements_test.txt

COPY . .

# Initialize gram classifiers (needed for tests)
RUN cd src/nlp_service && python init_gram_classify.py

# Initialize spacy
RUN python -m spacy download en

# Train RASA classifier
RUN cd src/nlp_service && python init_rasa.py

WORKDIR /usr/src/app/src/nlp_service

ENV FLASK_APP=app.py
EXPOSE 3002
CMD [ "pythom", "-m flask run", "--host 0.0.0.0", "-p 3002" ]<commit_msg>[#75] Dockerfile typo<commit_after>FROM python:3

WORKDIR /usr/src/app

RUN mkdir -p /usr/src/app/src/nlp_service

COPY ./src/nlp_service/requirements.txt ./src/nlp_service/
COPY ./src/nlp_service/requirements_test.txt ./src/nlp_service/
RUN pip install --no-cache-dir -r ./src/nlp_service/requirements_test.txt

COPY . .

# Initialize gram classifiers (needed for tests)
RUN cd src/nlp_service && python init_gram_classify.py

# Initialize spacy
RUN python -m spacy download en

# Train RASA classifier
RUN cd src/nlp_service && python init_rasa.py

WORKDIR /usr/src/app/src/nlp_service

ENV FLASK_APP=app.py
EXPOSE 3002
CMD [ "python", "-m flask run", "--host 0.0.0.0", "-p 3002" ]
{'fraction_non_alphanumeric': 0.12592047128129602, 'fraction_numerical': 0.020618556701030927, 'mean_word_length': 3.9061371841155235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5801442', 'n_tokens_mistral': 540, 'n_tokens_neox': 506, 'n_words': 128}