示例#1
0
文件: gans.py 项目: 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)
示例#2
0
文件: gans.py 项目: 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)
示例#3
0
文件: gans.py 项目: 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)
示例#4
0
文件: gans.py 项目: 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)
示例#5
0
文件: gans.py 项目: 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)
示例#6
0
文件: gans.py 项目: 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)
示例#7
0
文件: gans.py 项目: 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)
示例#8
0
文件: gans.py 项目: 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)
示例#9
0
文件: gans.py 项目: 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)
示例#10
0
文件: gans.py 项目: 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)
示例#11
0
文件: gans.py 项目: 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)
示例#12
0
文件: gans.py 项目: 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)
示例#13
0
文件: gans.py 项目: 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)
示例#14
0
文件: gans.py 项目: 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)
示例#15
0
文件: gans.py 项目: 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)
示例#16
0
文件: gans.py 项目: 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)
示例#17
0
文件: gans.py 项目: 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)
示例#18
0
文件: gans.py 项目: 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)
示例#19
0
文件: gans.py 项目: 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)