chalk.corpora

JarCorpus

trait JarCorpus[+T] extends Corpus[T]

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.

Linear Supertypes
Corpus[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JarCorpus
  2. Corpus
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def mapFun(category: String, path: String, s: InputStream): T

    Attributes
    protected
  2. abstract def name: String

    Definition Classes
    Corpus

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def author: String

    Definition Classes
    Corpus
  8. def categories: Seq[(String, String)]

    Provides a list of (categoryName,resourceName), where the categoryName is the name of the split (like "train") and the resourceName is a resource path that has a list of the files to load.

    Provides a list of (categoryName,resourceName), where the categoryName is the name of the split (like "train") and the resourceName is a resource path that has a list of the files to load.

    Attributes
    protected
  9. def categoryFile: String

    Attributes
    protected
  10. lazy val classLoader: ClassLoader

    Attributes
    protected
  11. lazy val classLocation: URL

    Attributes
    protected
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def license: String

    Definition Classes
    Corpus
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. lazy val splits: Map[String, Seq[T]]

    Definition Classes
    JarCorpusCorpus
  24. def stringsFromFile(cl: ClassLoader, s: String): IndexedSeq[String]

    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Corpus[T]

Inherited from AnyRef

Inherited from Any

Ungrouped