Got unexpected keyword argument 'size' while using CADE compass aligner

Viewed 17

I'm trying to use the CADE package in Python to do some semantic analysis on different text corpora. In particular, I'm trying to use CADE to train a compass to align two different corpora.

I create the aligner, using:

aligner = CADE(size=300)

Then, I tried to train the compass:

aligner.train_compass("compass.txt")

However, I obtained a TypeError __init__() got an unexpected keyword argument 'size'.

I underline that I'm doing this using Jupyter Notebook, and that the same exact code runs with no problem using Google Colab. Can anyone help me?

0 Answers
Related