sruteesh-pivot
sruteesh-pivot
@chiphuyen and @RaymondNie Any updates? I couldn't find any built-in function to calculate sentence probabilities. I am trying to built this functionality from the output_values in https://github.com/NVIDIA/OpenSeq2Seq/blob/master/open_seq2seq/models/lstm_lm.py#L190. Is there any...
Here is my modified encoding function ``` def encode_text_batch(self, sentences, ordered=False, verbose=False, add_eos=True, add_double_eos=False): encoded = [] for idx, line in enumerate(sentences): if verbose and idx > 0 and idx...
Thanks @zihangdai for the responses. I am getting `ppl = nan` when I use `mem_len = 0` This is what I'm doing to get the ppl values of single sentence...