예제 #1
0
        public static ShiftReduceOptions BuildTrainingOptions(string tlppClass, string[] args)
        {
            ShiftReduceOptions op = new ShiftReduceOptions();

            op.SetOptions("-forceTags", "-debugOutputFrequency", "1", "-quietEvaluation");
            if (tlppClass != null)
            {
                op.tlpParams = ReflectionLoading.LoadByReflection(tlppClass);
            }
            op.SetOptions(args);
            if (op.trainOptions.randomSeed == 0)
            {
                op.trainOptions.randomSeed = Runtime.NanoTime();
                log.Info("Random seed not set by options, using " + op.trainOptions.randomSeed);
            }
            return(op);
        }
예제 #2
0
 public override void SetOptionFlags(params string[] flags)
 {
     op.SetOptions(flags);
 }