Giter Site home page Giter Site logo

mlda-hackathon-dogeartemis's Introduction

MLDA-Hackathon-DogeArtemis

Introduction

Service provision by companies and the government in SG is shifting towards higher efficiency powered by automation. However, assistance for managing problems from these services - customer/user support, is not. Customer support in SG is time and effort consuming; thus, transformation is necessary.

Text-based automated support agent: user inputs general commands; the chatbot sends relevant responses. Voice-based automated support agent:

  • The agent requests the user to input option numbers using the keypad; sends relevant responses.
  • The agent requests the user to input the command via voice; sends relevant responses.

Live agent support: a human agent connects with the user; provides the necessary support. *Common limitation: regardless of the support each user demands, everyone should go through the identical process until the automated agent correctly labels the type of user support necessary. This is time and effort consuming to both the user and the service provider.

Eliminating the “waiting time” users have to spend to reach support; while providing the support relevant to their sentiment.

Our solution mainly targets the field of voice-based automated support. The automated agent immediately asks for the user’s inquiry; while the user speaks out to the agent, the algorithm analyses the sentiment behind the user’s voice and judges urgency. Depending on user sentiment, a relevant support will be provided. If the algorithm judges the user would be willing to handle with an automated support agent, relevant support will be provided by an agent powered by a natural language generator model. However, if the user is in a negative sentiment, direct connection to a human support agent will be given.

Dependency

  • Python=3.9.13
  • ffmpeg
  • rust

File structure

+-- models
+-- QAsystem
+-- VITS
+-- whisper_step

Usage

model

QAsystem

To use the Q&A system, first import the class

import QAsystem from QAsystem

Then create an instance for the class

query = "What is Covid-19"
system = QAsystem()
answer = system.generate_answer(query)

Put the query which is in string type into the generate_answer function, we can get the result of this system.

VITS

whisper_step

Audio Sentiment Classification

To make a sentiment classification of the input audio, access the code files in the directory /models/model-predictions. Import the relevant module:

from model_predictions import return_predictions

Then configure the respective parameters:
model_path: FILE PATH TO THE .pth MODEL.
audio_path: FILE PATH TO THE .wav AUDIO FILE.
sample_rate: int VALUE; HOW MANY TIMES PER SECOND A SOUND IS SAMPLED; DEFAULT 22050.
num_samples: int VALUE; MAXIMUM AUDIO LENGTH, NUMBER OF SAMPLES ALLOWED; DEFAULT 22050.


Input the parameters; then execute the return_predictions() function.

prediction = return_predictions(model_path, audio_path, sample_rate, num_samples)

mlda-hackathon-dogeartemis's People

Contributors

yijisuk avatar plachtaa avatar h-tr avatar llizhaoxu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.