This is a new version of the repository. Do let us know (lindat-help at ufal.mff.cuni.cz) if you encounter any issues.
 

THEaiTRobot 2.0

Please use the following text to cite this item or export to a predefined format:
Rosa, Rudolf; et al., 2022, THEaiTRobot 2.0, LINDAT/CLARIAH-CZ digital library at the Institute of Formal and Applied Linguistics (ÚFAL), http://hdl.handle.net/11234/1-4863.
Date issued
2022-06-21
Language(s)
Description
The THEaiTRobot 2.0 tool allows the user to interactively generate scripts for individual theatre play scenes. The previous version of the tool (http://hdl.handle.net/11234/1-3507) was based on GPT-2 XL generative language model, using the model without any fine-tuning, as we found that with a prompt formatted as a part of a theatre play script, the model usually generates continuation that retains the format. The current version also uses vanilla GPT-2 by default, but can also instead use a GPT-2 medium model fine-tuned on theatre play scripts (as well as film and TV series scripts). Apart from the basic "flat" generation using a theatrical starting prompt and the script model, the tool also features a second, hierarchical variant, where in the first step, a play synopsis is generated from its title using a synopsis model (GPT-2 medium fine-tuned on synopses of theatre plays, as well as film, TV series and book synopses). The synopsis is then used as input for the second stage, which uses the script model. The choice of models to use is done by setting the MODEL variable in start_server.sh and start_syn_server.sh THEaiTRobot 2.0 was used to generate the second THEaiTRE play, "Permeation/Prostoupení".
Acknowledgement

Version History

Showing 1 - 2 out of 2 results
VersionDateSummary
2*
2022-06-21 00:00:00
2021-02-05 00:00:00
* Selected version
This item isPublicly Available
and licensed under:
 Files in this item
Name
theaitrobot-master.zip
Size
6.72 MB
Format
application/zip
Description
Zip
MD5
ad86e01af413f34f4f3d3720a31bf0fb
Preview
  File Preview
  • theaitrobot-master
    • demo_html_block_for_including.html2 kB
    • start_server.sh1 kB
    • summarize.py6 kB
    • nli.py7 kB
    • requirements.txt182 B
    • LICENCE1 kB
    • git_util.py585 B
    • i18
      • cs.yml6 kB
      • en.yml6 kB
    • gpt2_char.py6 kB
    • start_syn_server.sh510 B
    • Makefile1 kB
    • kill.sh350 B
    • api.py2 kB
    • update_config.py1 kB
    • api_token.py242 B
    • keyops.py2 kB
    • run_syn_cluster.sh190 B
    • cgi_common.py9 kB
    • run_on_cluster.sh183 B
    • interactive.py1 kB
    • story_batch.py18 kB
    • char_support.py5 kB
    • syn_config.json41 B
    • robot.gif3 MB
    • static
      • arrow_left_1.png3 kB
      • tacr.png7 kB
      • robot.png4 kB
      • index.css10 kB
      • svandovo.png52 kB
      • script.js2 kB
      • home_button.png4 kB
      • arrow_left_white.png4 kB
      • sipka_dolu.png2 kB
      • theaitre_logo.png4 kB
      • plus.png615 B
      • ufal.png52 kB
      • serve-png.sh78 B
      • robot.gif3 MB
      • eta.png10 kB
      • arrow_right_1.png3 kB
      • serve-css.sh77 B
      • serve-js.sh84 B
      • damu.png5 kB
      • email.png893 B
      • mff.png43 kB
      • download.png417 B
      • refresh.png5 kB
    • kill_syn.sh164 B
    • config.json48 B
    • story_server.py50 kB
    • install.sh86 B
    • gpt2_guided.py7 kB
    • synopsis2script.py24 kB
    • README.md3 kB
    • story.py7 kB
    • urutranslate.py5 kB
    • run_api.sh36 B
    • demo.py33 kB
    • synopse.py19 kB
Name
gpt2_medium_synopses.tar.gz
Size
1.23 GB
Format
application/x-gzip
Description
gzip Archive
MD5
bd82c18522c2442deee51f50cac2ebed
Preview
  File Preview
Name
gpt2_medium_scripts.tar.gz
Size
1.23 GB
Format
application/x-gzip
Description
gzip Archive
MD5
9b2e36cfd7e54c490d23d0249cfb2747
Preview
  File Preview