All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.clulab.assembly.package.scala Maven / Gradle / Ivy

The newest version!
package org.clulab

import org.clulab.assembly.representations.EntityEventRepresentation
import org.clulab.odin.Mention
import org.clulab.reach.mentions._
import org.clulab.reach.mentions.{Modification => MentionModification}

package object assembly {

  // The type used to store the grounding ID
  // TODO: Should we include species, kb source, etc as part of this ID?
  // this is all available to us from grounding
  type GroundingID = String
  // unique ID associated with each Mention
  type IDPointer = Int
  // a sieve is a function that takes a Seq[Mention] and an AssemblyManager as input and produces an AssemblyManager
  type Sieve = (Seq[Mention], AssemblyManager) => AssemblyManager
  // shorthand for EntityEventRepresentation
  type EER = EntityEventRepresentation
  // At assembly, a Mention's identity is dependent upon its modifications
  type MentionState = (Mention, Set[MentionModification])

  /**
   * Get the state of a Mention
   */
  def getMentionState(m: Mention): MentionState = (m, m.toBioMention.modifications)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy