Skip to content

Commit

Permalink
tidy-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Feb 17, 2024
1 parent 3df11dc commit fbab6f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion python/bonn/category_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def closest(self, text, cat, classifier_bow_vec):
]

def strip_document(self, doc):
if type(doc) is list:
if isinstance(doc, list):
doc = " ".join(doc)

docs = doc.split(",")
Expand Down
2 changes: 0 additions & 2 deletions tests/category_manager_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import pytest
from nltk import download
from pathlib import Path
from fastapi.testclient import TestClient
from unittest.mock import MagicMock
from bonn.extract import CategoryManager, FfModel
from dynaconf import Dynaconf

Expand Down

0 comments on commit fbab6f4

Please sign in to comment.