Class TextModel

java.lang.Object
network.aika.Model
network.aika.text.TextModel
All Implemented Interfaces:
Writable

public class TextModel extends Model
Author:
Lukas Molzberger
  • Field Details

    • REL_PREVIOUS_TOKEN_LABEL

      public static String REL_PREVIOUS_TOKEN_LABEL
    • REL_NEXT_TOKEN_LABEL

      public static String REL_NEXT_TOKEN_LABEL
    • TOKEN_LABEL

      public static String TOKEN_LABEL
  • Constructor Details

  • Method Details

    • init

      public void init()
      Specified by:
      init in class Model
    • lookupToken

      public PatternNeuron lookupToken(String tokenLabel)
    • getTokenCategory

      public CategoryNeuron getTokenCategory()
    • getPreviousTokenRelationBindingNeuron

      public static BindingNeuron getPreviousTokenRelationBindingNeuron(PatternNeuron pn)
    • getNextTokenRelationBindingNeuron

      public static BindingNeuron getNextTokenRelationBindingNeuron(PatternNeuron pn)
    • write

      public void write(DataOutput out) throws IOException
      Description copied from interface: Writable
      Serialize the fields of this object to out.
      Specified by:
      write in interface Writable
      Overrides:
      write in class Model
      Parameters:
      out - DataOuput to serialize this object into.
      Throws:
      IOException
    • readFields

      public void readFields(DataInput in, Model m) throws Exception
      Description copied from interface: Writable
      Deserialize the fields of this object from in.

      For efficiency, implementations should attempt to re-use storage in the existing object where possible.

      Specified by:
      readFields in interface Writable
      Overrides:
      readFields in class Model
      Parameters:
      in - DataInput to deseriablize this object from.
      Throws:
      Exception