Skip to main content

A Parser for Prompt Markup Language.

Project description

PyPI license GitHub Workflow Status

PromptML

Prompt Markup Language Parser.

PromptML

  • PromptML is a simple markup language.
  • It inserts control strings in common string, wrapped by [], (e. g. [mask], [sep])
  • The control strings can have some options, seperated with string by |, (e. g. [title|upper], [text|lower])
  • The control options can be multiple, seperated by ,, (e. g. [title|upper,rmpunt])

Examples will be prased

  1. [cls]A [mask] news : [sent_0|lower,fix][sep|+]
    1. String: cls Control Options: {}
    2. String: A Control Options: None
    3. String: mask Control Options: {}
    4. String: news : Control Options: None
    5. String: sent_0 Control Options: {lower, fix}
    6. String: sep Control Options: {+}
  2. [cls]\\[ Topic : [mask] \\][sent_0][sep|+]
    1. String: cls Control Options: {}
    2. String: [ Topic : Control Options: None
    3. String: mask Control Options: {}
    4. String: ] Control Options: None
    5. String: sent_0 Control Options: {}
    6. String: sep Control Options: {+}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

promptml-0.2.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

promptml-0.2.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

promptml-0.2.1-cp310-none-win_amd64.whl (142.0 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

promptml-0.2.1-cp310-none-win32.whl (134.7 kB view hashes)

Uploaded CPython 3.10 Windows x86

promptml-0.2.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

promptml-0.2.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ i686

promptml-0.2.1-cp39-none-win_amd64.whl (142.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

promptml-0.2.1-cp39-none-win32.whl (134.7 kB view hashes)

Uploaded CPython 3.9 Windows x86

promptml-0.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

promptml-0.2.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

promptml-0.2.1-cp39-cp39-macosx_10_7_x86_64.whl (256.5 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

promptml-0.2.1-cp38-none-win_amd64.whl (141.5 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

promptml-0.2.1-cp38-none-win32.whl (134.2 kB view hashes)

Uploaded CPython 3.8 Windows x86

promptml-0.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

promptml-0.2.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ i686

promptml-0.2.1-cp37-none-win_amd64.whl (141.5 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

promptml-0.2.1-cp37-none-win32.whl (134.1 kB view hashes)

Uploaded CPython 3.7 Windows x86

promptml-0.2.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

promptml-0.2.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page