File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -120,7 +120,10 @@ export default abstract class BaseNlpHelper<
120
120
*
121
121
* @returns The formatted NLP training set
122
122
*/
123
- async format ( samples : NlpSampleFull [ ] , entities : NlpEntityFull [ ] ) {
123
+ async format (
124
+ samples : NlpSampleFull [ ] ,
125
+ entities : NlpEntityFull [ ] ,
126
+ ) : Promise < Record < string , any > [ ] | Record < string , any > > {
124
127
const entityMap = NlpEntity . getEntityMap ( entities ) ;
125
128
const valueMap = NlpValue . getValueMap (
126
129
NlpValue . getValuesFromEntities ( entities ) ,
You can’t perform that action at this time.
0 commit comments