Skip to content

Instantly share code, notes, and snippets.

@gartenfeld
Created January 2, 2017 01:22
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 gartenfeld/4e060b0a52468b1feb780f84b11d2abe to your computer and use it in GitHub Desktop.
Save gartenfeld/4e060b0a52468b1feb780f84b11d2abe to your computer and use it in GitHub Desktop.

Install MacPorts

Optionally update MacPorts sudo port selfupdate

Download the port tree of HFST

  • Unpack the port tree
  • Add the port tree dir file:///.../hfst-macport/ to /opt/local/etc/macports/sources.conf
  • sudo port install hfst

Upgrade pip

  • pip install --upgrade pip
  • python3 -m pip install --upgrade pip

Install Python bindings for HFST

  • pip install hfst
  • python3 -m pip install hfst

Clone omorfi git clone https://github.com/flammie/omorfi.git

Run ./autogen.sh If needed, brew install autoconf automake libtool

Run ./configure

Run make && make -j install

@gartenfeld
Copy link
Author

The above generally no longer works

If it complains the bindings lib is out of date:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

@gartenfeld
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment