Skip to content

Instantly share code, notes, and snippets.

@MaZderMind
Created July 31, 2014 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaZderMind/635538724c885a63e1c3 to your computer and use it in GitHub Desktop.
Save MaZderMind/635538724c885a63e1c3 to your computer and use it in GitHub Desktop.
libleibzig w/ unicode - \o/ - yay
mkdir test; chdir test
virtualenv -p python3 .
./bin/pip install -U setuptools
./bin/pip install https://github.com/MaZderMind/libleipzig-python/archive/master.zip
./bin/python
Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libleipzig
>>> >>> print(libleipzig.Cooccurrences("müde", 0, 1, corpus="de"))
[(Wort: 'müde', Kookkurrenz: 'bin', Signifikanz: '484')]
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment