Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dewantrie/lark-grammar-parser
A simple programming language designed for studying parsing and how to use lark-parser in specific scenarios for a particular case.
https://github.com/dewantrie/lark-grammar-parser
antlr grammer lark-parser named-entity-recognition parser string-parser
Last synced: 28 days ago
JSON representation
A simple programming language designed for studying parsing and how to use lark-parser in specific scenarios for a particular case.
- Host: GitHub
- URL: https://github.com/dewantrie/lark-grammar-parser
- Owner: dewantrie
- Created: 2023-06-30T16:39:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-04T14:23:33.000Z (8 months ago)
- Last Synced: 2024-11-11T23:30:50.763Z (3 months ago)
- Topics: antlr, grammer, lark-parser, named-entity-recognition, parser, string-parser
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tutorial Lark Parser
Example usage of the [Lark Parser](https://github.com/lark-parser/lark)
## Guides
From the project directory, run the following:
```
conda create -n py310 python=3.10
conda activate py310
pip install lark-parser
python app.py
```
Input
```
i have two cars: a red honda brio and a white honda jazz
```
Output
```
{'data': [{'unknown': 'i'}, {'unknown': 'have'}, {'unknown': 'two'}, {'unknown': 'cars:'}, {'unknown': 'a'}, {'color': 'red'}, {'brand': 'honda'}, {'model': 'brio'}, {'unknown': 'and'}, {'unknown': 'a'}, {'color': 'white'}, {'brand': 'honda'}, {'model': 'jazz'}]}
```