CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks

May 19, 2022 ยท View on GitHub

Descriptions

This repo contains source code and pre-processed corpora for "CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarks"

Dependencies

  • python3
  • spacy==3.0.0
  • numpy==1.19.5
  • scipy==1.5.4
  • nltk==3.5

Find candidate words for watermarking

python iterate_all_comb_on_pos_pp.py 1 # order: 1,2,3,4