Wrong number of examples when loading a text dataset
MEMBER
Hi @kg-nlp, thanks for reporting.

That is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation... 
2022-02-22T12:42:24Z
https://github.com/huggingface/datasets/issues/3729#issuecomment-1047757883
https://api.github.com/repos/huggingface/datasets/issues/3729
IC_kwDODunzps4-c4Q7
https://api.github.com/repos/huggingface/datasets/issues/comments/1047757883/reactions
2022-02-22T12:42:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1047757883
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
NONE
ok, I found the reason why that two results are not same.
there is /u2029 in the text, the datasets will split sentence according to the /u2029,but when I use open function will not do that .
so I want to know which function shell do that
thanks
2022-02-24T02:25:28Z
https://github.com/huggingface/datasets/issues/3729#issuecomment-1049431250
https://api.github.com/repos/huggingface/datasets/issues/3729
IC_kwDODunzps4-jQzS
https://api.github.com/repos/huggingface/datasets/issues/comments/1049431250/reactions
2022-02-24T02:25:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1049431250
https://avatars.githubusercontent.com/u/58376804?v=4
https://api.github.com/users/kg-nlp/events{/privacy}
https://api.github.com/users/kg-nlp/followers
https://api.github.com/users/kg-nlp/following{/other_user}
https://api.github.com/users/kg-nlp/gists{/gist_id}
https://github.com/kg-nlp
kg-nlp
MDQ6VXNlcjU4Mzc2ODA0
https://api.github.com/users/kg-nlp/orgs
https://api.github.com/users/kg-nlp/received_events
https://api.github.com/users/kg-nlp/repos
https://api.github.com/users/kg-nlp/starred{/owner}{/repo}
https://api.github.com/users/kg-nlp/subscriptions
User
https://api.github.com/users/kg-nlp
public
## Describe the bug
when I use load_dataset to read a txt file  I find  that the number of the samples is incorrect

## Steps to reproduce the bug
```
fr = open('train.txt','r',encoding='utf-8').readlines()
print(len(fr))  # 1199637

datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False)
print(len(datasets['train']))  # 1199649
```
I also use command line operation to verify it
```
$ wc -l train.txt 
1199637 train.txt
```

## Expected results
please fix that issue 


## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.3
- Platform:windows&linux
- Python version:3.7
- PyArrow version:6.0.1
