Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
This will open a GUI. From there:
|
| 5 |
+
|
| 6 |
+
1. π Click "Open Text File" to select your text file.
|
| 7 |
+
2. π Click "Identify Quotes" to process the file.
|
| 8 |
+
3. π₯οΈ A new window will open showing the text with identified quotes highlighted.
|
| 9 |
+
|
| 10 |
+
## π Included Files
|
| 11 |
+
|
| 12 |
+
- `quote_identifier.py`: The main Python script π
|
| 13 |
+
- `quotation_identifer_model/`: Directory containing the pre-trained model π§
|
| 14 |
+
- `checkpoint-1000/`: The model checkpoint β
|
| 15 |
+
- `sample_book.txt`: A sample text file to test the program π
|
| 16 |
+
|
| 17 |
+
## π€ Hugging Face Repository
|
| 18 |
+
|
| 19 |
+
The Hugging Face repository for this project includes:
|
| 20 |
+
|
| 21 |
+
1. π§ The pre-trained quote identification model
|
| 22 |
+
2. π A sample text file (`sample_book.txt`)
|
| 23 |
+
3. π The `quote_identifier.py` script
|
| 24 |
+
4. π This README
|
| 25 |
+
|
| 26 |
+
## π Notes
|
| 27 |
+
|
| 28 |
+
- The program uses a local model stored in `./quotation_identifer_model/checkpoint-1000/`. Ensure this directory is present.
|
| 29 |
+
- The program will create a `BERT_infrence_quote_input.csv` file in the same directory when processing a text file.
|
| 30 |
+
- π You can toggle between light and dark modes using the "Toggle Dark Mode" button.
|
| 31 |
+
|
| 32 |
+
## π Troubleshooting
|
| 33 |
+
|
| 34 |
+
If you encounter any issues:
|
| 35 |
+
|
| 36 |
+
- π¦ Ensure all required packages are installed correctly.
|
| 37 |
+
- ποΈ Check that the model directory is present and contains the necessary files.
|
| 38 |
+
- π Verify that you're using Python 3.10.
|
| 39 |
+
|
| 40 |
+
For further assistance, please open an issue in the GitHub repository. πββοΈπββοΈ
|