Rasa NLU version : 0.15.0 Rasa core version : 0.14.3
Python version : 3.7
Operating system (windows, osx, …): windows
Issue : I want to extract entities like Source and Destination from string like “Show me trains from Rajkot to Ahmedabad on 31st may” . Kindly help me with CONFIG.YML file. I am also attaching my training data.
I am annotating after “from” as source and after “to” as destination. digits similar to 3rd ,4th and 13th…etc as “date” and “may”, “june”…etc as month.
IT EXTRACTS MONTH AND DATE PROPERLY USING “CRFENTITYEXTRACTOR” BUT FOR SOURCE AND DESTINATION IT IS NOT WORKING.
Kindly help me with proper config.yml file
Content of configuration file (config.yml) :
language: “en” pipeline: - name: “SpacyNLP” - name: “SpacyTokenizer” - name: “SpacyFeaturizer” - name: “RegexFeaturizer” - name: “CRFEntityExtractor” - name: “EntitySynonymMapper” - name: “SklearnIntentClassifier”
Content of domain file (domain.yml) (if used & relevant):
There is no problem with spacy english model. There is no problem with even cities detection using spacy.
Here I want to extract source and destination from sentence like.
Show me bus from Delhi to Mumbai.
so Delhi as source city Mumbai as destination city.
sample “traindata” as below
{ “text”: “I’m looking for trains from mumbai to Delhi on friday”,
"entities": [
{
"start": 28,
"end": 35,
"value": "mumbai ",
"entity": "source"
},
{
"start": 38,
"end": 44,
"value": "Delhi ",
"entity": "destination"
},
{
"start": 47,
"end": 53,
"value": "friday",
"entity": "day"
}
]