udapi / udapi-python

Python framework for processing Universal Dependencies data
GNU General Public License v3.0
52 stars 29 forks source link
dependency-tree python-framework universal-dependencies

udapi-python

Python framework for processing Universal Dependencies data

Build Status Website Documentation Status

Requirements

Install Udapi for developers

Let's clone the git repo to ~/udapi-python/, install dependencies and setup $PATH and $PYTHONPATH accordingly.

cd
git clone https://github.com/udapi/udapi-python.git
pip3 install --user -r udapi-python/requirements.txt
echo '## Use Udapi from ~/udapi-python/ ##'                >> ~/.bashrc
echo 'export PATH="$HOME/udapi-python/bin:$PATH"'          >> ~/.bashrc
echo 'export PYTHONPATH="$HOME/udapi-python/:$PYTHONPATH"' >> ~/.bashrc
source ~/.bashrc # or open new bash

Install Udapi for users

This is similar to the above, but installs Udapi from PyPI to the standard (user) Python paths.

pip3 install --user --upgrade udapi

Try udapy -h to check it is installed correctly. If it fails, make sure your PATH includes the directory where pip3 installed the udapy script. Usually, this results in

export PATH="$HOME/.local/bin/:$PATH"