Example #1
0
File: gans.py Project: pngnull/Luci
    def get_racism_xenophobia_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.RACISM_XENOPHOBIA_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #2
0
File: gans.py Project: pngnull/Luci
    def get_sexual_abuse_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.SEXUAL_ABUSE_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #3
0
File: gans.py Project: pngnull/Luci
    def get_my_gender_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.MY_GENDER_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #4
0
File: gans.py Project: pngnull/Luci
    def get_praise_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.PRAISE

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #5
0
File: gans.py Project: pngnull/Luci
    def get_verbal_offense_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.VERBAL_OFFENSE_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #6
0
File: gans.py Project: pngnull/Luci
    def get_my_age_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.MY_AGE_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #7
0
File: gans.py Project: pngnull/Luci
    def get_helpful_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.HELPFUL_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #8
0
File: gans.py Project: pngnull/Luci
    def get_sports_and_playing_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.SPORTS_AND_PLAYING_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #9
0
File: gans.py Project: pngnull/Luci
    def get_funny_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.FUNNY_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #10
0
File: gans.py Project: pngnull/Luci
    def get_greeting_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.GREETING_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #11
0
File: gans.py Project: pngnull/Luci
    def get_forbidden_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.FORBIDDEN_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #12
0
File: gans.py Project: pngnull/Luci
    def get_acknowledge_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.ACKNOWLEDGEMENT_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #13
0
File: gans.py Project: pngnull/Luci
    def get_goodbye_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.WHAT_AM_I_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #14
0
File: gans.py Project: pngnull/Luci
    def get_sorry_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.SORRY_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #15
0
File: gans.py Project: pngnull/Luci
    def get_illegal_stuff_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.ILLEGAL_STUFF_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #16
0
File: gans.py Project: pngnull/Luci
    def get_who_am_i_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.WHO_AM_I_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #17
0
File: gans.py Project: pngnull/Luci
    def get_music_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.MUSIC_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #18
0
File: gans.py Project: pngnull/Luci
    def get_suicide_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.SUICIDE_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)
Example #19
0
File: gans.py Project: pngnull/Luci
    def get_threat_response(**kwargs):
        model, idx_to_chars, chars_to_idx = IntentionResponseGAN.TRHEAT_GAN

        return sample(model, chars_to_idx, idx_to_chars, 1000)