Skip to content

BERTSim() returns error when arguments are given #2

@ilona-grabowicz

Description

@ilona-grabowicz

I tried to use your notebook on my computer (Ubuntu 20) and when I passed arguments to the function bsim = querycat.BERTSim(TRANSFORMER_MODEL, RANDOM_SEED)
while TRANSFORMER_MODEL = "camembert-base"
and
RANDOM_SEED = 42
like it was shown in the Demo it gives strange error:
......

TypeError Traceback (most recent call last)
in
----> 1 bsim = querycat.BERTSim(TRANSFORMER_MODEL, 42)

TypeError: init() takes from 1 to 2 positional arguments but 3 were given

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