-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we are getting wrong output one of your example what you explained in the document named chatbot_ner/docs/api_call.md #274
Comments
please reply |
The docs are somewhat wrong If you run
|
How to use multiple entities in python here for this we tried this in the form of from ner_v1.chatbot.entity_detection import get_text message = "Reserve me a table today at 6:30pm at Mainland China and on Monday at 7:00pm at Barbeque Nation" detector = DateAdvancedDetector(entity_name=[0],language=source_language,timezone=timezone,past_date_referenced=past_date_referenced) detector = TimeDetector(entity_name=entity_name[1], language=source_language,timezone=timezone) output_res = get_text(message=message, entity_name=entity_name[2], here we are getting the error like this individually time, date, text all are working fine by combining this two(by adding date and time) or(text and date) or three(combination of text ,date ,time ) is not working properly. please reply fast |
I'll address this in #275 when I get some more time to reply. Please avoid duplicating issues. |
message = u'I want to order 2 burgers from mainland china at 3 pm '
entity_name = 'restaurant'
structured_value=None
fallback_value=None
bot_message=None
source_language='en'
from ner_v1.chatbot.entity_detection import get_text
output = get_text(message=message, entity_name=entity_name,
structured_value=structured_value,
fallback_value=fallback_value,
bot_message=bot_message,language=source_language)
print(output)
we tested the example of this by using the python shell the actual output in my system is
[{'original_text': 'mainland china', 'detection': 'message', 'language': 'en', 'entity_value': {'crf_model_verified': False, 'value': 'Mainland China', 'datastore_verified': True}}]
but in your document the output is
output:
[
{
"detection": "message",
"original_text": "2",
"entity_value": { "value": "2", "unit": null},
"language": "en"
},
{
"detection": "message",
"original_text": "3 pm",
"entity_value": { "mm": 0, "hh": 3, "nn": "pm"},
"language": "en"
}
]
Example 2:
// If today is 19th feb
input:
message = u'I have my maths exam next Saturday.'
entity_name = 'date'
structured_value = None
structured_value_verification = 0
fallback_value = None
bot_message = None
output:[
{
"detection": "message",
"original_text": "inferno",
"entity_value": {"value": {"mm":03, "yy": 2019, "dd": 02, "type": "date"}},
"language": "en"
},
]
for example 2 we are getting the output is None
why it is not working properly
please reply fast
thank in advance.
The text was updated successfully, but these errors were encountered: