Last change
on this file since 35447 was 35389, checked in by davidb, 3 years ago |
Update READMEs.
Revert transcibe test methods following associated servlet fix.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[35355] | 1 | # Korero Maori ASR Interface
|
---|
| 2 |
|
---|
| 3 | A Greenstone 3 interface for the Atea Project, allowing people to easily utilise the ASR service of https://koreromaori.io to transcribe reo MÄori audio files.
|
---|
| 4 |
|
---|
| 5 | ## Project setup
|
---|
| 6 |
|
---|
| 7 | Ensure that [node.js](https://nodejs.org) is on your path.
|
---|
| 8 |
|
---|
[35389] | 9 | You will also need to setup the Greenstone `koreromaori-proxy` extension. Visit https://trac.greenstone.org/browser/gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy to get the source.
|
---|
[35355] | 10 |
|
---|
| 11 | ```
|
---|
| 12 | npm install
|
---|
| 13 | ```
|
---|
| 14 |
|
---|
| 15 | ### Compile and hot-reload for development
|
---|
| 16 |
|
---|
[35389] | 17 | This will open a development webserver on [localhost:8080](http://localhost:8080), that is detached from the running Greenstone instance (provided you haven't removed development-specific code).
|
---|
| 18 |
|
---|
[35355] | 19 | ```
|
---|
| 20 | npm run serve
|
---|
| 21 | ```
|
---|
| 22 |
|
---|
| 23 | ### Compile and minify for production
|
---|
| 24 |
|
---|
| 25 | Firstly, development-specific code needs to be changed.
|
---|
| 26 |
|
---|
[35389] | 27 | 1. In `TranscribeModule.js` change the `queryUrl` property to point to the primary transcribe endpoint.
|
---|
[35355] | 28 |
|
---|
| 29 | ```js
|
---|
[35389] | 30 | -- this.queryUrl = "//localhost:8383/gs3-koreromaori/transcribe/test";
|
---|
| 31 | ++ this.queryUrl = "//localhost:8383/gs3-koreromaori/transcribe";
|
---|
[35355] | 32 | ```
|
---|
| 33 |
|
---|
[35389] | 34 | 2. In `vue.config.js`, uncomment the `publicPath` property, and optionally change it to point to where your production distribution will be placed relative to the interface.
|
---|
[35355] | 35 |
|
---|
[35389] | 36 | 3. Finally, build the project.
|
---|
| 37 | ```
|
---|
| 38 | npm run build
|
---|
| 39 | ```
|
---|
[35355] | 40 |
|
---|
| 41 | ### Lint and fix files
|
---|
| 42 |
|
---|
[35389] | 43 | This uses the settings in `.eslintrc.js` to lint the project, and attempts to fix mistakes accordingly.
|
---|
[35355] | 44 |
|
---|
| 45 | ```
|
---|
| 46 | npm run lint
|
---|
| 47 | ```
|
---|
Note:
See
TracBrowser
for help on using the repository browser.