import logging
import gensim
from sklearn.datasets import fetch_rcv1
from sklearn.multiclass import OneVsRestClassifier
from sklearn.metrics import f1_score, precision_score, recall_score
from sklearn.pipeline import Pipeline
from sklearn import svm
logging.basicConfig()
rcv1 = fetch_rcv1()
rcv1.data[0]
<1x47236 sparse matrix of type '<type 'numpy.float64'>' with 138 stored elements in Compressed Sparse Row format>