Class AddClassifierTokenPredictions.TokenClassifiers

    • Constructor Detail

      • TokenClassifiers

        public TokenClassifiers​(InstanceList trainList)
        Train a token classifier using the given Instances with 5-fold cross validation
        trainList - training instances
      • TokenClassifiers

        public TokenClassifiers​(InstanceList trainList,
                                int randSeed,
                                int numCV)
    • Method Detail

      • classify

        public Classification classify​(Instance instance,
                                       boolean useOutOfFold)
        instance - the instance to classify
        useOutOfFold - whether to check the instance name and use the out-of-fold classifier if the instance name matches one in the training data
        the token classifier's output