-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Dimitri Kartsaklis <[email protected]>
- Loading branch information
Showing
110 changed files
with
24 additions
and
15,514 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
[submodule "docs/quantinuum-sphinx"] | ||
path = docs/quantinuum-sphinx | ||
url = https://github.com/CQCL/quantinuum-sphinx.git | ||
branch = dist | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# lambeq | ||
|
||
[![lambeq logo](https://cqcl.github.io/lambeq/_static/lambeq_logo.png)](//cqcl.github.io/lambeq) | ||
[![lambeq logo](https://cqcl.github.io/lambeq-docs/_static/lambeq_logo.png)](//cqcl.github.io/lambeq-docs) | ||
|
||
![Build status](https://github.com/CQCL/lambeq/actions/workflows/build_test.yml/badge.svg) | ||
[![License](https://img.shields.io/github/license/CQCL/lambeq)](LICENSE) | ||
|
@@ -12,16 +12,11 @@ | |
|
||
lambeq is a toolkit for quantum natural language processing (QNLP). | ||
|
||
- Documentation: https://cqcl.github.io/lambeq/ | ||
- Documentation: https://cqcl.github.io/lambeq-docs/ | ||
- User support: <[email protected]> | ||
- Contributions: Please read [our guide](https://cqcl.github.io/lambeq/CONTRIBUTING.html). | ||
- Contributions: Please read [our guide](https://cqcl.github.io/lambeq-docs/CONTRIBUTING.html). | ||
- If you want to subscribe to lambeq's mailing list, let us know by sending an email to <[email protected]>. | ||
|
||
--- | ||
**Note:** Please do not try to read the documentation directly from the preview provided in the [repository](https://github.com/CQCL/lambeq/tree/main/docs), since some of the pages will not be rendered properly. | ||
|
||
--- | ||
|
||
## Getting started | ||
|
||
### Prerequisites | ||
|
@@ -31,13 +26,15 @@ lambeq is a toolkit for quantum natural language processing (QNLP). | |
### Installation | ||
|
||
lambeq can be installed with the command: | ||
|
||
```bash | ||
pip install lambeq | ||
``` | ||
|
||
The default installation of lambeq includes Bobcat parser, a state-of-the-art statistical parser (see [related paper](https://arxiv.org/abs/2109.10044)) fully integrated with the toolkit. | ||
|
||
To install lambeq with optional dependencies for extra features, run: | ||
|
||
```bash | ||
pip install lambeq[extras] | ||
``` | ||
|
@@ -57,12 +54,11 @@ python contrib/download_depccg_model.py | |
|
||
## Usage | ||
|
||
The [docs/examples](//github.com/CQCL/lambeq/tree/main/docs/examples) | ||
directory contains notebooks demonstrating usage of the various tools in | ||
lambeq. | ||
The [docs/examples](//github.com/CQCL/lambeq-docs/tree/main/docs/examples) | ||
directory in lambeq's [documentation repository](https://github.com/CQCL/lambeq-docs) contains notebooks demonstrating usage of the various tools in lambeq. | ||
|
||
Example - parsing a sentence into a diagram (see | ||
[docs/examples/ccg2discocat.ipynb](//github.com/CQCL/lambeq/blob/main/docs/examples/ccg2discocat.ipynb)): | ||
[docs/examples/parser.ipynb](//github.com/CQCL/lambeq-docs/blob/main/docs/examples/parser.ipynb)): | ||
|
||
```python | ||
from lambeq import BobcatParser | ||
|
@@ -75,28 +71,14 @@ diagram.draw() | |
## Testing | ||
|
||
Run all tests with the command: | ||
|
||
```bash | ||
pytest | ||
``` | ||
|
||
Note: if you have installed in a virtual environment, remember to | ||
Note: if you have installed lambeq in a virtual environment, remember to | ||
install pytest in the same environment using pip. | ||
|
||
## Building documentation | ||
|
||
To build the documentation, first install the required dependencies: | ||
```bash | ||
pip install -r docs/requirements.txt | ||
``` | ||
then run the commands: | ||
|
||
```bash | ||
cd docs | ||
make clean | ||
make html | ||
``` | ||
the docs will be under `docs/_build`. | ||
|
||
## License | ||
|
||
Distributed under the Apache 2.0 license. See [`LICENSE`](LICENSE) for | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.