Closed AdamMiltonBarker closed 3 years ago
It's not going to just memorize the training data. MITIE is doing many rounds of cross-validation to find a model that can be expected to generalize well. It's not trying to fit the training dataset as hard as it can, as that will overfit and work badly on test datasets. You need to give more training data.
On Sun, Dec 13, 2020 at 9:16 PM AdamMiltonBarker notifications@github.com wrote:
Expected Behavior
Trained model should classify all trained entities Current Behavior
Trained model does not classify all trained entities Steps to Reproduce
Below is the training input:
` Turn on the lamp in the bedroom {'entity': 'State', 'rangeFrom': 1, 'rangeTo': 2} {'entity': 'Device', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7}
Turn the lamp in the bedroom off {'entity': 'Device', 'rangeFrom': 2, 'rangeTo': 3} {'entity': 'Zone', 'rangeFrom': 5, 'rangeTo': 6} {'entity': 'State', 'rangeFrom': 6, 'rangeTo': 7}
Can you turn the lamp in the bedroom on {'entity': 'Device', 'rangeFrom': 4, 'rangeTo': 5} {'entity': 'Zone', 'rangeFrom': 7, 'rangeTo': 8} {'entity': 'State', 'rangeFrom': 8, 'rangeTo': 9}
Will you turn the lamp in the bedroom off {'entity': 'Device', 'rangeFrom': 4, 'rangeTo': 5} {'entity': 'Zone', 'rangeFrom': 7, 'rangeTo': 8} {'entity': 'State', 'rangeFrom': 8, 'rangeTo': 9}
Please will you turn the lamp in the bedroom on {'entity': 'Device', 'rangeFrom': 5, 'rangeTo': 6} {'entity': 'Zone', 'rangeFrom': 8, 'rangeTo': 9} {'entity': 'State', 'rangeFrom': 9, 'rangeTo': 10}
Will you turn off the lamp in the bedroom {'entity': 'State', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Device', 'rangeFrom': 5, 'rangeTo': 6} {'entity': 'Zone', 'rangeFrom': 8, 'rangeTo': 9}
Please turn on the lamp in the bedroom {'entity': 'State', 'rangeFrom': 2, 'rangeTo': 3} {'entity': 'Device', 'rangeFrom': 4, 'rangeTo': 5} {'entity': 'Zone', 'rangeFrom': 7, 'rangeTo': 8}
Please turn the lamp in the bedroom off {'entity': 'Device', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7} {'entity': 'State', 'rangeFrom': 7, 'rangeTo': 8}
What is the temperature in the bedroom? {'entity': 'Measurement', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7}
What is the temperature in the office? {'entity': 'Measurement', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7}
Tell me the humidity in the bedroom? {'entity': 'Measurement', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7}
Tell me the humidity in the office? {'entity': 'Measurement', 'rangeFrom': 3, 'rangeTo': 4} {'entity': 'Zone', 'rangeFrom': 6, 'rangeTo': 7}
Can you please tell me temperature in the bedroom is? {'entity': 'Measurement', 'rangeFrom': 5, 'rangeTo': 6} {'entity': 'Zone', 'rangeFrom': 8, 'rangeTo': 9}
Can you please tell me temperature in the office is? {'entity': 'Measurement', 'rangeFrom': 5, 'rangeTo': 6} {'entity': 'Zone', 'rangeFrom': 8, 'rangeTo': 9}
Will you tell me temperature in the bedroom is? {'entity': 'Measurement', 'rangeFrom': 4, 'rangeTo': 5} {'entity': 'Zone', 'rangeFrom': 7, 'rangeTo': 8}
Will you tell me humidity in the bedroom is? {'entity': 'Measurement', 'rangeFrom': 4, 'rangeTo': 5} {'entity': 'Zone', 'rangeFrom': 7, 'rangeTo': 8} `
Classification input/output:
` {'Response': 'OK', 'ResponseData': [{'Received': 'Turn on the lamp in the bedroom', 'Intent': 'TurnOnIn', 'Confidence': '1.0', 'Response': 'One minute also', 'Context': [{'In': '', 'Out': '', 'Current': ''}], 'Extension': None, 'Entities': [{'Entity': 'State', 'ParsedEntity': 'on', 'Confidence': '0.089'}, {'Entity': 'Device', 'ParsedEntity': 'lamp', 'Confidence': '0.101'}]}]}
{'Response': 'OK', 'ResponseData': [{'Received': 'Turn the lamp in the bedroom off', 'Intent': 'TurnOnIn', 'Confidence': '0.9999999', 'Response': 'One minute also', 'Context': [{'In': '', 'Out': '', 'Current': ''}], 'Extension': None, 'Entities': [{'Entity': 'Device', 'ParsedEntity': 'lamp', 'Confidence': '0.115'}, {'Entity': 'Zone', 'ParsedEntity': 'bedroom', 'Confidence': '0.084'}]}]}
{'Response': 'OK', 'ResponseData': [{'Received': 'Can you turn the lamp in the bedroom on', 'Intent': 'TurnOnIn', 'Confidence': '0.9999999', 'Response': 'One minute also', 'Context': [{'In': '', 'Out': '', 'Current': ''}], 'Extension': None, 'Entities': [{'Entity': 'Device', 'ParsedEntity': 'lamp', 'Confidence': '0.115'}, {'Entity': 'Zone', 'ParsedEntity': 'bedroom', 'Confidence': '0.083'}]}]}
{'Response': 'OK', 'ResponseData': [{'Received': 'Will you turn the lamp in the bedroom off', 'Intent': 'TurnOnIn', 'Confidence': '0.9999999', 'Response': 'One minute also', 'Context': [{'In': '', 'Out': '', 'Current': ''}], 'Extension': None, 'Entities': [{'Entity': 'Device', 'ParsedEntity': 'lamp', 'Confidence': '0.115'}, {'Entity': 'Zone', 'ParsedEntity': 'bedroom', 'Confidence': '0.084'}]}]} `
Etc, it is rarely detecting all trained entities.
-
Version: 0.7.0
Where did you get MITIE: Github
Platform: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic
Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mit-nlp/MITIE/issues/213, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPYFR4SBJAPPKVAZBINKJTSUVYOVANCNFSM4UZ77WTQ .
OK thanks, only so many ways you can say things, does it matter if the training data is duplicated ? IE the same sentence more than once ?
The code will not break if you duplicate training data. But what will happen is you will overfit to your training data. But maybe that's what you want in this case.
On Mon, Dec 14, 2020 at 8:23 AM AdamMiltonBarker notifications@github.com wrote:
OK thanks, only so many ways you can say things, does it matter if the training data is duplicated ? IE the same sentence more than once ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mit-nlp/MITIE/issues/213#issuecomment-744436986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPYFR3KAMI4BVB4J76JJ7TSUYGWLANCNFSM4UZ77WTQ .
@davisking Back again :) During one train I got it to be able to recognize three entities in an intent, I gave it three different types of zones (office, bathroom, bedroom). It would only correctly identify office (zone)/device and action, but it was not identifying the others. I increased the data, it got worse, it now never gets the third entity at all, not even office. I have reverted back to only having office in the training set attempting to work out what is going on.
The data is labelled correctly I print it out during training showing what entities are being trained, their posititions, and I replace the entity with a TAG so that I can verify that the correct words have been given as entities. It is making mistakes like "Hi" is a name, or "It" is an action, at no point has any data been added that would give it any reason to do that.
Examples of training data:
{
"intent": "TurnOn",
"text": [
"Turn on the lamp",
"Turn the fan on",
"Can you turn the light on",
"Will you turn the lamp on",
"Please will you turn the fan on",
"Will you turn on the lamp",
"Please turn on the lamp",
"Please turn the fan on",
"Switch on the light",
"Switch the light on",
"Can you switch the light on",
"Will you switch the fan on",
"Please will you switch the light on",
"Will you switch on the light",
"Please switch on the fan",
"Please switch the light on",
"Will you kindly turn the fan on for me",
"Will you please turn the fan on for me",
"Would you please turn the fan on for me",
"Would you kindly turn the fan on for me"
],
"responses": [
"One minute"
],
"extension": {
"function": "",
"entities": true,
"responses": []
},
"context": {
"in": "",
"out": "",
"clear": true
},
"entityType": "NA",
"entities": [
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 3,
"rangeTo": 4
}],
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 2,
"rangeTo": 3
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 3,
"rangeTo": 4
}],
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 3,
"rangeTo": 4
}],
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 2,
"rangeTo": 3
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 4,
"rangeTo": 5
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 3,
"rangeTo": 4
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}]
]
},
{
"intent": "TurnOnIn",
"text": [
"Turn on the fan in the office",
"Turn the lamp in the office on",
"Can you turn the light in the office on",
"Will you turn the lamp in the office on",
"Please will you turn the light in the office on",
"Will you turn on the fan in the office",
"Please turn on the lamp in the office",
"Please turn the light in the office on",
"Switch on the lamp in the office",
"Switch the fan in the office on",
"Can you switch the lamp in the office on",
"Will you switch the light in the office on",
"Please will you switch the lamp in the office on",
"Will you switch on the fan in the office",
"Please switch on the lamp in the office",
"Please switch the light in the office on",
"Kindly switch the light in the office on",
"Kindly switch on the light in the office",
"Kindly switch the fan in the office on",
"Kindly switch on the fan in the office"
],
"responses": [
"One minute also"
],
"extension": {
"function": "",
"entities": true,
"responses": []
},
"context": {
"in": "",
"out": "",
"clear": true
},
"entityType": "NA",
"entities": [
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "Turn",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "turn",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "Switch",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "Switch",
"rangeFrom": 0,
"rangeTo": 1
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 5,
"rangeTo": 6
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 2,
"rangeTo": 3
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "lamp",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "light",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Action",
"replace": "switch",
"rangeFrom": 1,
"rangeTo": 2
}, {
"entity": "Device",
"replace": "fan",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}]
]
},
{
"intent": "ThingMeasurementQuery",
"text": [
"What is the temperature in the office?",
"What is the temperature in the office?",
"Tell me the humidity in the office?",
"Tell me the humidity in the office?",
"Can you please tell me temperature in the office is?",
"Can you please tell me temperature in the office is?",
"Will you tell me temperature in the office is?",
"Will you tell me humidity in the office is?",
"What is the temperature in the office?",
"What is the temperature in the office?",
"Tell me the humidity in the office?",
"Tell me the humidity in the office?",
"Can you please tell me temperature in the office is?",
"Can you please tell me temperature in the office is?",
"Will you tell me temperature in the office is?",
"Will you tell me humidity in the office is?",
"Would you please tell me humidity in the office?",
"Would you kindly tell me humidity in the office?",
"Can you kindly please tell me what the temperature in the office is?",
"Would you please tell me what the humidity in the office is?"
],
"responses": [
"One minute"
],
"extension": {
"function": "",
"entities": true,
"responses": []
},
"context": {
"in": "",
"out": "",
"clear": true
},
"entityType": "NA",
"entities": [
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 3,
"rangeTo": 4
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 6,
"rangeTo": 7
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 4,
"rangeTo": 5
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 7,
"rangeTo": 8
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 5,
"rangeTo": 6
}, {
"entity": "Zone",
"replace": "office",
"rangeFrom": 8,
"rangeTo": 9
}],
[{
"entity": "Measurement",
"replace": "temperature",
"rangeFrom": 8,
"rangeTo": 9
},
{
"entity": "Zone",
"replace": "office",
"rangeFrom": 11,
"rangeTo": 12
}
],
[{
"entity": "Measurement",
"replace": "humidity",
"rangeFrom": 7,
"rangeTo": 8
},
{
"entity": "Zone",
"replace": "office",
"rangeFrom": 10,
"rangeTo": 11
}
]
]
}
What I mean by replacing the entity with a tag, only for debugging purposes:
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: My name is Adam
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: My name is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: This is Adam
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: This is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: I am Adam
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: I am <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: It is Adam
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: It is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: My name is Bella
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: My name is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: This is Bella
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: This is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: I am Bella
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: I am <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: It is Bella
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: It is <HUMAN>
2021-08-04 23:11:45,906 - AI Agent - INFO - ORIGINAL: Hi my name is Adam
2021-08-04 23:11:45,906 - AI Agent - INFO - REPLACED: Hi my name is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: Hi this is Adam
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: Hi this is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: My name is John
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: My name is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: This is John
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: This is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: I am John
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: I am <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: It is John
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: It is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: My name is Lisa
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: My name is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: This is Lisa
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: This is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: I am Bella
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: I am <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: It is Lisa
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: It is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: Hi my name is Adam
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: Hi my name is <HUMAN>
2021-08-04 23:11:45,907 - AI Agent - INFO - ORIGINAL: Hi this is Adam
2021-08-04 23:11:45,907 - AI Agent - INFO - REPLACED: Hi this is <HUMAN>
2021-08-04 23:11:45,912 - AI Agent - INFO - ORIGINAL: Turn on the lamp
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: <Action> on the <Device>
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Turn the fan on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Can you turn the light on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Can you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Will you turn the lamp on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Will you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Please will you turn the fan on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Please will you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Will you turn on the lamp
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Will you <Action> on the <Device>
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Please turn on the lamp
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Please <Action> on the <Device>
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Please turn the fan on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Please <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Switch on the light
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Switch on the <Device>
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Switch the light on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Switch the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Can you switch the light on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Can you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Will you switch the fan on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Will you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Please will you switch the light on
2021-08-04 23:11:45,913 - AI Agent - INFO - REPLACED: Please will you <Action> the <Device> on
2021-08-04 23:11:45,913 - AI Agent - INFO - ORIGINAL: Will you switch on the light
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Will you <Action> on the <Device>
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Please switch on the fan
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Please <Action> on the <Device>
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Please switch the light on
2021-08-04 23:11:45,914 - AI Agent - INFO - iotJumpWay Agent connection successful.
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Please <Action> the <Device> on
2021-08-04 23:11:45,914 - AI Agent - INFO - rc: 0
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Will you kindly turn the fan on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - Published to Agent status.
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Will you kindly <Action> the <Device> on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Will you please turn the fan on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - Published: 1
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Will you please <Action> the <Device> on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Would you please turn the fan on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Would you please <Action> the <Device> on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Would you kindly turn the fan on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - REPLACED: Would you kindly <Action> the <Device> on for me
2021-08-04 23:11:45,914 - AI Agent - INFO - ORIGINAL: Turn on the fan in the office
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Turn the lamp in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Can you turn the light in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Can you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Will you turn the lamp in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Will you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Please will you turn the light in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Please will you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Will you turn on the fan in the office
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Will you <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Please turn on the lamp in the office
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Please <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Please turn the light in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Please <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Switch on the lamp in the office
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Switch the fan in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Can you switch the lamp in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Can you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Will you switch the light in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Will you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Please will you switch the lamp in the office on
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Please will you <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,915 - AI Agent - INFO - ORIGINAL: Will you switch on the fan in the office
2021-08-04 23:11:45,915 - AI Agent - INFO - REPLACED: Will you <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Please switch on the lamp in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Please <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Please switch the light in the office on
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Please <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Kindly switch the light in the office on
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Kindly <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Kindly switch on the light in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Kindly <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Kindly switch the fan in the office on
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Kindly <Action> the <Device> in the <Zone> on
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Kindly switch on the fan in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Kindly <Action> on the <Device> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: What is the temperature in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: What is the <Measurement> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: What is the temperature in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: What is the <Measurement> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Tell me the humidity in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Tell me the <Measurement> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Tell me the humidity in the office
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Tell me the <Measurement> in the <Zone>
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Can you please tell me temperature in the office is
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Can you please tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Can you please tell me temperature in the office is
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Can you please tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Will you tell me temperature in the office is
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Will you tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,916 - AI Agent - INFO - ORIGINAL: Will you tell me humidity in the office is
2021-08-04 23:11:45,916 - AI Agent - INFO - REPLACED: Will you tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: What is the temperature in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: What is the <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: What is the temperature in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: What is the <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Tell me the humidity in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Tell me the <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Tell me the humidity in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Tell me the <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Can you please tell me temperature in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Can you please tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Can you please tell me temperature in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Can you please tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Will you tell me temperature in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Will you tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Will you tell me humidity in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Will you tell me <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Would you please tell me humidity in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Would you please tell me <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Would you kindly tell me humidity in the office
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Would you kindly tell me <Measurement> in the <Zone>
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Can you kindly please tell me what the temperature in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Can you kindly please tell me what the <Measurement> in the <Zone> is
2021-08-04 23:11:45,917 - AI Agent - INFO - ORIGINAL: Would you please tell me what the humidity in the office is
2021-08-04 23:11:45,917 - AI Agent - INFO - REPLACED: Would you please tell me what the <Measurement> in the <Zone> is
It does fine when zone is not included (the first training data above that only has device and action) but it is not working with three.
Expected Behavior
Trained model should classify all trained entities
Current Behavior
Trained model does not classify all trained entities
Steps to Reproduce
I use MITIE in my custom intent classifier. Below is an example training input for MITIE:
Classification input/output:
Etc, it is rarely detecting all trained entities.
Version: 0.7.0
Where did you get MITIE: Github
Platform: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic
Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0