Skip to content

About

non-parametric Bayesian text segmenter implemented in Perl

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obsolete Perl code for non-parametric Bayesian text segmentation

This repository contains Perl code I no longer use, including

  • a group of Dirichlet/Pitman-Yor processes,
  • a character-bigram-based zerogram word model, and
  • unigram/bigram word models with token-based, block and type-based sampling.

Requirements

The following CPAN modules are required:

  • Math::GSL
  • Math::Cephes
  • Regexp::Assemble
  • Carp::Assert

Run a sample script

% perl -Ilib scripts/sample-token.pl --seed=1 --type=Dirichlet --input=samples/alice.unseg --iter=100 --nested --debug --randInit=0.1

About

non-parametric Bayesian text segmenter implemented in Perl

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages