How To Install foma on Mac

Foma is a compiler, programming language, and C library for constructing finite-state automata and transducers for various uses. It has specific support for many natural language processing applications such as producing morphological analyzers. Although NLP applications are probably the main use of foma, it is sufficiently generic to use for a large number of purposes.

Name: foma
Use: Finite-state compiler and C library
URL: https://code.google.com/p/foma/

Features

  • Xerox-compatible regular expression and scripting syntax (xfst/lexc)
  • Separate C API for constructing and handling automata
  • Import/export from Xerox/AT&T/OpenFST tools
  • Separate utility (flookup) for applying automata with various strategies
  • Supports flag diacritics
  • Contains functions for constraining reduplication (_eq())
  • Supports first-order regular logic expressions
  • Pre-built binaries available for Windows/Linux/OSX (see Downloads page)

Installation Steps:

  1. Open Terminal.
  2. Run following command to install brew
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Now using brew Install foma
    brew install foma

foma is ready to use now!