Parser

from lambeq import BobcatParser

parser = BobcatParser()
diagram = parser.sentence2diagram('This is a test sentence')
diagram.draw()
../_images/9d5c7381fd78f124ccb747f2c78f064fb3e91d85feebe7049aa24f940f477fb8.png
from lambeq.backend import draw

draw(diagram)
../_images/77b29fc8a3efd29b56aad238259bda9561f72da93ad8762aedd8665b4447b55b.png