Skip to content

0.2.2

Compare
Choose a tag to compare
@y-richie-y y-richie-y released this 24 Apr 12:19
· 57 commits to main since this release

Added:

  • Add support for Python 3.10.
  • Unify class hierarchies for parsers and readers: CCGParser is now a subclass of Reader and placed in the common package text2diagram. The old packages reader and ccg2discocat are no longer available. Compatibility problems with previous versions should be minimal, since from Release 0.2.0 and onwards all lambeq classes can be imported from the global namespace.
  • Add CurryRewriteRule, which uses map-state duality in order to remove adjoint types from the boxes of a diagram. When used in conjunction with discopy.rigid.Diagram.normal_form(), this removes cups from the diagram, eliminating post-selection.
  • The Bobcat parser now updates automatically when new versions are made available online.
  • Allow customising available root categories for the parser when using the command-line interface.

Fixed:

  • Update grammar file of Bobcat parser to avoid problems with conflicting unary rules.