trait
JarCorpus[+T] extends Corpus[T]
Abstract Value Members
-
abstract
def
mapFun(category: String, path: String, s: InputStream): T
-
abstract
def
name: String
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
author: String
-
def
categories: Seq[(String, String)]
-
def
categoryFile: String
-
lazy val
classLoader: ClassLoader
-
lazy val
classLocation: URL
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
license: String
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
lazy val
splits: Map[String, Seq[T]]
-
def
stringsFromFile(cl: ClassLoader, s: String): IndexedSeq[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Pretty useful for creating a corpus from a jar file where the resources are packaged in the jar file. Simply specify a mapFun to transform the data and and put a "data/categories" file in the jar that has "splitName resourceName" pairs separated by a space, where the resourceName points to another resource with a list of files to be used in that split. It's easier than it sounds.