Coder Social home page Coder Social logo

tud-fop / vanda-haskell Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 3.0 2.58 MB

Vanda-Haskell is a toolkit that contains various proof-of-concept implementations of algorithms from natural language processing.

License: BSD 3-Clause "New" or "Revised" License

Haskell 99.42% Gnuplot 0.58%
natural-language-processing grammars parsing grammar-induction-algorithms proof-of-concept automata haskell

vanda-haskell's Introduction

Vanda-Haskell

Vanda-Haskell is a toolkit that contains various proof-of-concept implementations of algorithms from natural language processing.

Install Vanda-Haskell using cabal

  • you need to have ghc and cabal installed
  • change to the project’s root directory
  • (optionally) create a sandbox via cabal sandbox init
  • install via cabal install --enable-documentation

The installation provides the command line tool vanda and a Haskell library.

Usage of the command line tool

  • You can run the tool via cabal exec -- vanda from the project’s root directory. Alternatively you can locate the binary via cabal exec which vanda and run it directly or add the containing directory to your PATH.

  • Algorithms are called via git-style subcommands, e.g., cabal exec -- vanda brackets mdyck '[(,{' ']),}' '{([])[()]}'.

  • Each subcommand has its own help subcommand that provides further information, e.g., cabal exec -- vanda brackets help.

  • Running vanda without arguments shows you the following list of available top-level subcommands:

    vanda [COMMAND] ...
      Vanda
    
    Commands:
      brackets   algorithms for Dyck and multiple Dyck languages
      cbsm       Count-Based State Merging
      lcfrs      algorithms for probabilistic LCFRS
      pmcfg      algorithms for weighted parallel multiple context-free grammars
      ngrams     algorithms for n-gram models
      pdta       grammatical inference of probabilistic deterministic tree
                 automata (experimental!)
      xrsngrams  algorithms for combining n-gram models and translation models
      pcfg       algorithms for extracting and training PCFGs
    
    Every mode provides a sub-mode help, which displays only help concerning this
    mode. Every help mode has an optional argument which defines the help format.
    

Install and Usage with stack

  • You need to have stack installed.

  • Change to the project’s root directory and

  • install via stack build --copy-bins.

  • You can run the tool via stack exec -- vanda from any directory. Alternatively you can locate the binary via stack exec which vanda and run it directly or add the containing directory to your PATH.

The Vanda Haskell library

Currently, the library just exposes nearly every module there is in the project. This includes the modules that implement the functionality of the command line tool. The API is not fixed, yet.

The modules are documented using haddock syntax. While installation cabal collects the haddock documentation and API information to create easy-to-read HTML pages if the --enable- documentation flag is used or documentation: True is set in cabal’s configuration file. The location of the documentation is output during the installation.

vanda-haskell's People

Contributors

budsbenzer avatar denki avatar flupp avatar linfelix avatar nwuensche avatar sjmielke avatar truprecht avatar zerwas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.