Skip to content

Confidential NLP Email Classification using Multi-Party Computation

License

Notifications You must be signed in to change notification settings

wak31415/distributed-legal-mail-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Legal Email Assistant

Set up environment

Clone the repository. Using a python environment manager of your choice, install the requirements from requirements.txt, e.g.

git clone git@github.com:[username]/distributed-legal-mail-assistant.git
cd distributed-legal-mail-assistant

conda create -n email-paralegal python=3.9
conda activate email-paralegal
pip install -r requirements.txt

Run Client

So far, only inference on a pretrained model is supported. To run the UI and perform classifications on emails, run

streamlit run source/client/run.py -- --server-ip 0.0.0.0 --server-port 0000

Note: --server-ip and --server-port have no purpose yet.

Run Inference on Test Data

To run the model on all exisiting test data, simply run

python -m utils.testing -d data

Data Structure

Each email is stored as a separate file in data, and admits the following format:

[comma separated list of true labels]
multi
line
email

About

Confidential NLP Email Classification using Multi-Party Computation

Topics

Resources

License

Stars

Watchers

Forks

Languages