# TextAnalysis.jl statistical language models not defined

**URL:** https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928
**Category:** New to Julia
**Tags:** package
**Created:** [October 7, 2020, 12:43pm UTC](https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928 "2020-10-07T12:43:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Fenmore](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Fenmore](https://discourse.julialang.org/u/Fenmore)
#### Post date: [October 7, 2020, 12:43pm UTC](https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928/1 "2020-10-07T12:43:44Z")

</div>

Hello,  
I am quite new here, hopefully I didn’t miss something.

I would like to use the TextAnalysis package for some language modeling like explained here [Statistical Language Model - TextAnalysis](https://juliatext.github.io/TextAnalysis.jl/dev/LM/)  
My TextAnalysis version is 0.7.0 (the one from master branch)

When even trying to use the most simply version

> using TextAnalysis
> 
> voc = [“a”, “word”]
> 
> mle = MLE(voc)

The result:

> UndefVarError: MLE not defined
> 
> in include\_string at base\loading.jl:1088
> 
> in top-level scope at shajdvfkhsd.jl:5

This happens for all API calls.

I appreciate any help, thank you.

---

<div class="post-metadata">

### Author: ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)
#### Post date: [October 7, 2020, 1:17pm UTC](https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928/2 "2020-10-07T13:17:12Z")

</div>

Did you check if `MLE` is exported? In other words, do the code work if you use `TextAnalysis.MLE` instead? Otherwise, maybe the documentation you are looking at is for a different version than you are using.

---

<div class="post-metadata">

### Author: ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)
#### Post date: [October 7, 2020, 1:47pm UTC](https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928/3 "2020-10-07T13:47:17Z")

</div>

I’m in the middle of a major refactoring of the TextAnalysis codebase. Please check back in a few days.

In the meantime, you should use the master of TextAnalysis, but note that things might change from under you pretty quickly.

---

<div class="post-metadata">

### Author: ![Fenmore](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Fenmore](https://discourse.julialang.org/u/Fenmore)
#### Post date: [October 7, 2020, 2:15pm UTC](https://discourse.julialang.org/t/textanalysis-jl-statistical-language-models-not-defined/47928/4 "2020-10-07T14:15:09Z")

</div>

It doesn’t work with TextAnalysis.MLE(voc), if I understood that correctly. I will await the update from @avik then. I am already using the master.

Thanks for the fast replies.
