removed punkt
Browse filesSigned-off-by: Vimal Kumar <[email protected]>
Dockerfile
CHANGED
|
@@ -35,6 +35,8 @@ COPY crossword-app/backend-py/ ./backend-py/
|
|
| 35 |
|
| 36 |
# Copy cache directory with pre-built models and NLTK data
|
| 37 |
COPY cache-dir/ ./cache-dir/
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# Build the React frontend
|
| 40 |
RUN cd frontend && npm run build
|
|
|
|
| 35 |
|
| 36 |
# Copy cache directory with pre-built models and NLTK data
|
| 37 |
COPY cache-dir/ ./cache-dir/
|
| 38 |
+
RUN chmod -R 755 ./cache-dir/ || true
|
| 39 |
+
|
| 40 |
|
| 41 |
# Build the React frontend
|
| 42 |
RUN cd frontend && npm run build
|
crossword-app/backend-py/src/services/wordnet_clue_generator.py
CHANGED
|
@@ -95,7 +95,7 @@ def ensure_nltk_data(nltk_data_dir: Optional[str] = None):
|
|
| 95 |
'averaged_perceptron_tagger': 'taggers/averaged_perceptron_tagger'
|
| 96 |
}
|
| 97 |
|
| 98 |
-
required_corpora = ['wordnet', '
|
| 99 |
|
| 100 |
for corpus in required_corpora:
|
| 101 |
corpus_path = corpus_paths[corpus]
|
|
|
|
| 95 |
'averaged_perceptron_tagger': 'taggers/averaged_perceptron_tagger'
|
| 96 |
}
|
| 97 |
|
| 98 |
+
required_corpora = ['wordnet', 'averaged_perceptron_tagger', 'omw-1.4']
|
| 99 |
|
| 100 |
for corpus in required_corpora:
|
| 101 |
corpus_path = corpus_paths[corpus]
|