This Java application, developed using Java 19, is designed for efficient multithreaded indexing. It facilitates the creation of a word index from e-book (.txt) files provided with the project.
-
Word Index Creation: Generate a word index from an e-book (.txt) file. The index includes a list of words, their corresponding page numbers, and defined meanings from a provided dictionary.
-
User-Defined Index: Users can load e-book files, build custom word indices, and associate words with definitions and page numbers.
-
Performance Metrics: The application records build time and unique words during the indexing process.
-
Menu Interface: Users can interact with the application through a menu, selecting options using numerical values from 1 to 6. Exclusion of words from
google-100.txt
in the index is implemented.
Follow these steps to run the application:
- Use the menu options to perform indexing on text files.
- Follow the prompts to configure dictionaries, load files, and build the index.
- Ensure Java 19 is installed, and enable preview features in the environment.
- Compile the code to run the application.
- Java 19 installed
- Enable preview features in the Java environment
-
Compile the Java file: javac MultithreadedIndexing.java
-
Run the application; java MultithreadedIndexing
- The application relies on Java 19 features; therefore, enabling preview features is necessary.
- The exclusion of words from
google-100.txt
ensures a focused and meaningful index.