项目作者: udapi

项目描述 :
Python framework for processing Universal Dependencies data
高级语言: Python
项目地址: git://github.com/udapi/udapi-python.git
创建时间: 2016-05-13T06:58:15Z
项目社区:https://github.com/udapi/udapi-python

开源协议:GNU General Public License v3.0

下载


udapi-python

Python framework for processing Universal Dependencies data

Build Status
Website
Documentation Status

Requirements

  • You need Python 3.6 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.

  1. cd
  2. git clone https://github.com/udapi/udapi-python.git
  3. pip3 install --user -r udapi-python/requirements.txt
  4. echo '## Use Udapi from ~/udapi-python/ ##' >> ~/.bashrc
  5. echo 'export PATH="$HOME/udapi-python/bin:$PATH"' >> ~/.bashrc
  6. echo 'export PYTHONPATH="$HOME/udapi-python/:$PYTHONPATH"' >> ~/.bashrc
  7. 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.

  1. 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

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