Home /
Expert Answers /
Other Math /
nbsp-nlp-perplexity-bigram-trigram-a-form-a-bi-gram-and-a-trigram-model-for-34-langle-mathr-pa841
(Solved):
NLP perplexity bigram trigram
a) Form a Bi gram and a trigram model for " \( \langle\mathr ...
NLP perplexity bigram trigram
a) Form a Bi gram and a trigram model for " \( \langle\mathrm{S}\rangle \) I like NLP \( \langle/ \mathrm{s}\rangle " \) and calculate the perplexity using the following set of sentences as the corpus. \begin{tabular}{l} \( \langle s>| \) am Henry \( \langle/ s\rangle \) \\ \( \langle s\rangle \mid \) Like NLP \( \langle/ s\rangle \) \\ \( \langle\mathrm{s}\rangle \) Do Henry Like NLP \( \langle/ s\rangle \) \\ \( \langle s\rangle \) Henry I am \( \langle/ s\rangle \) \\ \( \langle s\rangle \) Do I like Henry \( \langle/ s\rangle \) \\ \( \langle s\rangle \) Do I like NLP \( \langle/ s\rangle \) \\ \( \langle s\rangle \) do like NLP \( \langle/ s\rangle \) \\ \hline \end{tabular}