Francis Bond

I am an associate professor at the Division of Linguistics and Multilingual Studies, Nanyang Technological University. My main homepage is there.

Email: <bond AT SPAMFREE ieee DOT org>

Set Up Notes

dephin-viz

$ git clone https://github.com/delph-in/delphin-viz
$ sudo mkdir /var/www/html/delphin-viz
$ sudo cp -rp delphin-viz/{demo,viz} /var/www/html/delphin-viz/.

You can now see the demo at localhost/delphin-viz/demo/ (assuming you have apache and the dependencies installed).

Then adjust delphin-viz/demo/index.html:

  <div class="input-line">
    Grammar:
    <select id="input-grammar">
       <option value="zhs-local">Zhong-zhs (local)</option>
       ...
    </select>

Then adjust delphin-viz/demo/demo.js:

var RESOURCES = {
...
 'zhs-local':'http://127.0.0.1:8080/zhs/parse'
};
var SAMPLE_INPUT = {
...
  zhs: '张三 哭 了'
};

bottlenose (the server)

$ git clone https://github.com/delph-in/bottlenose.git
$ sudo apt-get install python3-bottle

and bottlenose/config.json

{
    "bottlenose": {
        "grammars": [
            {
                "key": "zhs",
                "path": "/home/bond/svn/zhong/cmn/zhs/zhs.dat",
                "description": "Zhong Mandarin Grammar (简)"
            }
        ],
        "ace": {
            "executable": "ace",
            "cmdargs": ["-n", "5"]
        },
        "allow_jsonp": false,
        "default_tasks": ["parse"]
    }
}

Then start things:

python3 bottlenose.py


CategoryHomepage

FrancisBond (last edited 2016-11-04 22:31:43 by FrancisBond)