GithubHelp home page GithubHelp logo

594-autocomplete's Introduction

Autocomplete

BATSMo autocompletor - The "Becca Alex Tierra Shruti"- Model

Running The Program

  1. Make sure you have Latest JDK (Java Compiler) installed on your machine. Run javac -version in your command line to ensure you have the latest version. If you do not have Javac skip to Step 3.

  2. Add the zipped contents to a local folder and cd into your working directory

  3. Run java AutocompleteGUI.java <NameOfTextFile.txt> in command line... that's it! The GUI should pop up! Example: %java AutocompleteGUI StarWarsEpisodeV.txt

  4. If you would rather use an IDE or do not have javac installed, make sure you have Eclipse IDE installed on your machine, have a JUnit 4 or 5 testing set up in your build path, and have a working internet connection.

  5. Find run in the top ribbon of Eclipse and select run configurations. In the next pop-up window go the tab that says arguments and in program arguments type the name of the file you choose to train on.

    • We'll get you started. Try some of these very entertaining .txt files we have included:

      Star Wars Episode IV (StarWarsEpisodeIV.txt)

      Star Wars Episode V (StarWarsEpisodeV.txt)

      Fifty Shades of Grey (50shades.txt)

      The Fault in our Stars (fault.txt)

      The Catcher in the Rye (catcher.txt)

  6. Using the GUI: Please use mouse click to select the words from the suggested ones. If you press "enter" instead, previously typed string will disappear. Note that GUI was implemented by the third party which was allowed by Dr. Fouh.

  7. (Optional) Run Unit tests. You can do this before step 1 or at any point, to make sure things are functioning properly. Simply run the AutocompleteTest.java from the IDE.

Implementation Details

Autocomplete Algorithm

Our autocomplete algorithm is based largely off of the frequency with which a given word shows up in a Data Set and all the possible words that follow a prefix entered by the user. More broadly, a word's likelihood of being suggested by our BATSMobile autocompletor as an acceptable successor to user input is defined by whether or not there are enough successors given it's frequency in the data following a prefix and if our Trie Tree Data Structure can fill in suggestions for all the possible words if there's not enough suggestions.

594-autocomplete's People

Contributors

bikegirl avatar tierrasharae avatar alexandrarumyantseva avatar shruti0085 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.