GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - korpling/graphANNIS-python: Python binding for the graphANNIS API

BranchesTags
Open more actions menu

Latest commit

 

History

320 Commits
320 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
docs
docs
 
 
examples
examples
 
 
graphannis
graphannis
 
 
package
package
 
 
relannis
relannis
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
README_pypi.md
README_pypi.md
 
 
doctest_runner.py
doctest_runner.py
 
 
release_prepare.sh
release_prepare.sh
 
 
setup.py
setup.py
 
 

Repository files navigation

Automated tests

graphANNIS Python Bindings

GraphANNIS is a library for corpus linguistic queries and these are the Python bindings to graphANNIS core library version 3.1.1.

How to use in your own scripts

GraphANNIS is available as Python3-compatible library from the central PyPI repository: https://pypi.org/project/graphannis/ You can install it locally with pip (https://pip.pypa.io/en/stable/).

pip install graphannis

On Ubuntu Linux systems the command might be pip3for Python 3.

You can view the API documentation online.

How to compile/install from source

Install you the python packages locally (use Python3) for your current user (remove the --user to install it system-wide)

python3 setup.py install --user

This will automatically download the the graphANNIS binaries to the graphannis/<platform> folder, where platform is one of the following:

Operating system <platform>
Linux (64 bit) linux-x86-64
MacOS X (64 bit) darwin-x86-64
Windows (64 bit) win32-x86-64

You can change the CORE_VERSION field in the setup.py to use a different released version of graphANNIS.

To compile graphANNIS on your own (e.g. for using a non-released version)

  • Clone the graphANNIS library from https://github.com/korpling/graphANNIS/
  • Follow the graphANNIS compile instructions
  • Copy the resulting shared library file <graphANNIS-repo>/target/release/libgraphannis_capi.so (libgraphannis_capi.dylib under MacOS X and graphannis_capi.dll under Windows) into the graphannis/<platform> folder (but without the _capi suffix).

Release process

  1. Make sure your local working directory is a checkout of the main branch and up-to-date.
  2. Update version information, by
    • changing the VERSION field in the setup.py file
    • specifying the corresponding graphANNIS release tag in the CORE_VERSION field in the setup.py file
    • committing the changed files
  3. Prepare the release (including executing tests) by executing ./release_prepare.sh.
  4. Check if there where no test errors and Commit the changes created by release preparation script.
  5. Tag and push the latest commit with the prefix v, e.g. v1.4.0

CI will automatically deploy all tagged commits on the main branch.

3rd party dependencies

  • CFFI (http://cffi.readthedocs.org/) MIT License
  • networkX (http://networkx.github.io/) BSD License

Author(s)

  • Thomas Krause ([email protected])

About

Python binding for the graphANNIS API

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.