Created
June 12, 2020 07:33
-
-
Save alabrashJr/d067c93165b5463652a2216095823f32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.model_selection import train_test_split | |
train, test = train_test_split(data, random_state=42, test_size=0.30, shuffle=True) | |
train_text = train['النص'].values.astype('U') | |
test_text = test['النص'].values.astype('U') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment