Smart Text Splitter-26.306.1616
| Smart Text Splitter |
Author Farin Kulapichitr: ictfarin@gmail.com
This plugin is used to split a text file based on the maximum number of characters defined by the user. Any text-based documents are supported (so far .txt, .csv., and .md have been tested). For a markdown file, the header ‘#’ will be split and assigned a number according to how many times it has been split. |
Input (Properties)
Parameter Name | Description |
Input File Path | Path of the input file (.txt, .csv, .md are supported). |
Output File Path | Path of the output file. ***Please note that the path must not include a backslash ‘\’ at the end. The format of the final output file will be as follows: ”ORIGINAL_FILE_NAME + ‘.’ + SPLIT_NUMBER + ORIGINAL_EXTENSION”. |
Limit Char Number | Maximum number of characters to trigger the split operation. (Default = 512) |
Table Handler | If set to True, the input file that contains a table-format with a character ‘|’ will not be split. Otherwise, set to False. (Default = True) |
Return Value
No specific Return type for this plugin (neither String, CSV, nor, File).
Return Code
Code | Description |
0 | Success |
1 | Failure: Invalid input (Missing input, wrong type, etc.) |
Parameter Setting samples