@Gordon
I wrote back the original code and added two lines before if:
print(t1, type(t1))
print(self.keyedvectors, type(self.keyedvectors))
I also made very small corpora of three sentences within three txt files.
Before code breaks with the error, here is the output of print commands:
acidic <class 'str'>
[array([ 0.05108338, 0.06412067, -0.09670051, 0.00860585, 0.06627294]), array([0.09389341, 0.06865101, 0.04285159, 0.01561402, 0.04258162]), array([ 0.02128182, -0.03809803, -0.06132105, 0.05650516, -0.08720438]), array([-0.07764339, -0.01059977, -0.02333061, -0.07759179, -0.09299952]), array([-0.08960435, 0.0279422 , -0.00464952, 0.0628281 , 0.09856929]), array([-0.07997459, 0.02466222, -0.01713089, 0.03780125, 0.07330118]), array([ 0.00114985, 0.08646952, 0.05045629, -0.05994698, 0.04498813]), array([ 0.03900765, 0.00702658, -0.08184136, 0.04308209, -0.06924964]), array([-0.07969793, -0.02431524, -0.07010775, -0.00599253, -0.05824611]), array([-0.02898957, 0.08358514, -0.06880702, -0.04688286, 0.07443116])] <class 'list'>