wingbot 3.27.0-alpha.4 → 3.27.0-alpha.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.27.0-alpha.4",
3
+ "version": "3.27.0-alpha.5",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -165,8 +165,9 @@ class CustomEntityDetectionModel {
165
165
  ]);
166
166
 
167
167
  const cleanSubWordResults = subWordResults
168
- .filter((regular) => regularResults
169
- .some((e) => e.start < regular.end && e.end > regular.start));
168
+ .filter((regular) => !regularResults
169
+ .some((e) => e.start < regular.end && e.end > regular.start
170
+ && e.end >= regular.end && e.start <= regular.start));
170
171
 
171
172
  subWord.push(...cleanSubWordResults);
172
173