We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0243c71 commit 43d63cfCopy full SHA for 43d63cf
api/src/helper/lib/base-nlp-helper.ts
@@ -123,7 +123,7 @@ export default abstract class BaseNlpHelper<
123
async format(
124
samples: NlpSampleFull[],
125
entities: NlpEntityFull[],
126
- ): Promise<Record<string, any>[]> {
+ ): Promise<Record<string, any>[] | Record<string, any>> {
127
const entityMap = NlpEntity.getEntityMap(entities);
128
const valueMap = NlpValue.getValueMap(
129
NlpValue.getValuesFromEntities(entities),
0 commit comments