mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 04:58:59 +00:00
(search) Tweak token formation.
This commit is contained in:
parent
94e1aa0baf
commit
dcad0d7863
@ -93,10 +93,11 @@ public class SentenceSegmentSplitter {
|
||||
if (part.startsWith("<") && part.endsWith(">") && part.length() > 2) {
|
||||
ret.set(i, part.substring(1, part.length() - 1));
|
||||
}
|
||||
else if (part.startsWith("'") && part.length() > 1) {
|
||||
|
||||
if (part.startsWith("'") && part.length() > 1) {
|
||||
ret.set(i, part.substring(1));
|
||||
}
|
||||
else if (part.endsWith("'") && part.length() > 1) {
|
||||
if (part.endsWith("'") && part.length() > 1) {
|
||||
ret.set(i, part.substring(0, part.length()-1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user