Skip to content

Instantly share code, notes, and snippets.

@alabrashJr
Last active June 10, 2020 11:12
Show Gist options
  • Save alabrashJr/0da63d6dda60d89449216458da1c2ad2 to your computer and use it in GitHub Desktop.
Save alabrashJr/0da63d6dda60d89449216458da1c2ad2 to your computer and use it in GitHub Desktop.
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['TurkishStemmer'].values.astype('U')
test_text = test['TurkishStemmer'].values.astype('U')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment