-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help #2
Comments
Yeah you can. Can you give more details and what exactly you want to achieve. You can load any dataset which are text files and pass the files to CountVectorizer or TfidfVectorizer. |
I want to give a text file with sentences, every sentence has one mode of persuasion(there are 3 modes of persuasion in total) and a label which shows which modes it is, to train the model... and then detect modes of persuasion in some other data.. |
In your case, each sentence can be a data point with its target. |
my problem is that i don't know how to adjust your code on my data |
it would be a pleasure if you can give me any help |
from sklearn.datasets import fetch_20newsgroups i was getting error when i run the above and the error is - URLError Traceback (most recent call last) C:\ProgramData\Anaconda3\lib\site-packages\sklearn\datasets\twenty_newsgroups.py in fetch_20newsgroups(data_home, subset, categories, shuffle, random_state, remove, download_if_missing) C:\ProgramData\Anaconda3\lib\site-packages\sklearn\datasets\twenty_newsgroups.py in _download_20newsgroups(target_dir, cache_path) C:\ProgramData\Anaconda3\lib\site-packages\sklearn\datasets\base.py in _fetch_remote(remote, dirname) C:\ProgramData\Anaconda3\lib\urllib\request.py in urlretrieve(url, filename, reporthook, data) C:\ProgramData\Anaconda3\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context) C:\ProgramData\Anaconda3\lib\urllib\request.py in open(self, fullurl, data, timeout) C:\ProgramData\Anaconda3\lib\urllib\request.py in _open(self, req, data) C:\ProgramData\Anaconda3\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args) C:\ProgramData\Anaconda3\lib\urllib\request.py in unknown_open(self, req) URLError: |
is there any way to change the input data and the categories? any help?
The text was updated successfully, but these errors were encountered: