Add support for Python 3.10.
Unify class hierarchies for parsers and readers:
CCGParseris now a subclass of
Readerand placed in the common package
text2diagram. The old packages
ccg2discocatare no longer available. Compatibility problems with previous versions should be minimal, since from Release 0.2.0 and onwards all
lambeqclasses can be imported from the global namespace.
CurryRewriteRule, which uses map-state duality in order to remove adjoint types from the boxes of a diagram. When used in conjunction with
normal_form(), this removes cups from the diagram, eliminating post-selection.
The Bobcat parser now updates automatically when new versions are made available online.
Update grammar file of Bobcat parser to avoid problems with conflicting unary rules.
Allow customising available root categories for the parser when using the command-line interface.
A new state-of-the-art CCG parser based on [SC2021], fully integrated with
lambeq, which replaces depccg as the default parser of the toolkit. The new Bobcat parser has better performance, simplifies installation, and provides compatibility with Windows (which was not supported due to a depccg conflict). depccg is still supported as an alternative external dependency.
trainingpackage, providing a selection of trainers, models, and optimizers that greatly simplify supervised training for most of
lambeq’s use cases, classical and quantum. The new package adds several new features to
lambeq, such as the ability to save to and restore models from checkpoints.
trainingpackage uses DisCoPy’s tensor network capability to contract tensor diagrams efficiently. In particular, DisCoPy 0.4.1’s new unitary and density matrix simulators result in substantially faster training speeds compared to the previous version.
A command-line interface, which provides most of
lambeq’s functionality from the command line. For example,
lambeqcan now be used as a standard command-line pregroup parser.
A web parser class that can send parsing queries to an online API, so that local installation of a parser is not strictly necessary anymore. The web parser is particularly helpful for testing purposes, interactive usage or when a local parser is unavailable, but should not be used for serious experiments.
pregroupspackage that provides methods for easy creation of pregroup diagrams, removal of cups, and printing of diagrams in text form (i.e. in a terminal).
TreeReaderclass that exploits the biclosed structure of CCG grammatical derivations.
Tokenisation features have been added in all parsers and readers.
Additional generator methods and minor improvements for the
Improved and more detailed package structure.
Most classes and functions can now be imported from
lambeqdirectly, instead of having to import from the sub-packages.
tensormodules have been combined into an
lambeq.ansatzpackage. (However, as mentioned above, the classes and functions they define can now be imported directly from
lambeqand should continue to do so in future releases.)
Improved documentation and additional tutorials.
Add URLs to the setup file.
Fix logo link in README.
Fix missing version when building docs in GitHub action.
Fix typo in the
descriptionkeyword of the setup file.
Update install script to use PyPI package.
Add badges and documentation link to the README file.
lambeqlogo and documentation link to the GitHub repository.
Allow documentation to get the package version automatically.
Add keywords and classifiers to the setup file.
lambeq.circuitmodule to top-level
Fix references to license file.
The initial release of
lambeq, containing a lot of core material. Main features:
Converting sentences to string diagrams.
CCG parsing, including reading from CCGBank.
Support for the
DisCoCat, bag-of-words, and word-sequence compositional models.
Support for adding new compositional schemes.
Rewriting of diagrams.
Ansätze for circuits and tensors, including various forms of matrix product states.
Support for JAX and PyTorch integration.
Example notebooks and documentation.