You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jg...@apache.org on 2024/04/30 22:39:21 UTC

(nifi) branch main updated: NIFI-13118: Add LANGUAGE to property_descriptor list

This is an automated email from the ASF dual-hosted git repository.

jgresock pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 99d8433b7d NIFI-13118: Add LANGUAGE to property_descriptor list
99d8433b7d is described below

commit 99d8433b7dae1e51f2f829b6bc138aa491ab02b1
Author: Zoltan Kornel Torok <ta...@gmail.com>
AuthorDate: Tue Apr 30 21:53:16 2024 +0200

    NIFI-13118: Add LANGUAGE to property_descriptor list
    
    Signed-off-by: Joe Gresock <jg...@gmail.com>
    This closes #8720.
---
 .../nifi-text-embeddings-module/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)