Interface ObservationTableReader<I,D>
-
- Type Parameters:
I
- input symbol classD
- observation (output) domain class
- All Known Implementing Classes:
SuffixASCIIReader
public interface ObservationTableReader<I,D>
Reads anObservationTable
from a string source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObservationTable<I,D>
read(String source, Alphabet<I> alphabet)
Reads the string representation of an observation table and returns an implementation ofObservationTable
which allows access to short and long prefixes as well as suffixes.
-
-
-
Method Detail
-
read
ObservationTable<I,D> read(String source, Alphabet<I> alphabet)
Reads the string representation of an observation table and returns an implementation ofObservationTable
which allows access to short and long prefixes as well as suffixes.- Parameters:
source
- The string representation to read, must not benull
.alphabet
- The learning alphabet containing the symbols used, must not benull
.- Returns:
- an implementation of
ObservationTable
which allows at lease access toObservationTable.getSuffixes()
,ObservationTable.getShortPrefixes()
, andObservationTable.getLongPrefixes()
. Will never benull
.
-
-