Skip to content

generating P(T) for Anti-LM #34

Description

@kuhanw

Hi all,

I am trying to understand the implementation of the anti-LM model, in particular the meaning of this line:

line 128: all_prob_t = model_step(dummy_encoder_inputs, cand['dec_inp'], dptr, target_weights, bucket_id)

where dummy_encoder_inputs is dummy_encoder_inputs = [np.array([data_utils.PAD_ID]) for _ in range(len(encoder_inputs))].

in tf_chatbot_seq2seq_antilm/lib/seq2seq_model_utils.py.

This is presumably the probability of the target (P(T)) from the paper https://arxiv.org/pdf/1510.03055.pdf, but how does feeding in an encoder input sequence of PAD give you the probability of T?

Anyone have any ideas?

Cheers,

Kuhan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions