SWI-Prolog Did You Know Did you know? You can train markov chains with BIMS Search Documentation:
PL_release_stream()