wingbot 3.26.0-alpha.3 → 3.26.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -284,12 +284,12 @@ class CustomEntityDetectionModel {
|
|
|
284
284
|
* @param {string} text
|
|
285
285
|
* @param {string} [singleEntity]
|
|
286
286
|
* @param {string[]} expectedEntities
|
|
287
|
+
* @param {DetectedEntity[]} [entities] - previously detected entities to include
|
|
287
288
|
* @returns {Promise<DetectedEntity[]>}
|
|
288
289
|
*/
|
|
289
|
-
async resolveEntities (text, singleEntity = null, expectedEntities = []) {
|
|
290
|
+
async resolveEntities (text, singleEntity = null, expectedEntities = [], entities = []) {
|
|
290
291
|
const resolved = new Set();
|
|
291
292
|
let missing = Array.from(this._entityDetectors.keys());
|
|
292
|
-
const entities = [];
|
|
293
293
|
|
|
294
294
|
while (missing.length !== 0) {
|
|
295
295
|
let detect = [];
|