Coder Social home page Coder Social logo

rohansikder / multithreadedindexingapi Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.19 MB

A multithreaded indexing API in Java 19+ that allows a word index to be created from an e-book or a URL.

Java 100.00%
java concurrency java19 virtualthreads

multithreadedindexingapi's Introduction

MultithreadedIndexingAPI

A multithreaded indexing API in Java 19+ that allows a word index to be created from an e-book or a URL.

This Java Program is created with Java 19 using the new Virtual Threads, To Process EBooks specified by the user. which shows all words that are in the ebook along with the definition and pages numbers that the word appeared on.

The words are filtered using Googles top 1000 Common word, But this can be changed by the menu

How to run program:

Please below command in CMD. The dictionary and common words should be in the same directory:

java --enable-preview -cp ./indexer.jar ie.atu.sw.Runner

Menu Options:

  1. Specify Text File - Please enter ebook directory into here.
  2. Configure Dictionary - (Not Required - Dictionary provided) - Please enter dictionary directory into here.
  3. Configure Common Words - (Not Required - Google Top 1000 Word's provided) - Please enter common words dictionary here.
  4. Specify Output File - (Not Required - Default will be output.txt) - Please enter output file name here.
  5. Execute - This executes and processes all files and then creates output file.
  6. Quit - This exists the application

Options 2 to 4 are not required as they are provided for you.

How it works: This program takes in an eBook and reads it line by line using virtual threads and then splits it up into individual words and puts it into a set, this is also done for the dictionary and common words which the program disregards when outputting the file. The program checks through the words from the eBook and dictionary and if they match it outputs its definition. Before this is done the most common words are removed from eBook words.

multithreadedindexingapi's People

Contributors

rohansikder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.