An open API service indexing awesome lists of open source software.

https://github.com/akabe/ocaml-crf

A simple library for conditional random field (CRF) in OCaml
https://github.com/akabe/ocaml-crf

Last synced: 8 months ago
JSON representation

A simple library for conditional random field (CRF) in OCaml

Awesome Lists containing this project

README

          

OCaml-CRF
=========

OCaml-CRF is a simple library for conditional random field in
[OCaml](http://ocaml.org/).

*Conditional random field* (CRF) is a graphical model widely used in natural language
processing, image processing, bioinformatics, etc.
This library provides several functions for *cyclic* CRF:

- Approximation of conditional probabilities, likelihood, and
L2-regularized posterior by Gibbs sampling
- Inference of output labels by simulated annealing

Install
-------

### Dependencies

OCaml-CRF depends on [SLAP](http://akabe.github.io/slap/) and
[GSL-OCaml](https://github.com/mmottl/gsl-ocaml).

```
$ opam install slap gsl
```

### Install OCaml-CRF

```
$ ./configure
$ make
$ make install
```