Recent Releases of lexicalrichness
lexicalrichness - v0.5.1
What's Changed
- Pass through
within_sampleparameter invocd(fixes #80, @xhulianoThe1) - Fix CTTR equation (fixes #77)
- Minor doc fixes
- Fixed path to
vocdimage
LexicalRichness
To install: pip install lexicalrichness
Example usage ```python from lexicalrichness import LexicalRichness
text example
text = """Measure of textual lexical diversity, computed as the mean length of sequential words in a text that maintains a minimum threshold TTR score.
Iterates over words until TTR scores falls below a threshold, then increase factor
counter by 1 and start over. McCarthy and Jarvis (2010, pg. 385) recommends a factor
threshold in the range of [0.660, 0.750].
(McCarthy 2005, McCarthy and Jarvis 2010)"""
lex = LexicalRichness(text)
lex.vocdfig(
ntokens=50, # Maximum number for the token/word size in the random samplings
withinsample=100, # Number of samples
seed=42, # Seed for reproducibility
)
```

Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.4.1...v0.5.1
- Python
Published by LSYS almost 3 years ago
lexicalrichness - v0.5.0
What's Changed
- Add new measures #65
- Yule's K
- Yule's I
- Herdan's Vm
- Simpson's D
- Add new measures to example notebook (example.ipynb) #70
- Add new measures to docs #71
- Add the example.ipynb to the docs #72
- Tidy up imports using isort #69
LexicalRichness
To install: pip install lexicalrichness
Example usage ```python from lexicalrichness import LexicalRichness
text example
text = """Measure of textual lexical diversity, computed as the mean length of sequential words in a text that maintains a minimum threshold TTR score.
Iterates over words until TTR scores falls below a threshold, then increase factor
counter by 1 and start over. McCarthy and Jarvis (2010, pg. 385) recommends a factor
threshold in the range of [0.660, 0.750].
(McCarthy 2005, McCarthy and Jarvis 2010)"""
lex = LexicalRichness(text)
lex.vocdfig(
ntokens=50, # Maximum number for the token/word size in the random samplings
withinsample=100, # Number of samples
seed=42, # Seed for reproducibility
)
```

Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.4.1...v0.5.0
- Python
Published by LSYS about 3 years ago
lexicalrichness - v0.4.1
What's Changed
- Update README.rst by @ekbrown in https://github.com/LSYS/LexicalRichness/pull/62
- @LSYS Add useful links (#61)
- @LSYS Add links to docs in Section 7 of
README.rstto reference details in docs (#64) - @LSYS Remove LGTM (#66)
- @LSYS Fix Sphinx autodoc on RTD (#67)
New Contributors
- @ekbrown made their first contribution in https://github.com/LSYS/LexicalRichness/pull/62
LexicalRichness
To install: pip install lexicalrichness
Example usage ```python from lexicalrichness import LexicalRichness
text example
text = """Measure of textual lexical diversity, computed as the mean length of sequential words in a text that maintains a minimum threshold TTR score.
Iterates over words until TTR scores falls below a threshold, then increase factor
counter by 1 and start over. McCarthy and Jarvis (2010, pg. 385) recommends a factor
threshold in the range of [0.660, 0.750].
(McCarthy 2005, McCarthy and Jarvis 2010)"""
lex = LexicalRichness(text)
lex.vocdfig(
ntokens=50, # Maximum number for the token/word size in the random samplings
withinsample=100, # Number of samples
seed=42, # Seed for reproducibility
)
```

GitHub: https://github.com/LSYS/LexicalRichness Example notebook: https://nbviewer.org/github/LSYS/LexicalRichness/blob/master/docs/example.ipynb Docs: http://lexicalrichness.readthedocs.io/
Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.3.0...v0.4.0
- Python
Published by LSYS over 3 years ago
lexicalrichness - v0.4.0
What's Changed
- Add utility to plot empirical voc-D curve (https://github.com/LSYS/LexicalRichness/issues/60)
matplotlibis now a requirement (fromsetup.py)- Update docs
To install: pip install lexicalrichness
Example usage ```python from lexicalrichness import LexicalRichness
text example
text = """Measure of textual lexical diversity, computed as the mean length of sequential words in a text that maintains a minimum threshold TTR score.
Iterates over words until TTR scores falls below a threshold, then increase factor
counter by 1 and start over. McCarthy and Jarvis (2010, pg. 385) recommends a factor
threshold in the range of [0.660, 0.750].
(McCarthy 2005, McCarthy and Jarvis 2010)"""
lex = LexicalRichness(text)
lex.vocdfig(
ntokens=50, # Maximum number for the token/word size in the random samplings
withinsample=100, # Number of samples
seed=42, # Seed for reproducibility
)
```

GitHub: https://github.com/LSYS/LexicalRichness Example notebook: https://nbviewer.org/github/LSYS/LexicalRichness/blob/master/docs/example.ipynb Docs: https://www.lucasshen.com/software/lexicalrichness/doc
Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.3.0...v0.4.0
- Python
Published by LSYS over 3 years ago
lexicalrichness - v0.3.1
What's Changed
- Add workflow to test package from notebook by @LSYS in https://github.com/LSYS/LexicalRichness/pull/54
- Add details of measures into docs by @LSYS in https://github.com/LSYS/LexicalRichness/pull/55
- Fix path to images in docs by @LSYS in https://github.com/LSYS/LexicalRichness/pull/56
Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.3.0...v0.3.1
- Python
Published by LSYS over 3 years ago
lexicalrichness - LexicalRichness v0.3.0
What's Changed
- Disallow string input if
tokenizer=None (closes #12) by @LSYS in https://github.com/LSYS/LexicalRichness/pull/38 - fix tokenizing of lists by @LSYS in https://github.com/LSYS/LexicalRichness/pull/39
- add .gitignore and make by @LSYS in https://github.com/LSYS/LexicalRichness/pull/41
- Linkify references and add papers in readme #43 solved by @Sreetama2001 in https://github.com/LSYS/LexicalRichness/pull/46
- Added an example use case of the LexicalRichness tool by @g-hurst in https://github.com/LSYS/LexicalRichness/pull/48
- Add voc-D measure (#42) by @LSYS in https://github.com/LSYS/LexicalRichness/pull/49
- Update docs by @LSYS in https://github.com/LSYS/LexicalRichness/pull/51
New Contributors
- @Sreetama2001 made their first contribution in https://github.com/LSYS/LexicalRichness/pull/46
- @g-hurst made their first contribution in https://github.com/LSYS/LexicalRichness/pull/48
Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.2.0...v0.3.0
- Python
Published by LSYS over 3 years ago
lexicalrichness - bump to v0.2.0
Fix inputs with strings and lists.
- Python
Published by LSYS almost 4 years ago
lexicalrichness - Fix-#12
Fix gotcha where str input is still allowed when tokenizer=None (#38).
- Python
Published by LSYS almost 4 years ago
lexicalrichness - Fixes #26
Fixes packaging error (#26 )
- Python
Published by LSYS almost 4 years ago
lexicalrichness - v0.1.5
- minor unit test fix
- for zenodo doi
- Python
Published by LSYS almost 4 years ago
lexicalrichness - LexicalRichness v0.1.4
What's Changed
- Make preprocessing and tokenization optional. by @davidlesieur in https://github.com/LSYS/LexicalRichness/pull/3
- Remove print statements that break unittest's normal reporting by @davidlesieur in https://github.com/LSYS/LexicalRichness/pull/4
- Add textblob in setup.py as requirements by @cbedetti in https://github.com/LSYS/LexicalRichness/pull/6
- Bump pip from 9.0.1 to 19.2 by @dependabot in https://github.com/LSYS/LexicalRichness/pull/7
New Contributors
- @davidlesieur made their first contribution in https://github.com/LSYS/LexicalRichness/pull/3
- @cbedetti made their first contribution in https://github.com/LSYS/LexicalRichness/pull/6
- @dependabot made their first contribution in https://github.com/LSYS/LexicalRichness/pull/7
Full Changelog: https://github.com/LSYS/LexicalRichness/compare/0.1.3...0.1.4
- Python
Published by LSYS over 4 years ago