[Biojava-l] Tokenization

Salman Tahir salmantahir1 at gmail.com
Mon Feb 12 10:41:40 UTC 2007


I've created a custom alphabet and I would like to use it to parse a file.
After defining the symbols in the alphabet I do the following:

SymbolTokenization parser = alpha.getTokenization("token");

('alpha being the custom alphabet'). However I get the following error:

"BioException: There is no tokenization 'token' defined in alphabet Variable

I understand this to mean that I have to populate the new tokenization
appropriately because this is a new alphabet. However, I cannot find any
examples that show how to achieve this. Can anyone help?

- Salman

More information about the Biojava-l mailing list