From 99d8433b7dae1e51f2f829b6bc138aa491ab02b1 Mon Sep 17 00:00:00 2001 From: Zoltan Kornel Torok Date: Tue, 30 Apr 2024 21:53:16 +0200 Subject: [PATCH] NIFI-13118: Add LANGUAGE to property_descriptor list Signed-off-by: Joe Gresock This closes #8720. --- .../src/main/python/ChunkDocument.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nifi-python-extensions/nifi-text-embeddings-module/src/main/python/ChunkDocument.py b/nifi-python-extensions/nifi-text-embeddings-module/src/main/python/ChunkDocument.py index 9b6f38e69f..0300868593 100644 --- a/nifi-python-extensions/nifi-text-embeddings-module/src/main/python/ChunkDocument.py +++ b/nifi-python-extensions/nifi-text-embeddings-module/src/main/python/ChunkDocument.py @@ -182,7 +182,8 @@ class ChunkDocument(FlowFileTransform): CHUNK_SIZE, CHUNK_OVERLAP, KEEP_SEPARATOR, - STRIP_WHITESPACE] + STRIP_WHITESPACE, + LANGUAGE] def __init__(self, **kwargs): @@ -282,4 +283,4 @@ class ChunkDocument(FlowFileTransform): output_json = self.to_json(split_docs) attributes = {"document.count": str(len(split_docs))} - return FlowFileTransformResult("success", contents=output_json, attributes=attributes) \ No newline at end of file + return FlowFileTransformResult("success", contents=output_json, attributes=attributes)