Giter VIP home page Giter VIP logo

parser-server's Introduction

Berkeley Parser Analyser Server

This website is an online demo of the Berkeley Parser Analyser . The server is based on Express.js.

Install

Make sure Berkeley Parser Analyser is in the same folder with this project. And make sure Berkeley Parser Analyser is working properly with its sample commands.

Example:

some_folder
├── berkeley-parser-analyser
├── parser-server

Then under parser-server folder, run: npm install.

Run

If you have gulp installed, run: gulp.

Otherwise use: npm start.

Parameters

The server keeps result files for 30 min, and will stop working if size of private folder is over 500 MB. You can adjust those parameters in server/index.js.

Server Structure

parser-server
├── Gulpfile.js				// gulp file
├── README.md
├── app.js					// server wapper
├── bin
│   └── www					// server executable
├── package-lock.json
├── package.json
├── public
│   ├── gold				// gold files that can be selected
│   │   ├── berkeley.mrg
│   │   └── wsj01.mrg
│   ├── results				// result files will be stored here
│   │   └── placeholder
│   ├── stylesheets			// stylesheets
│   │   └── style.css
│   └── upload				// uploaded files will be strored here
│       └── placeholder
├── server
│   ├── index.js			// main file
│   └── uploadUtil.js		// handles file uploading
└── views					// frontend template folder
    ├── download.jade
    ├── error.jade
    ├── index.jade
    ├── layout.jade
    └── message.jade
parser-server
├── server
│   ├── index.js
is the main file of the server that handles:

'/' , '/upload' , '/download'

'/' root is a form that will submit:
    'test_file'     upload a test file     required 
    'gold_file'     upload a gold file     optional
    'gold_select'   or select a golf file  optional
    'script_select' choose a script        required

'/upload' handles post request of the form. It will run 
          the selected script with test and gold files as inputs.
          Gold file can be either uploaded or choosed from public/gold/
          Result files will be stored at public/results.

'/download' will download files in public/results folder.

parser-server's People

Contributors

lizihan021 avatar

Watchers

James Cloos 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.