Skip to content

The Inverted Index Builder is a tool designed to create an inverted index from a collection of documents. This index is useful for various information retrieval tasks, such as searching for documents containing specific words or phrases.

Notifications You must be signed in to change notification settings

nasiruddinabubakar/Inverted-Index

Repository files navigation

Inverted Index

The Inverted Index Builder is a tool designed to create an inverted index from a collection of documents. This index is useful for various information retrieval tasks, such as searching for documents containing specific words or phrases.

Features

  • Parses a collection of documents.
  • Tokenizes the content of each document.
  • Builds an inverted index based on the tokens extracted from the documents.
  • Supports preprocessing steps like stop word removal and stemming.

Installation

To use the Inverted Index Builder, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/nasiruddinabubakar/inverted-index.git
  1. Install the dependencies:
cd inverted-index-builder
npm install
  1. Start the application:
npm run start:dev

Usage

Once the application is running, you can use it to build an inverted index by providing a collection of documents. The documents should be stored in a specific format (e.g., text files).

Example usage:

const invertedIndex = new InvertedIndex();
await invertedIndex.BuildIndex();
const index = await invertedIndex.returnIndex();
console.log(index);

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

The Inverted Index Builder was created by [Nasiruddin Abubakar].

Contact

For questions or inquiries, please contact [[email protected]].


About

The Inverted Index Builder is a tool designed to create an inverted index from a collection of documents. This index is useful for various information retrieval tasks, such as searching for documents containing specific words or phrases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published