Code Monkey home page Code Monkey logo

nlp-design-problem's Introduction

NLP-Design-Problem

Last Edit: Fri Apr 15 22:21:52 CDT 2016

CSC-301 Prof. Ursula Wolz Grinnell College

Authors

  • Albert Owusu-Asare
  • Uzo Nwike
  • Larry Asante-Boateng
  • Prabir Pradhan

Project Structure:

.
├── bin
├── lib
│   └── jSpellCorrect-0.4.jar
├── res
│   ├── keywords.txt
│   ├── negatives.txt
│   └── Stopwords.txt
└── src
    ├── InputParser.java
    ├── Levenshtein.java
    ├── Main.java
    ├── test
    │   └── InputParserTest.java
    ├── TestApp.java
    └── TextParser.java

The source code can be found in the directory src. This directory contains:

  • InputParser.java : Implements the algorithm for reading and parsing student input
  • Levenshtein.java : A Utility program that provides functionality for calculating the levenshtein distances needed for the algorithm
  • Main.java : A simple test client that can shows how the algorithm works
  • TestApp.java : A simple application to look at outputs, given the string inputs
  • test : a directory containing InputParserTest.java which is a jUnit test suite for testing edge cases

The resources can be found in the directory res. This directory contains:

  • keywords.txt : a list of keywords for each recognized method
  • negatives.txt : a list of all the recognized negative words, including hedge cues
  • Stopwords.txt : a list of stopwords

Installation:

For the compilation and execution of the programs can be done in the UNIX environment. Specifically the following command can be used issued in the bash shell to compile.

To compile, navigate to the nlp_design_submission directory and run the following command:

javac -d bin -sourcepath src -cp lib/jSpellCorrect-0.4.jar src/*.java

To run the java file use the command:

java -cp bin:lib/jSpellCorrect-0.4.jar edu.grinnell.cs.Main <input sentence>

Sample Run and Output:

Command:

java -cp bin:lib/jSpellCorrect-0.4.jar edu.grinnell.cs.Main "I will use quadratic"

Output:

{QuadraticFormula, FactorQuadratic}

For more examples, see src/InputParserTest.java

nlp-design-problem's People

Contributors

prabirmsp avatar uzonwike avatar

Watchers

James Cloos avatar Larry Asante avatar  avatar  avatar  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.