<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12/17/2013 2:58 AM, Laatar Rim
wrote:<br>
</div>
<blockquote
cite="mid:1387277889.14584.YahooMailNeo@web173202.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div><span>Dear Andreas , </span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>First , sorry to
disturb you by my stupid questions , but i still have an
ambiguous about class based model and i will be very
grateful if you can help me.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>There are my
questions: <br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span class="" id="yiv1723759613result_box" lang="en"><span
class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39">1- The
file : class format ( class p word1 word2 ...) , it
supports only a simple words or it can support word such
as : <br clear="none">
good-morning , thank-you ...<br clear="none">
</span></span></div>
</div>
</blockquote>
<br>
The expansion of a class can be one or more words, e.g.,<br>
<br>
CITY 0.123 New York<br>
<br>
<blockquote
cite="mid:1387277889.14584.YahooMailNeo@web173202.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span class=""
id="yiv1723759613result_box" lang="en"><span class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39"><br
clear="none">
2-Yhe class model can have a mixte of word and class
definition ?<br clear="none">
</span></span></div>
</div>
</blockquote>
<br>
Yes. The LM could have an ngram "the CITY" (see above).<br>
<br>
<blockquote
cite="mid:1387277889.14584.YahooMailNeo@web173202.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span class=""
id="yiv1723759613result_box" lang="en"><span class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39"><br
clear="none">
3- You say that </span></span><span class=""
id="yiv1723759613result_box" lang="en"><span class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39">A word
label simply represents a class consisting only of the
word itself , but i don't have class that contains one
word , and is that means my model is wrong ?</span></span></div>
</div>
</blockquote>
<br>
what is meant is that a class ngrams with a mix of words and class
labels is equivalent to class ngram model that has only class-based
ngrams, where the word labels are replaced by classes that have only
that one word as their membership.<br>
<br>
<blockquote
cite="mid:1387277889.14584.YahooMailNeo@web173202.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span class=""
id="yiv1723759613result_box" lang="en"><span class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39"><br>
</span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span class=""
id="yiv1723759613result_box" lang="en"><span class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39">4- To
execute this command :<span style="font-weight: bold;">
replace-words-with-classes
classes='/home/hp/Documents/SRILM/Replace_word_with_class_SRILM'
'/home/hp/Documents/SRILM/<span style="color: rgb(156,
0, 92);"><span>trainingData.txt</span>'</span> >
output_text_with_classes_2</span> : </span></span></div>
<div style="color: rgb(156, 0, 92); font-size: 16px;
font-family: times new roman,new york,times,serif;
background-color: transparent; font-style: normal;"><br>
<span class="" id="yiv1723759613result_box" lang="en"><span
class=""
id="yiv1723759613yui_3_13_0_ym1_6_1387016389119_39"><span
style="font-weight: bold;">trainingData.txt</span> </span></span><span
id="result_box" class="" lang="en"><span class="">must
continue</span> <span class="">punctuation marks</span> <span
class="">or only</span> <span class="">phrases.</span></span></div>
</div>
</blockquote>
It depends on whether your ngram model is supposed to include
punctuation or not. The software doesn't care whether you have
punctuation, it treats period, comma, etc. as word strings just like
any other. It depends on your application (the program that uses
the LM) whether punctuation is appropriate or not.<br>
<br>
Andreas<br>
<br>
</body>
</html>