Skip to content

Commit

Permalink
test: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christinestraub committed Jan 3, 2025
1 parent efe1167 commit b961399
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unstructured/nlp/tokenize.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import shutil
import os
import shutil
from functools import lru_cache
from typing import Final, List, Tuple

Expand All @@ -16,6 +16,7 @@
NLTK_DATA_PATH = os.getenv("NLTK_DATA", "/home/notebook-user/nltk_data")
nltk.data.path.append(NLTK_DATA_PATH)


def copy_nltk_packages():
local_path = "../../nltk_data"
if os.path.exists(local_path):
Expand All @@ -32,6 +33,7 @@ def copy_nltk_packages():
else:
print(f"Local NLTK data path does not exist: {local_path}")


def check_for_nltk_package(package_name: str, package_category: str) -> bool:
"""Checks to see if the specified NLTK package exists on the file system."""
try:
Expand Down

0 comments on commit b961399

Please sign in to comment.