Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Jun 14, 2024
1 parent 983fbe7 commit de5f383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ktrain/text/eda.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ def filter(self, obj):
"Length of obj is not consistent with the number of documents "
+ "supplied to get_topic_model"
)
#obj = np.array(obj) if isinstance(obj, list) else obj
#return obj[self.bool_array]
# obj = np.array(obj) if isinstance(obj, list) else obj
# return obj[self.bool_array]
from itertools import compress

return list(compress(obj, self.bool_array))

def get_docs(self, topic_ids=[], doc_ids=[], rank=False):
Expand Down

0 comments on commit de5f383

Please sign in to comment.