microsoft / MetaXL

Meta Representation Transformation for Low-resource Cross-lingual Learning
MIT License
40 stars 7 forks source link

some code can not find definitions in utils.py #5

Open joekerrXun opened 3 years ago

joekerrXun commented 3 years ago

hi , Thanks for sharing , i have downloaded the code and tried . Unfortunately , i can not find definition of variable 'a' in utils.py. details in below: Can you help me explain my question ? Much appreciated.

_for text in texts:
if text in a.text.values.tolist():
        index.append(a.text.values.tolist().index(text))_
xiamengzhou commented 3 years ago

Hi,

Sorry for the buggy codes. That snippet of code is what I used to find the index of the fa sentences in the original data file, which I ran in an interactive Python environment. It should have nothing to do with data extraction or training. You can safely delete lines 61-68. Thanks for pointing this out. We will fix it ASAP.