GithubHelp home page GithubHelp logo

charlieg / sparser Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 5.0 201.95 MB

A bottom-up, phrase-structure-based chart parser, optimized for semantic grammars and partial parsing.

Perl 0.14% Common Lisp 99.86%

sparser's Introduction

********************************
* How to install & run Sparser *
* Version 0.1 - 11/16/10       *
********************************

Thank you for downloading Sparser. This short guide
will help you get everything up & running in no time.


Installation & Setup
====================

Sparser is designed to run on *nix platforms & has
been primarily tested on Intel-based Mac OS X.

1. Install the root directory "Sparser" wherever you like.
We recommend (and the default configuration assumes)
you keep it in your home directory.

Note: if you download a distribution of Sparser from
GitHub (rather than "checking-out" the repository with git
clone), the root directory will be named something like
"charlieg-Sparser-xxx." Once you unzip the .tar.gz or .zip
archive, you should rename the root directory to "Sparser"
-- this root directory should contain immediate
subdirectories named "corpus," "lisp," and "Sparser,"
among others.

2. If you installed the "Sparser" directory somewhere
other than your home directory, you'll need to modify
the paths in the "Load asdf" section of the
"Sparser/load-nlp.lisp" file to match your setup.

You are now ready to try running Sparser.


Testing Sparser
====================

You need to have a modern implementation of Common Lisp
already installed. We currently only support Allegro
Common Lisp (specifically the "mlisp" binary), but it
shouldn't be too difficult to get Sparser running on a
different implementation.

1. Start Lisp (with the "mlisp" binary if running
Allegro CL).

2. Load the "Sparser/load-nlp.lisp" file. If running
Allegro CL with a default installation, you can do this
with ":ld ~/Sparser/load-nlp.lisp".

3. Switch over to the Sparser namespace by executing
"(in-package :sparser)".

4. Test that Sparser is working properly & that it can
parse a simple phrase. Execute "(p "10 days")".

Your output should look something like this:
====================
sparser(3): (p "10 days")
10 days

                                 source-start
e3    amount-of-time          1 "10 days" 3
                                 end-of-source
:done-printing
====================

If so, congratulations -- Sparser is working. Check out
the documentation in "Sparser/Sparser/documentation" to
see how you can start writing your own grammars.

sparser's People

Contributors

charlieg avatar ddmcdonald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

inos-soft

sparser's Issues

Compile error for master branch (undefined function: SET-POSTPROCESSING-FN)

Both clozure and allegro give same error.

<>
$> ccl -l Sparser/load-nlp.lisp

Error: Undefined function SET-POSTPROCESSING-FN called with arguments (# #<Compiled-function |postprocess-BUNDLE-TYPE| #x302000F17BFF>) .
While executing: (:INTERNAL CCL::PROGN-IN-ENV CCL::CHEAP-EVAL-IN-ENVIRONMENT), in process listener(1).
Type :GO to continue, :POP to abort, :R for a list of available restarts.
If continued: Retry applying SET-POSTPROCESSING-FN to (# #<Compiled-function |postprocess-BUNDLE-TYPE| #x302000F17BFF>).
Type :? for other options.
1 >

<>
; While EVALUATING an unknown function in

P"~/Sparser/Mumble/objects/postprocess-objects.lisp":

Error: attempt to call `SET-POSTPROCESSING-FN' which is an undefined
function.

[condition type: UNDEFINED-FUNCTION]

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.