Spaces:
Sleeping
Sleeping
File size: 3,143 Bytes
d66628a b89afda d66628a 15d639e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
---
title: Prodigy Ecfr Textcat
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.29.0
app_file: gradio_interface.py
pinned: false
---
# prodigy-ecfr-textcat
## About the Project
Our goal is to organize these financial institution rules and regulations so financial institutions can go through newly created rules and regulations to know which departments to send the information to and to allow easy retrieval of these regulations when necessary. Text mining and information retrieval will allow a large step of the process to be automated. Automating these steps will allow less time and effort to be contributed for financial institutions employees. This allows more time and work to be used to accomplish other projects.
## Table of Contents
- [About the Project](#about-the-project)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [File Structure](#file-structure)
- [License](#license)
- [Acknowledgements](#acknowledgements)
## Getting Started
Instructions on setting up the project on a local machine.
### Prerequisites
Before running the project, ensure you have the following software dependencies installed:
- [Python 3.x](https://www.python.org/downloads/)
- [spaCy](https://spacy.io/usage)
- [Prodigy](https://prodi.gy/docs/) (optional)
### Installation
Follow these step-by-step instructions to install and configure the project:
1. **Clone this repository to your local machine.**
```bash
git clone <https://github.com/ManjinderSinghSandhu/prodigy-ecfr-textcat.git>
```
2. Install the required dependencies by running:
```bash
pip install -r requirements.txt
```
3. Next, you need to have a Prodigy license key to use Prodigy. (But it's not required) Install Prodigy first:
```bash
python -m pip install prodigy==1.15.2 --extra-index-url https://[email protected]
```
This assumes you previously set up your `PRODIGY_KEY` as an environmental variable like:
```bash
export PRODIGY_KEY=1111-1111-1111-1111
```
## Usage
To use the project, follow these steps:
1. **Prepare your data:**
- Place your dataset files in the `/data` directory.
- Optionally, annotate your data using Prodigy and save the annotations in the `/data` directory.
2. **Train the text classification model:**
- Run the training script located in the `/python_Code` directory.
3. **Evaluate the model:**
- Use the evaluation script to assess the model's performance on labeled data.
4. **Make predictions:**
- Apply the trained model to new, unlabeled data to classify it into relevant categories.
## File Structure
Describe the organization of files and directories within the project.
- `/data`
- `five_examples_annotated5.jsonl`
- `goldenEval.jsonl`
- `train.jsonl`
- `train200.jsonl`
- `/python_Code`
- `finalStep-formatLabel.py`
- `firstStep-format.py`
- `five_examples_annotated.ipynb`
- `secondStep-score.py`
- `thirdStep-label.py`
- `requirements.txt`
- `requirements-dev.txt`
- `Project.yml`
- `README.md`
## License
- Package A: MIT License
- Package B: Apache License 2.0
|