Best way to change words into numbers using specific word list

前端 未结 3 709
广开言路
广开言路 2021-01-14 20:58

I have a text file that contains tweets per line, that need to be altered for a machine learning format. Im using python and basic unix text manipulation (regex) to achieve

3条回答
  •  隐瞒了意图╮
    2021-01-14 21:38

    If you needed this as an all regex, then have a look at my solution here Changing lines of text into binary type pattern

提交回复
热议问题