drewThomasson commited on
Commit
b83b2ed
Β·
verified Β·
1 Parent(s): c242e22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -22
README.md CHANGED
@@ -1,40 +1,68 @@
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. πŸ™‹β€β™‚οΈπŸ™‹β€β™€οΈ
 
1
  ---
2
  license: mit
3
  ---
4
+ # πŸ“š Quote Identifier
5
 
6
+ A program that identifies quotes in text documents using a BERT-based model. πŸ€–
7
+
8
+ ## πŸ› οΈ Requirements
9
+
10
+ - Python 3.10 🐍
11
+ - pip (Python package installer) πŸ“¦
12
+
13
+ ## πŸš€ Installation
14
+
15
+ 1. Clone this repository:
16
+
17
+ ```
18
+ git clone [your-repo-url]
19
+ cd [your-repo-name]
20
+ ```
21
+
22
+ 2. Install the required packages:
23
+
24
+ ```
25
+ pip install pandas torch transformers tqdm
26
+ ```
27
+
28
+ πŸ’‘ Note: If you have a CUDA-capable GPU, visit https://pytorch.org for the appropriate PyTorch installation command.
29
+
30
+ ## πŸƒβ€β™‚οΈ Usage
31
+
32
+ Run the program with:
33
+
34
+ ```
35
+ python quote_identifier.py
36
+ ```
37
+
38
+ GUI Instructions:
39
  1. πŸ“‚ Click "Open Text File" to select your text file.
40
  2. πŸ” Click "Identify Quotes" to process the file.
41
  3. πŸ–₯️ A new window will open showing the text with identified quotes highlighted.
42
 
43
  ## πŸ“ Included Files
44
 
45
+ - quote_identifier.py: Main Python script 🐍
46
+ - quotation_identifer_model/: Directory containing the pre-trained model 🧠
47
+ - checkpoint-1000/: Model checkpoint βœ…
48
+ - sample_book.txt: Sample text file for testing πŸ“˜
49
 
50
+ ## πŸ€— Hugging Face Repository Contents
51
 
52
+ 1. Pre-trained quote identification model 🧠
53
+ 2. sample_book.txt πŸ“˜
54
+ 3. quote_identifier.py script 🐍
55
+ 4. This README πŸ“„
 
 
56
 
57
  ## πŸ“ Notes
58
 
59
+ - Ensure the local model directory ./quotation_identifer_model/checkpoint-1000/ is present.
60
+ - The program creates a BERT_infrence_quote_input.csv file when processing text.
61
+ - πŸŒ“ Use the "Toggle Dark Mode" button to switch between light and dark themes.
62
 
63
  ## πŸ†˜ Troubleshooting
64
 
65
+ If you encounter issues:
66
+ 1. πŸ“¦ Verify all required packages are correctly installed.
67
+ 2. πŸ—‚οΈ Check that the model directory is present with necessary files.
68
+ 3. 🐍 Confirm you're using Python 3.10.