mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Fixes ruff not running isort against the codebase
This commit is contained in:
parent
e0d2697618
commit
3bcbd05252
160 changed files with 347 additions and 224 deletions
|
|
@ -10,6 +10,7 @@ from typing import List
|
|||
from typing import Optional
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from documents.models import Document
|
||||
from documents.models import MatchingModel
|
||||
|
||||
|
|
@ -336,10 +337,9 @@ class DocumentClassifier:
|
|||
if settings.NLTK_LANGUAGE is not None and settings.NLTK_ENABLED:
|
||||
|
||||
import nltk
|
||||
|
||||
from nltk.tokenize import word_tokenize
|
||||
from nltk.corpus import stopwords
|
||||
from nltk.stem import SnowballStemmer
|
||||
from nltk.tokenize import word_tokenize
|
||||
|
||||
# Not really hacky, since it isn't private and is documented, but
|
||||
# set the search path for NLTK data to the single location it should be in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue