Skip to main content

Synthesized Data for NLP Tasks

Project description

nlp-synt-data

Synthesized Data for Natural Language Processing

Synthesized Data

PromptGenerator

generate

prompts_dict = {
    "a": ["promptA0", "promptA1"],
    "b": ["promptB0", "promptB1"],
    "c": ["promptC0", "promptC1"],
    "d": ["promptD0", "promptD1"],
    "e": ["promptE0", "promptE1"],
}
PromptGenerator.generate(prompts_dict, [["c","e"],["a","b","d"]])
[('c#0_e#0', 'promptC0 promptE0'), ('c#0_e#1', 'promptC0 promptE1'), ('c#1_e#0', 'promptC1 promptE0'), ('c#1_e#1', 'promptC1 promptE1'), ('a#0_b#0_d#0', 'promptA0 promptB0 promptD0'), ('a#0_b#0_d#1', 'promptA0 promptB0 promptD1'), ('a#0_b#1_d#0', 'promptA0 promptB1
promptD0'), ('a#0_b#1_d#1', 'promptA0 promptB1 promptD1'), ('a#1_b#0_d#0', 'promptA1 promptB0 promptD0'), ('a#1_b#0_d#1', 'promptA1 promptB0 promptD1'), ('a#1_b#1_d#0', 'promptA1 promptB1 promptD0'), ('a#1_b#1_d#1', 'promptA1 promptB1 promptD1')]

get

PromptGenerator.get("c#0_e#0", prompts_dict)
promptC0 promptE0

Project details


Download files

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

Source Distribution

nlp_synt_data-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlp_synt_data-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file nlp_synt_data-0.0.2.tar.gz.

File metadata

  • Download URL: nlp_synt_data-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for nlp_synt_data-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9d83f17da2bfd34fafbb62e081788e5bb50638fbf37314ffdab9763ae95a0828
MD5 239db4db1f28de92b0a90e75c7af3447
BLAKE2b-256 9b2f7d69eb5411ca2dcf69ab6cc0987394ffe83b7d901d6c6499024cb6fe099c

See more details on using hashes here.

File details

Details for the file nlp_synt_data-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nlp_synt_data-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for nlp_synt_data-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 815402c7a228fe188cff7ecb4a1cf9dd5af3e5f36121d88057fbe4f5cf184e48
MD5 158ff3e70e319a082383b20f226469ea
BLAKE2b-256 c2bf70f02e185f68fff929711770f90ba7d01a4d02c1b4a8db833f1630ccc9b8

See more details on using hashes here.

Supported by

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