GithubHelp home page GithubHelp logo

pratt3000 / transcript-interpretor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.9 MB

When AI agents interface with a customer, it extracts the implied date that the customer will make a payment. These conversations are unstructured and dates can be communicated in a nebulous fashion.

Jupyter Notebook 96.24% Python 3.76%

transcript-interpretor's Introduction

How to run

Installing requirements

pip install -r requirements.txt

Training the model

train.ipynb
Note: This will train the model on data from chatgpt_gen_date.json

Predict

predict.py --conversation <str> --date <str> --label_type <str> --ensemble <bool>
Sample:
predict.py --conversation "Agent: Hi, I'm Taylor, calling from Westlake Financial on a recorded line. Unfortunately, we did not receive your monthly payment! Would you be able to make a payment today?\nCustomer: yeah i did i did it through text but that that bring the house for this one and then press two or whatever\n" --date "2020-01-01" --label_type "label" --ensemble

Evaluation

eval.py
Note: This will evaluate the model on data from test_data.json

Make data to proper format:

format_data.py

Other details

  1. Trained model weights are stored on hugging face.
  2. Final model used - Finetuned FlanT5-large
  3. Extra model weights (for model 1, 2, 3 (described in Approach_explanation.pdf)) uploaded to huggingface just in case. Although a few other changes would need to be made to the code to run using these weights.

Approach Explanation:

The details are in approach_explanation.pdf

Compute used

Kaggle - GPU: P100 (16 GB)

transcript-interpretor's People

Contributors

pratt3000 avatar

Watchers

 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.