Metadata-Version: 2.1
Name: perin_parser
Version: 0.0.22
Summary: (Unofficial) PERIN: Permutation-invariant Semantic Parsing
Home-page: https://github.com/ufal/perin
Author: David Samuel & Milan Straka
License: Mozilla Public License 2.0
Keywords: corpus,machine-learning,NLU,NLP
Platform: UNKNOWN
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: eval

# (Unofficial) PERIN: Permutation-invariant Semantic Parsing

Unofficial package for the PERIN parser: https://github.com/ufal/perin

Intended for easy installation and faster batching.

## Installation

```bash
pip install perin_parser
```


## Optional AMR evaluation

Install SMATCH++ and its evaluation dependencies separately:

```bash
pip install 'perin_parser[eval]'
# From this checkout:
pip install -e '.[eval]'
```

SMATCH++ provides AMR evaluation with ILP alignment. Its dependencies include
NumPy, SciPy, and Python-MIP with a native solver. SciPy is already a base
parser dependency; SMATCH++ and its solver are only requested by this extra. This extra installs the evaluation toolkit without
changing the existing evaluation backend.

For example, evaluate PENMAN prediction and reference files with:

```bash
python -m smatchpp -a predictions.txt -b gold.txt -solver ilp -graph_type amr -score_type micro
```

AMR standardization can produce scores that differ from historical Smatch
results. Check the reported optimization status/bounds when a solver times out.

## License

```
Copyright 2020 Institute of Formal and Applied Linguistics, Faculty of
Mathematics and Physics, Charles University, Czech Republic.

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
```



