https://github.com/arvind-4/word-indexing
Solution for the Question
https://github.com/arvind-4/word-indexing
file pathlib python
Last synced: 5 months ago
JSON representation
Solution for the Question
- Host: GitHub
- URL: https://github.com/arvind-4/word-indexing
- Owner: Arvind-4
- Created: 2023-06-20T14:22:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T14:34:13.000Z (almost 3 years ago)
- Last Synced: 2024-05-30T16:56:33.962Z (almost 2 years ago)
- Topics: file, pathlib, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Assignment
## Challenge outline
"Create index of words in a book" is a standard question we ask as practical test for devteam candidates.
Time limit is 3 hours. But it can be extended.
The question is given in Assignment.txt.
Data for testing the program is present in Page1.txt, Page2.txt, Page3.txt & exclude-words.txt.
Correct answer for test data is present in index.txt.
[The Question](https://github.com/Arvind-4/Assignment/blob/main/assignment/Assignment.txt)
## Getting Started
### Install requirements
```bash
python3.10 venv .
source bin/activate
pip install -r requirements.txt
```
### Run the App
```bash
python src/main.py
```
### Check Outputs
```
# output folder
# ./src/output/index.txt
```