>>> import minicons
>>> import torch
>>> from torch.utils.data import DataLoader
>>>
>>> import json
>>> model = scorer.IncrementalLMScorer('gpt2', 'cpu')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'scorer' is not defined
>>>
Also not with minicons.scorer
Not sure from where scorer is supposed to come...
Sorry, if it's just me doing something stupid. My python abilities are mostly from copy&paste (I'm an R person)
Hi I couldn't make the surprisals example to work in https://github.com/kanishkamisra/minicons/blob/master/examples/surprisals.md
Also not with
minicons.scorer
Not sure from where scorer is supposed to come...
Sorry, if it's just me doing something stupid. My python abilities are mostly from copy&paste (I'm an R person)