From ccaa5b3fbcc6e468cdeb49a66bbda49b7b06acf4 Mon Sep 17 00:00:00 2001 From: Nicolay Rusnachenko Date: Sat, 3 Jun 2023 13:00:43 +0300 Subject: [PATCH] Clarified the type input_data --- arelight/pipelines/items/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arelight/pipelines/items/utils.py b/arelight/pipelines/items/utils.py index 0c0a656..a150e2e 100644 --- a/arelight/pipelines/items/utils.py +++ b/arelight/pipelines/items/utils.py @@ -8,6 +8,8 @@ def input_to_docs(input_data, sentence_parser): how data is suppose to be separated onto sentences. str -> list(str) """ + assert(input_data is not None) + docs = [] for doc_id, contents in enumerate(input_data):