Skip to content

Commit 28dd47c

Browse files
author
Christian Newman
committed
Starting to see if I can get Doker up again. Update requirements with nltk for tree_based model
1 parent 89748a0 commit 28dd47c

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
FROM python:3.12-slim
22

3-
#argument to enable GPU accelaration
4-
ARG GPU=false
5-
63
# Install (and build) requirements
74
COPY requirements.txt /requirements.txt
8-
COPY requirements_gpu.txt /requirements_gpu.txt
95
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && \
106
apt-get update --fix-missing && \
117
apt-get install --allow-unauthenticated -y git curl && \
128
pip install -r requirements.txt && \
13-
if [ "$GPU" = true ]; then \
14-
pip install -r requirements_gpu.txt; \
15-
fi && \
169
apt-get clean && rm -rf /var/lib/apt/lists/*
1710

1811
COPY . .
@@ -77,6 +70,6 @@ CMD date; \
7770
fi; \
7871
date; \
7972
echo "Running..."; \
80-
/main -r --words words/abbreviationList.csv
73+
/main --mode train --model_type lm_based --words words/abbreviationList.csv
8174

8275
ENV TZ=US/Michigan

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ spiral @ git+https://github.com/cnewman/spiral.git@dff537320c15849c10e583968036d
88
torch==2.7.1
99
waitress==3.0.2
1010
gensim==4.3.3
11+
nltk==3.9.1
1112
transformers[torch]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
],
1919
},
2020
python_requires='>=3.12',
21-
author="Christian Newman",
21+
author="Christian Newman, Anthony Peruma, Brandon Scholten, Syreen Banabilah",
2222
description="A machine learning based tagger for source code analysis",
2323
)

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "2.1.0" # Changed to match docstring version
1+
__version__ = "2.2.0" # Changed to match docstring version
22
__version_info__ = tuple(int(num) for num in __version__.split("."))

0 commit comments

Comments
 (0)