Python framework for processing Universal Dependencies data
- You need Python 3.9 or higher.
- It is recommended to install Udapi in a Python virtual environment.
- If you need the ufal.udpipe parser (to be used from Udapi)
install it (with
pip install --upgrade ufal.udpipe).
Let's clone the git repo e.g. to ~/udapi-python/ and make an editable installation
cd
git clone https://github.com/udapi/udapi-python.git
cd udapi-python
pip install -e .This is similar to the above, but installs Udapi from PyPI to the standard (user) Python paths.
pip install --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"