Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 864 Bytes

INSTALL.md

File metadata and controls

46 lines (32 loc) · 864 Bytes

Install

This is a guide for compiling and building the package from source.

Requirements

  • g++ or clang
  • cmake>=3.1
  • pkg-config (to source glib-2.0 and re2)
  • Boost
    • program_options
    • thread
  • glib-2.0
  • re2 (Be warned that early versions do not contain re2.pc)

Optional Requirements

  • make (This way you can just use the handy Makefile provided)
  • Python headers (For building python package)

Installation (Library and command-line tool)

# Script to build the CLI is provided in the Makefile
make build-cli

# Installation comming soon

Installation (Python)

From PyPI (Recommended for users)

pip install fast-mosestokenizer

From source

# Download and decompress pybind11
make download-pybind11

# Build and install python package
python setup.py build_ext install