优化
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ public class WeightOcrBatchService {
|
||||
if (candidate == null || candidate.text() == null) {
|
||||
continue;
|
||||
}
|
||||
String text = candidate.text().strip().replaceAll("[\\p{Cc}\\p{Cf}]+", " ");
|
||||
String text = candidate.text().replaceAll("[\\p{Cc}\\p{Cf}]+", " ").strip();
|
||||
if (text.isBlank()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user