Fix: Initialize TokenTextSplitter Builder fields with default values
Signed-off-by: ChoHadam <hadamcho97@gmail.com>
This commit is contained in:
committed by
Ilayaperumal Gopinathan
parent
e14e788a47
commit
d5d907b266
@@ -154,15 +154,15 @@ public class TokenTextSplitter extends TextSplitter {
|
||||
|
||||
public static final class Builder {
|
||||
|
||||
private int chunkSize;
|
||||
private int chunkSize = DEFAULT_CHUNK_SIZE;
|
||||
|
||||
private int minChunkSizeChars;
|
||||
private int minChunkSizeChars = MIN_CHUNK_SIZE_CHARS;
|
||||
|
||||
private int minChunkLengthToEmbed;
|
||||
private int minChunkLengthToEmbed = MIN_CHUNK_LENGTH_TO_EMBED;
|
||||
|
||||
private int maxNumChunks;
|
||||
private int maxNumChunks = MAX_NUM_CHUNKS;
|
||||
|
||||
private boolean keepSeparator;
|
||||
private boolean keepSeparator = KEEP_SEPARATOR;
|
||||
|
||||
private Builder() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user