name:                maxent-learner-hw
version:             0.1.0
synopsis:            Hayes and Wilson's maxent learning algorithm for phonotactic grammars.
description:         Provides an implementation of Hayes and Wilson's machine learning algorithm for maxent phonotactic grammars, as both a command-line tool and a function library.  The learner takes in a lexicon and produces a list of weighted constraints penalizing certain sound sequemces in an attempt to produce a probability distribution of words which maximizes the probability of the lexicon. Once such a set of constraints is generated, it can be tested by using it to generate random pronounceable text.
                     .
                     This package is an implementation of the algorithm described in Hayes and Wilson's paper /A Maximum Entropy Model of Phonotactics and Phonotactic Learning/ (available at <http://www.linguistics.ucla.edu/people/hayes/Phonotactics/Index.htm>).
homepage:            https://github.com/george-steel/maxent-learner
license:             GPL
license-file:        LICENSE
author:              George Steel
maintainer:          george.steel@gmail.com
copyright:           2016 George Steel and Peter Jurgec
category:            Linguistics
build-type:          Simple
extra-source-files:  README.md, ffisrc/packeddfa.c, app/ft-ipa.csv
cabal-version:       >=1.10

library
  cc-options: -Wall -std=c11
  hs-source-dirs:      src
  exposed-modules:     Text.PhonotacticLearner.Util.Ring
                     , Text.PhonotacticLearner.Util.Probability
                     , Text.PhonotacticLearner.Util.ConjugateGradient
                     , Text.PhonotacticLearner.DFST
                     , Text.PhonotacticLearner.MaxentGrammar
                     , Text.PhonotacticLearner.PhonotacticConstraints
                     , Text.PhonotacticLearner.PhonotacticConstraints.Generators
                     , Text.PhonotacticLearner
  build-depends:       base >= 4.7 && < 5
                     , deepseq == 1.4.*
                     , vector >= 0.10
                     , mtl >= 2.1 && < 2.3
                     , containers == 0.5.*
                     , random == 1.1
                     , array >= 0.3 && < 0.6
                     , text == 1.2.*
                     , csv == 0.1.*
  default-language:    Haskell2010
  c-sources:           ffisrc/packeddfa.c

executable phono-learner-hw
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base >= 4.7 && < 5
                     , maxent-learner-hw
                     , optparse-applicative
                     , containers == 0.5.*
                     , text == 1.2.*
                     , file-embed
                     , parallel == 3.2.*
                     , deepseq == 1.4.*
                     , array >= 0.3 && < 0.6
                     , mtl >= 2.1 && < 2.3
                     , random == 1.1
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/githubuser/maxent-learner-hw