% Example laughing machine

% regular states
s(s1).
s(s2).


% conditional state transition probability
% s0 = start state
% se = end state

% a(From, To, Prob)
a(s0, s1, 1.0).
a(s1, s1, 0.6).
a(s1, s2, 0.2).
a(s1, se, 0.2).
a(s2, s1, 0.4).
a(s2, s2, 0.4).
a(s2, se, 0.2).


% conditional symbol emission probability
% s0 = start state
% se = end state

% b(State, Symbol, Prob)
b(s1, h, 0.6).
b(s1, a, 0.1).
b(s1, !, 0.3).
b(s2, h, 0.1).
b(s2, a, 0.7).
b(s2, !, 0.2).

