##language:en == Francis Bond == I am an associate professor at the [[http://www.ntu.edu.sg/HSS/Linguistics/Pages/default.aspx|Division of Linguistics and Multilingual Studies]], [[http://www.ntu.edu.sg/|Nanyang Technological University]]. My [[http://www3.ntu.edu.sg/home/fcbond/|main homepage]] is there. Email: <> === 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}}}: {{{
Grammar: }}} 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