增加语料内容为空的判断
This commit is contained in:
@@ -113,6 +113,10 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
|
|||||||
log.info("电话语料时长小于10秒,不进行dify处理");
|
log.info("电话语料时长小于10秒,不进行dify处理");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (segments == null || segments.isEmpty()) {
|
||||||
|
log.info("电话语料内容segments为空,不进行dify处理");
|
||||||
|
return;
|
||||||
|
}
|
||||||
// 遍历 segments
|
// 遍历 segments
|
||||||
StringBuffer chatList = new StringBuffer();
|
StringBuffer chatList = new StringBuffer();
|
||||||
segments.stream()
|
segments.stream()
|
||||||
|
|||||||
Reference in New Issue
Block a user