Chapter 3. Input/Output

Table of Contents

3.1. Observation sequences
3.2. HMMs

3.1. Observation sequences

Observation sequences and sets of observation sequences can be read from a file. This file must have the following format:

obs11 ; obs12 ; obs13 ;
obs21 ; obs22 ; obs23 ; obs24;

Tab and spaces are not significant. C-like comments are allowed. Each line holds exactly one sequence and can be CR/LF or CR terminated. Thus, in the above example, the obs1x observations build the first sequence [4]

The observations are read using an ObservationReader class. For example, the format of an ObservationInteger is a simple number (a string made of digits only).

Supported observation types are integer, reals and real vectors.

It is suggested to add the extension ``.seq'' to Jahmm observation sequence files.



[4] See this example for an example of data file reading.