mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +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(
|
async format(
|
||||||
samples: NlpSampleFull[],
|
samples: NlpSampleFull[],
|
||||||
entities: NlpEntityFull[],
|
entities: NlpEntityFull[],
|
||||||
): Promise<Record<string, any>[]> {
|
): Promise<Record<string, any>[] | Record<string, any>> {
|
||||||
const entityMap = NlpEntity.getEntityMap(entities);
|
const entityMap = NlpEntity.getEntityMap(entities);
|
||||||
const valueMap = NlpValue.getValueMap(
|
const valueMap = NlpValue.getValueMap(
|
||||||
NlpValue.getValuesFromEntities(entities),
|
NlpValue.getValuesFromEntities(entities),
|
||||||
|
Loading…
Reference in New Issue
Block a user