Skip to content

Commit

Permalink
Merge pull request #13 from asmith26/asmith26-patch-1
Browse files Browse the repository at this point in the history
Tidy README.md, bump version
  • Loading branch information
asmith26 authored Feb 13, 2023
2 parents e3d5084 + c296d3a commit ccac0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Or via conda: `$ conda install -c conda-forge vose-alias-method`


## Depends on:
- The Python Standard Library, https://docs.python.org/2/library/, https://docs.python.org/3/library/
- Python versions 2.7, 3.6 (and probably much more - tested on Python 2.7.11, 3.6.6)
- The Python Standard Library https://docs.python.org/3/library/)

## Example Usage
In a python shell:
Expand Down Expand Up @@ -49,9 +48,7 @@ thing
solemn
```

[Note, this is intended to illustrate how Vose's alias method could be used. Thus I have not included any preprocessing steps that would make the language model more realistic; for example, we could add handling of upper vs. lower case words (so that e.g. "The" and "the" are not considered distinct), as well as handling of punctuation (e.g. so "the" and "the." are considered the same).

Likewise, should the text(s) you wish to sample from be particularly large, you may wish to integrate my [Hadoop MapReduce job for counting the word frequencies of text file(s)](https://github.com/asmith26/python-mapreduce-examples/tree/master/word_frequencies).]
[Note, this is intended to illustrate how Vose's alias method could be used. Thus I have not included any preprocessing steps that would make the language model more realistic; for example, we could add handling of upper vs. lower case words (so that e.g. "The" and "the" are not considered distinct), as well as handling of punctuation (e.g. so "the" and "the." are considered the same).]


## Tests
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_suite():

setup(
name='Vose-Alias-Method',
version='1.1.2',
version='1.2.0',
description=('Python implementation of Vose\'s alias method, an efficient algorithm for sampling from a discrete probability distribution.'),
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -35,7 +35,6 @@ def test_suite():
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6'
],
entry_points={
Expand Down

0 comments on commit ccac0a0

Please sign in to comment.