Skip to content
Python framework for processing Universal Dependencies data
Python Other
  1. Python 99.8%
  2. Other 0.2%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
demo
docs mock for ufal.udpipe is not needed Oct 24, 2017
udapi
.gitignore
.pylintrc
.travis.yml
CHANGES.txt
LICENSE
README.md Update README.md Oct 24, 2017
requirements.txt add ufal.udpipe to dependencies and bump version May 20, 2017
setup.py bump version to 0.2.2 Jan 8, 2018

README.md

udapi-python

Python framework for processing Universal Dependencies data

Build Status Website Documentation Status

Requirements

  • You need Python 3.3 or higher.
  • If the ufal.udpipe parser is needed, make sure you have a C++11 compiler (e.g. g++ 4.7 or newer) and install UDPipe with pip3 install --user --upgrade ufal.udpipe.

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"
You can’t perform that action at this time.