CQCL / lambeq

A high-level Python library for Quantum Natural Language Processing
https://docs.quantinuum.com/lambeq/
Apache License 2.0
455 stars 111 forks source link

Unitary Fund 2023 : UNK Tokenizer #95

Closed ACE07-Sev closed 1 year ago

ACE07-Sev commented 1 year ago

Here is my method which returns a Functor for applying the UNK tokenization. I have written the Class version of it as well, but since it was a bit tricky to test for now I just used this.

To use it, one has to call the function, pass the parameters, and that is your functor. Then you can apply that functor to any diagram.

closes #84.