How to tokenize natural English text in an input file in python?

后端 未结 3 1016
不知归路
不知归路 2021-01-03 05:26

I want to tokenize input file in python please suggest me i am new user of python .

I read the some thng about the regular expression but still some con

3条回答
  •  灰色年华
    2021-01-03 05:58

    with open ("file.txt", "r") as f1:
             data=str(f1.readlines())
             sent_tokenize(data)
    

提交回复
热议问题