# TextAnalysis 0.7.2 - where to find SentimentAnalyzer()

**URL:** <https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612>\
**Category:** Machine Learning\
**Created:** [March 20, 2021, 4:41pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612 "2021-03-20T16:41:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![julio.ca2020](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Post date:** [March 20, 2021, 4:41pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612/1 "2021-03-20T16:41:44Z")

</div>

In the documentation for TextAnalysis 0.7.2, the function SentimentAnalyzer() is available. I do not find in the code. Where is it? What am I doing wrong?

[https://juliahub.com/docs/TextAnalysis/5Mwet/0.7.2/features/](https://juliahub.com/docs/TextAnalysis/5Mwet/0.7.2/features/)

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 20, 2021, 6:24pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612/2 "2021-03-20T18:24:29Z")

</div>

I don’t know why this is the case, but SentimentAnalyzer() is part of [GitHub - JuliaText/TextModels.jl: Neural Network based models for Natural Language Processing](https://github.com/JuliaText/TextModels.jl)

```julia
julia> using TextModels
[Info: Precompiling TextModels [77b9cbda-2a23-51df-82a3-24144d1cd378]
┌ Warning: `@get!(dict, key, default)` at C:\Users\oheil\.julia\packages\Requires\9Jse8\src\require.jl:11 is deprecated, use `get!(()->default, dict, key)` instead.
└ @ Base deprecated.jl:204
┌ Warning: CUDNN is not installed, some functionality will not be available.
└ @ Flux.CUDA C:\Users\oheil\.julia\packages\Flux\dkJUV\src\cuda\cuda.jl:9

julia> @which SentimentAnalyzer()
SentimentAnalyzer() in TextModels at C:\Users\oheil\.julia\packages\TextModels\VlYA0\src\sentiment.jl:72

```

I would say, these packages and their documentation need some cleaning.

---

<div class="post-metadata">

**Author:** ![julio.ca2020](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Post date:** [March 20, 2021, 7:26pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612/3 "2021-03-20T19:26:54Z")

</div>

Thank you… It makes sense. However, the TextModels’s documentation [GitHub - JuliaText/TextModels.jl: Neural Network based models for Natural Language Processing](https://github.com/JuliaText/TextModels.jl) points to the TextAnalysis.jl’s documentation !!! Definitely. These packages need some cleaning.

---

<div class="post-metadata">

**Author:** ![julio.ca2020](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Post date:** [March 20, 2021, 7:29pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612/4 "2021-03-20T19:29:00Z")

</div>

When installing TextModels in the last julia version 1.5.4…

```julia
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package StatsBase [2913bbd2]:
 StatsBase [2913bbd2] log:
 ├─possible versions are: [0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0-0.28.1, 0.29.0, 0.30.0, 0.31.0, 0.32.0-0.32.2, 0.33.0-0.33.4] or uninstalled
 ├─restricted by compatibility requirements with Plots [91a5bcdd] to versions: [0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0-0.28.1, 0.29.0, 0.30.0, 0.31.0, 0.32.0-0.32.2, 0.33.0-0.33.4]
 │ └─Plots [91a5bcdd] log:
 │ ├─possible versions are: [0.12.1-0.12.4, 0.13.0-0.13.1, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0, 0.17.0-0.17.4, 0.18.0, 0.19.0-0.19.3, 0.20.0-0.20.6, 0.21.0, 0.22.0-0.22.5, 0.23.0-0.23.2, 0.24.0, 0.25.0-0.25.3, 0.26.0-0.26.3, 0.27.0-0.27.1, 0.28.0-0.28.4, 0.29.0-0.29.9, 1.0.0-1.0.14, 1.1.0-1.1.4, 1.2.0-1.2.6, 1.3.0-1.3.7, 1.4.0-1.4.4, 1.5.0-1.5.9, 1.6.0-1.6.12, 1.7.0-1.7.3, 1.8.0-1.8.1, 1.9.0-1.9.1, 1.10.0-1.10.6, 1.11.0] or uninstalled
 │ └─restricted to versions * by an explicit requirement, leaving only versions [0.12.1-0.12.4, 0.13.0-0.13.1, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0, 0.17.0-0.17.4, 0.18.0, 0.19.0-0.19.3, 0.20.0-0.20.6, 0.21.0, 0.22.0-0.22.5, 0.23.0-0.23.2, 0.24.0, 0.25.0-0.25.3, 0.26.0-0.26.3, 0.27.0-0.27.1, 0.28.0-0.28.4, 0.29.0-0.29.9, 1.0.0-1.0.14, 1.1.0-1.1.4, 1.2.0-1.2.6, 1.3.0-1.3.7, 1.4.0-1.4.4, 1.5.0-1.5.9, 1.6.0-1.6.12, 1.7.0-1.7.3, 1.8.0-1.8.1, 1.9.0-1.9.1, 1.10.0-1.10.6, 1.11.0]
 ├─restricted by compatibility requirements with TextModels [77b9cbda] to versions: 0.33.0-0.33.4
 │ └─TextModels [77b9cbda] log:
 │ ├─possible versions are: 0.1.0 or uninstalled
 │ └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0
 └─restricted by compatibility requirements with JuliaDB [a93385a2] to versions: [0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0-0.28.1, 0.29.0, 0.30.0, 0.31.0, 0.32.0-0.32.2] — no versions left
   └─JuliaDB [a93385a2] log:
     ├─possible versions are: [0.9.0, 0.10.0, 0.11.0-0.11.2, 0.12.0, 0.13.0-0.13.1] or uninstalled
     └─restricted to versions * by an explicit requirement, leaving only versions [0.9.0, 0.10.0, 0.11.0-0.11.2, 0.12.0, 0.13.0-0.13.1]

```

---

<div class="post-metadata">

**Author:** ![julio.ca2020](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Post date:** [March 20, 2021, 7:29pm UTC](https://discourse.julialang.org/t/textanalysis-0-7-2-where-to-find-sentimentanalyzer/57612/5 "2021-03-20T19:29:53Z")

</div>

It seems to be all needs a bit of rework…
