openstreetmap-tags-to-rivescript
Convert of openstreetmap/id-tagging-schema to RiveScript, the Artificial Intelligence Scripting Language (alternative to AIML)
Quickstart
Explains how to generate the RiveScripts
Install
No pip release yet, install from GitHub
pip install https://github.com/fititnt/openstreetmap-tags-to-rivescript/archive/main.zip
Fetch cache
# Prepare the cache directory
git clone https://github.com/openstreetmap/id-tagging-schema.git ./id-tagging-schema
Generate RiveScript
osmtags2rive --language=pt > example/brain/osm-tagging_pt.rive
osmtags2rive --language=pt --reverse-index > example/brain/osm-tagging-reverse_pt.rive
Extras
Quick example on how to use the generated RiveScripts
Check Rivescript website page for interpreters for other programming languages. They all have a similar interface: allow you to deposit all files in a directory which is loaded by your interpreter.
Python example
Using Rive Python interpreter from https://github.com/aichaos/rivescript-python
# install the script
pip install rivescript
python shell.py
# file shell.py
from rivescript import RiveScript
# bot = RiveScript(utf8=True)
bot = RiveScript()
bot.load_directory("./example/brain")
bot.sort_replies()
while True:
msg = input('You> ')
if msg == '/quit':
quit()
reply = bot.reply("localuser", msg)
print ('Bot>', reply)
Disclaimers
OpenStreetMap™ is a trademark of the OpenStreetMap Foundation, and is used with their permission. This project is not endorsed by or affiliated with the OpenStreetMap Foundation. (via OSMF Trademark_Policy)
License
Public domain
Metadata
Release files for osmtags2rive 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osmtags2rive-0.6.0.tar.gz | 7.0 kB | Without provenance | Details for osmtags2rive-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osmtags2rive-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for osmtags2rive-0.6.0-py3-none-any.whl |
Total release size: 14.2 kB
Security for osmtags2rive 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.