Releases: bdvllrs/attributes-to-language
Releases · bdvllrs/attributes-to-language
v0.4.0
v0.3.0
Changes:
- a new optional
choices
parameter is available for all writers and Composer. It allows to manually set the choices instead of randomly picking variants; - the writers and Composer now returns the choices used for generation in addition to the generated text.
Breaking changes:
Before
writer_text = writer(val="test")
final_text = composer({"shape": 1, ...})
After
writer_text, writer_choices = writer(val="test")
final_text, choices = composer({"shape": 1, ...})
v0.2.0
Changes:
- variants can add attributes or other variants. They will be resolved recursively;
- variants can be callable functions. In that case, the callable will receive an
attributes
dictionary with the writer attributes; - the structure can have groups delimited by < and > that will be randomly permuted;
See examples in the examples
folder.
v0.1.1
Initial release v0.1.0
Initial commit