0.1.4 • Published 5 years ago
etri-cli usage guide
1. Install node.js (prerequisite)
1-1 On linux
1) Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
2) Restart terminal
3) Install node LTS version
nvm install --lts
4) Verify installation
node -v
npm -v
1-2 On windows
1) Download LTS version installer
2) Install via the installer
3) Verify installation
node -v
npm -v
2. Install etri-cli package
npm install etri-cli -g
3. Usage
etri [options]
Options
option | description |
---|
-k, --key api_key | set an auth key for ETRI OPEN API (required) |
-c, --code analysis_code | set an analysis code (default: morp) |
-i, --input file_path | set an input text file path (required) |
-o, --output dir_path | set a directory path for analyzed output (default: ./output/) |
-h, --help | output usage information |
Analysis Code
code | analysis type |
---|
morp | POS |
wsd | word meaning (homonym) |
wsd_poly | word meaning (polysemy) |
ner | entity name |
dparse | syntactic dependency |
srl | semantic role |
4. Examples
etri -k YOURE_API_KEY -i input/sample.txt
etri -k YOURE_API_KEY -i input/sample.txt -c wsd -o result/