Pikeun nerapkeun algoritma Knuth-Morris-Pratt di Python, anjeun tiasa nuturkeun léngkah ieu: Nyiptakeun fungsi gagal j+1 sareng nambahan duanana i sareng j. - Upami karakter henteu cocog sareng j > 0, atur nilai fungsi gagal dina j-1 sareng unsur kadua dina 0. - Upami karakter henteu cocog sareng j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j j
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence