Created
September 12, 2023 11:35
-
-
Save fsndzomga/b212aca096054d28436786776b3baeac to your computer and use it in GitHub Desktop.
Import train dataset
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.datasets import fetch_20newsgroups | |
from langchain.chat_models import ChatOpenAI | |
categories = ['alt.atheism', 'talk.religion.misc', 'comp.graphics', 'sci.space'] | |
newsgroups_train = fetch_20newsgroups(subset='train', remove=('headers', 'footers', 'quotes'), categories=categories) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment