Releases: andrlik/django-markov
Releases · andrlik/django-markov
0.3.1
0.3.0
0.2.4
0.2.3
Full Changelog: 0.2.2...0.2.3
- Adds a cached property,
is_compiled_model
toMarkovTextModel
so a user doesn't need to know markovify internals to check. - Adds a possible exception
MarkovEmptyError
raised byis_compiled_model
if the model does not yet have any data.
0.2.2
Full Changelog: 0.2.1...0.2.2
- Fixes issue where
CORPUS_TEXT_MAX_CHARS_LIMIT
is not set in a more graceful manner, falling back to a default value of 0 (no limit).
0.2.1
0.2.0
Full Changelog: 0.1.1...0.2.0
- Improves sentence generation performance by loading the text model into a cached property.
- Cached properties are cleared when calling
refresh_from_db
.
- Cached properties are cleared when calling
- Enables storing non-compiled models to the database for use in combining multiple models into a single chain.
- Adds boolean settings parameter
MARKOV_STORE_COMPILED_MODELS
to set default behavior. - This can be overridden when calling
update_model_from_corpus
using thestore_compiled
kwarg. - Adds ability to auto-detect if a loaded model is compiled or not, and will automatically compile for sentence generation if needed.
- Adds boolean settings parameter
- Adds support for the
tries
directive when callinggenerate_sentence
. - Adds support for combining multiple models into one via
MarkovTextModel.combine_models