If you want an LM built over character sequences, you simply have to break your input stream into whitespace separated letters. Note that there are many nuances here - E.g. Should you have new word boundary characters (analogous to <s> and </s>) or simply have one word per line, have the fixed vocabulary (the alphabet + any meta chars you want) given up front or learned at build-time, how you handle special characters and punctuations, etc.<div>

<br></div><div>Assuming English text, the following Unix command can get you started. The <font face="courier new, monospace">tr </font>command breaks the stream into one word per line and <font face="courier new, monospace">sed</font> inserts a space after every letter on each line.</div>

<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">cat corpus.txt | tr ' ' '\012' | sed 's/\(.\)/\1 /g' | ngram-count ...</font></div>

</blockquote><div><br></div><div>HTH</div><div><br></div><div>&<br><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 8:56 AM, Nutthamon <span dir="ltr"><<a href="mailto:dcherubangel@gmail.com" target="_blank">dcherubangel@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre style="white-space:pre-wrap">Hello,

I am new to language modeling and SRILM toolkit.</pre><pre style="white-space:pre-wrap">Is this toolkit can generate language model in character level? If can do that, what is a command for do that i can't find it.And please give example to me.</pre>


<pre style="white-space:pre-wrap">Many thank in advance</pre><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><br></div>
</font></span></div>
<br>_______________________________________________<br>
SRILM-User site list<br>
<a href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a><br>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a><br></blockquote></div><br></div>