charlieg / sparser Goto Github PK
View Code? Open in Web Editor NEWA bottom-up, phrase-structure-based chart parser, optimized for semantic grammars and partial parsing.
A bottom-up, phrase-structure-based chart parser, optimized for semantic grammars and partial parsing.
******************************** * 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.
<>
$> 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 inP"~/Sparser/Mumble/objects/postprocess-objects.lisp":
Error: attempt to call `SET-POSTPROCESSING-FN' which is an undefined
function.[condition type: UNDEFINED-FUNCTION]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.