File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/indexer/core/src/main/java/com/microsoft/openai/samples/indexer/parser Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,18 @@ public class TextSplitter {
17
17
public TextSplitter (boolean verbose ) {
18
18
this .sentenceEndings = new ArrayList <>();
19
19
this .sentenceEndings .add ("." );
20
+ this .sentenceEndings .add ("。" );
21
+ this .sentenceEndings .add ("." );
20
22
this .sentenceEndings .add ("!" );
21
23
this .sentenceEndings .add ("?" );
24
+ this .sentenceEndings .add ("‼" );
25
+ this .sentenceEndings .add ("⁇" );
26
+ this .sentenceEndings .add ("⁈" );
27
+ this .sentenceEndings .add ("⁉" );
22
28
23
29
this .wordBreaks = new ArrayList <>();
24
30
this .wordBreaks .add ("," );
31
+ this .wordBreaks .add ("、" );
25
32
this .wordBreaks .add (";" );
26
33
this .wordBreaks .add (":" );
27
34
this .wordBreaks .add (" " );
You can’t perform that action at this time.
0 commit comments