mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 20:38:32 +00:00
fix: return type
This commit is contained in:
parent
0243c71740
commit
43d63cfa82
@ -123,7 +123,7 @@ export default abstract class BaseNlpHelper<
|
||||
async format(
|
||||
samples: NlpSampleFull[],
|
||||
entities: NlpEntityFull[],
|
||||
): Promise<Record<string, any>[]> {
|
||||
): Promise<Record<string, any>[] | Record<string, any>> {
|
||||
const entityMap = NlpEntity.getEntityMap(entities);
|
||||
const valueMap = NlpValue.getValueMap(
|
||||
NlpValue.getValuesFromEntities(entities),
|
||||
|
Loading…
Reference in New Issue
Block a user