Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cora document classification dataset, from :
McCallum, A. and Nigam, K., "Automating the construction of internet portals with machine learning" Information Retrieval, 2000
Qing Lu, and Lise Getoor. "Link-based classification." ICML, 2003.
1. Download the dataset
2. Reconstruct the citation graph
:: (MonadResource m, MonadThrow m) | |
=> FilePath | directory of data files |
-> Map String (Seq Int16, CoraDoc) |
|
-> ConduitT i (Maybe (Graph (ContentRow CoraDoc))) m () |
See sourceGraphEdges
:: FilePath | directory where the data files were saved |
-> IO (Graph (ContentRow CoraDoc)) |
See loadGraph
Types
document classes of the Cora dataset
Instances
Enum CoraDoc Source # | |
Eq CoraDoc Source # | |
Ord CoraDoc Source # | |
Defined in Algebra.Graph.IO.Datasets.LINQS.Cora | |
Show CoraDoc Source # | |
Generic CoraDoc Source # | |
Binary CoraDoc Source # | |
type Rep CoraDoc Source # | |
Defined in Algebra.Graph.IO.Datasets.LINQS.Cora type Rep CoraDoc = D1 ('MetaData "CoraDoc" "Algebra.Graph.IO.Datasets.LINQS.Cora" "algebraic-graphs-io-0.3-DtI4v4Hd3nUElui0ptUceD" 'False) ((C1 ('MetaCons "CB" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GA" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NN" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RuL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Th" 'PrefixI 'False) (U1 :: Type -> Type)))) |