Class/Object

org.clulab.odin.impl

RuleReader

Related Docs: object RuleReader | package impl

Permalink

class RuleReader extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RuleReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RuleReader(actions: Actions, charset: Charset, ruleDir: Option[File] = None)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val actions: Actions

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val charset: Charset

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. implicit val codec: Codec

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def exportExtractionSchemas(input: String, outname: String, minimal: Boolean = false): Unit

    Permalink

    Autogenerate aggregated markdown documentation **file** for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy).

    Autogenerate aggregated markdown documentation **file** for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy). This view of the grammar tells consumers what they can expect to see (or what they _could_ expect to see) in an Extraction/Mention of a given Type (or Label).

    input

    the String content of the grammar yaml file

    outname

    output markdown file

  12. def exportRuleSchemas(input: String, outname: String): Unit

    Permalink

    Autogenerate markdown **file** that shows the metadata for each rule in the grammar.

    Autogenerate markdown **file** that shows the metadata for each rule in the grammar. This is useful for those who have a harder time sifting through the yaml files which may be quite nested. One md block per rule, sorted alphabetically.

    input

    odin grammar yaml string

    outname

    the path to the output md file

  13. def extractionSchemaObjects(input: String): Seq[ExtractionSchema]

    Permalink

    Autogenerate extractionSchema objects for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy).

    Autogenerate extractionSchema objects for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy). This entrypoint is for people who want to edit what is produced prior to exporting.

    input

    the String content of the simple yaml file

  14. def extractionSchemas(input: String, minimal: Boolean = false): String

    Permalink

    Autogenerate aggregated markdown documentation string for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy).

    Autogenerate aggregated markdown documentation string for a grammar, aggregating by _Type_ (i.e., the Label from the internal Taxonomy). This view of the grammar tells consumers what they can expect to see (or what they _could_ expect to see) in an Extraction/Mention of a given Type (or Label).

    input

    the String content of the grammar yaml file

    returns

    markdown file contents

  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getGraph(data: Map[String, Any], default: String = OdinConfig.DEFAULT_GRAPH): String

    Permalink
  18. def getRules(input: String): Seq[Rule]

    Permalink
  19. def getVars(data: Map[String, Any]): Map[String, String]

    Permalink

    gets the master file as a Map and returns the declared variables, if any

  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. def mkExtractors(rules: Seq[Rule]): Vector[Extractor]

    Permalink
  23. def mkRule(data: Map[String, Any], expand: (String) ⇒ Seq[String], template: (Any) ⇒ String, config: OdinConfig): Rule

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def newCrossSentenceExtractor(name: String, labels: Seq[String], priority: Priority, keep: Boolean, action: Action, leftWindow: Int, rightWindow: Int, anchorPattern: TokenExtractor, neighborPattern: TokenExtractor, anchorRole: String, neighborRole: String): CrossSentenceExtractor

    Permalink
    Attributes
    protected
  26. def newGraphExtractor(name: String, labels: Seq[String], priority: Priority, keep: Boolean, action: Action, pattern: GraphPattern, config: OdinConfig): GraphExtractor

    Permalink
    Attributes
    protected
  27. def newTokenExtractor(name: String, labels: Seq[String], priority: Priority, keep: Boolean, action: Action, pattern: TokenPattern): TokenExtractor

    Permalink
    Attributes
    protected
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def read(input: String): Vector[Extractor]

    Permalink
  31. def readFileOrResource(s: String): String

    Permalink

    Tries to read the path as a file first.

    Tries to read the path as a file first. If it fails, then it tries to read from the jar resources.

  32. def readOrImportVars(data: Any): Map[String, String]

    Permalink

    Reads the variables declared directly or imports them from a file

  33. val ruleDir: Option[File]

    Permalink
  34. def ruleSchemaObjects(input: String): Seq[RuleSchema]

    Permalink

    Autogenerate objects that can represent themselves as markdown blocks that show the metadata for each rule in the grammar using a Master file.

    Autogenerate objects that can represent themselves as markdown blocks that show the metadata for each rule in the grammar using a Master file. This entrypoint is for people who want to edit what is produced prior to exporting. One md block per rule, sorted alphabetically.

    input

    yaml rule string

    returns

    scala Map with markdown table contents

  35. def ruleSchemas(input: String): String

    Permalink

    Autogenerate markdown file string content that shows the metadata for each rule in the grammar.

    Autogenerate markdown file string content that shows the metadata for each rule in the grammar. This is useful for those who have a harder time sifting through the yaml files which may be quite nested. One md block per rule, sorted alphabetically.

    input

    yaml rule string

    returns

    String contents of the rule documentation file

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped