Query Classifier

51 views
Skip to first unread message

Edgar Eler

unread,
Sep 23, 2016, 12:17:39 PM9/23/16
to Lucida Users
Hello everyone,

I'm trying to integrate Lucida with my system, but for now I only need to use the feature of Query Classifier. I need to send a string to QC and it returns to me a response if that string is a Question or an Action.

I already have a working installation of Lucida, and in GitHub I only found few references for the QueryClassifier: QueryClassifier.py and Infer.py, the only class which instantiate QC.

Is it possible to isolate the Query Classifier as a specific HTTP endpoint?

Thanks,

--
Edgar Eler

Yunsheng Bai

unread,
Sep 23, 2016, 12:36:15 PM9/23/16
to Lucida Users
Hi Edgar,

It is possible to do that and I am willing to help. Basically you can set up a web server that receives HTTP request which calls the classifier module similar to Infer.py. You can even reference and use the code in app.py which shows you how to set up a Flask web server. Based on your specific needs and preferences, you are welcome to try other options, but please let me know your specific needs and preferences, so that I can help you better. Thanks a lot!

Edgar Eler

unread,
Sep 23, 2016, 1:03:39 PM9/23/16
to Lucida Users
Hey Yusheng, thanks for your quick answer.

My system is a multi-agent Node.js system for support learning, and a professor can configure a question to be made for the apprentice. I have an agent that make this question by voice and other agent that wait for the apprentice answer. When he answer, I need to analyse his answer to check if it's a valid answer, and the Lucida's Query Classifier is essential to do that, in order to check if the user answered with an Affirmative (Action) or a Question.

So, for now I will follow your suggestions to set up a web server to receive the HTTP requests, and call QC as Infer.py does. I've never worked with Python, but I guess it will not be a big problem :)

By the way, does Lucida team use some chat platform as Slack?

Thank you for your support.

Best,

--
Edgar Eler

--
You received this message because you are subscribed to the Google Groups "Lucida Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucida-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucida-users/f03a6c72-2b91-4521-b8f3-5a55f07500cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages