Class TwoLayerClassifier

  • All Implemented Interfaces:
    Classifier

    public class TwoLayerClassifier
    extends java.lang.Object
    implements Classifier
    • Constructor Summary

      Constructors 
      Constructor Description
      TwoLayerClassifier​(Embedding embedding, java.io.InputStream W1, java.io.InputStream b1, java.io.InputStream W2, java.io.InputStream b2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float[] getScores​(java.lang.String[] context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • embedding

        private final Embedding embedding
      • W_fc1

        private final Matrix W_fc1
      • b_fc1

        private final Matrix b_fc1
      • W_fc2

        private final Matrix W_fc2
      • b_fc2

        private final Matrix b_fc2
    • Constructor Detail

      • TwoLayerClassifier

        public TwoLayerClassifier​(Embedding embedding,
                                  java.io.InputStream W1,
                                  java.io.InputStream b1,
                                  java.io.InputStream W2,
                                  java.io.InputStream b2)
    • Method Detail

      • getScores

        public float[] getScores​(java.lang.String[] context)
        Specified by:
        getScores in interface Classifier