repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MaxEntL1Trainer.java | package cc.mallet.classify;
import cc.mallet.optimize.Optimizer;
import cc.mallet.optimize.OrthantWiseLimitedMemoryBFGS;
import cc.mallet.types.InstanceList;
public class MaxEntL1Trainer extends MaxEntTrainer {
private static final long serialVersionUID = 1L;
double l1Weight = 1.0;
public MaxEntL1Trainer() {
s... | 1,108 | 24.790698 | 71 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/C45.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org.... | 11,186 | 29.649315 | 151 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MCMaxEntTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. Fo... | 29,829 | 38.720373 | 140 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ClassifierTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,163 | 43.517241 | 152 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MaxEntOptimizableByLabelLikelihood.java | package cc.mallet.classify;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Iterator;
import java.util.logging.Logger;
import cc.mallet.optimize.LimitedMemoryBFGS;
import cc.mallet.optimize.Optimizable;
import cc.mallet.types.Alphabet;
import cc.mallet.types.FeatureSelection;
import cc.mallet.t... | 12,904 | 36.297688 | 115 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MaxEnt.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. Fo... | 11,021 | 30.947826 | 108 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/AdaBoostM2.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,902 | 35.476636 | 96 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/BalancedWinnowTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 6,860 | 32.305825 | 111 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/Classification.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,881 | 28.18797 | 97 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/BaggingClassifier.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,359 | 29.222222 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/DecisionTree.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 8,589 | 32.818898 | 110 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/C45Trainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org.... | 4,656 | 27.224242 | 115 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/Winnow.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,696 | 30.729412 | 93 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/NaiveBayes.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 11,531 | 40.039146 | 114 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ConfidencePredictingClassifier.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 4,588 | 32.992593 | 227 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/RankMaxEnt.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. Fo... | 8,341 | 35.269565 | 144 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ClassifierAccuracyEvaluator.java | package cc.mallet.classify;
import cc.mallet.types.InstanceList;
public class ClassifierAccuracyEvaluator extends ClassifierEvaluator
{
public ClassifierAccuracyEvaluator (InstanceList[] instances, String[] descriptions)
{
super(instances,descriptions);
}
public ClassifierAccuracyEvaluator (InstanceList i... | 1,682 | 41.075 | 125 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/DecisionTreeTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 4,348 | 37.486726 | 120 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/AdaBoostM2Trainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 7,963 | 38.621891 | 107 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/AdaBoost.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,814 | 35.333333 | 96 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/NaiveBayesTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 16,160 | 37.848558 | 118 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/Classifier.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 6,183 | 34.54023 | 127 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/Trial.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 7,147 | 27.706827 | 131 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/FeatureConstraintUtil.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 18,628 | 33.690875 | 157 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/AdaBoostTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 6,128 | 38.038217 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ConfidencePredictingClassifierTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 4,367 | 40.207547 | 144 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/WinnowTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 6,657 | 30.704762 | 86 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ClassifierEvaluator.java | package cc.mallet.classify;
import java.util.logging.Logger;
import cc.mallet.fst.TransducerEvaluator;
import cc.mallet.fst.TransducerTrainer;
import cc.mallet.optimize.Optimizable;
import cc.mallet.types.InstanceList;
import cc.mallet.util.MalletLogger;
public abstract class ClassifierEvaluator
{
private static ... | 2,713 | 38.333333 | 125 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MCMaxEnt.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. Fo... | 9,046 | 35.926531 | 99 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/NaiveBayesEMTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,559 | 33.320988 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/ClassifierEnsembleTrainer.java | package cc.mallet.classify;
import cc.mallet.types.InstanceList;
/* Copyright (C) 2005 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common... | 1,261 | 36.117647 | 111 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/MaxEntOptimizableByGE.java | package cc.mallet.classify;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.logging.Logger;
import cc.mallet.optimize.Optimizable;
import cc.mallet.types.FeatureVector;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
import cc.mallet.types.MatrixOps... | 10,367 | 30.228916 | 172 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/examples/DocumentClassifier.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,004 | 41.323944 | 93 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tests/TestMaxEntTrainer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,652 | 28.153846 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tests/TestStaticParameters.java | package cc.mallet.classify.tests;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class TestStaticParameters extends TestCase
{
int gamma = 1;
public TestStaticParameters () { }
public static class Factory {
protected static int gamma = 2;
public TestSt... | 926 | 20.068182 | 55 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tests/TestClassifiers.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 4,300 | 29.942446 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tests/TestNaiveBayes.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 11,366 | 32.72997 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Vectors2Classify.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 26,707 | 43.513333 | 159 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Vectors2Vectors.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 15,281 | 41.926966 | 140 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Calo2Classify.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 26,634 | 42.807566 | 159 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/SvmLight2Vectors.java | /* Copyright (C) 2010 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,678 | 35.876623 | 105 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Text2Classify.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,242 | 35.922535 | 105 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Csv2Vectors.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 10,861 | 34.496732 | 117 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Vectors2FeatureConstraints.java | package cc.mallet.classify.tui;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Logger;
import cc.mallet.classify.F... | 9,088 | 36.25 | 149 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Vectors2Info.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,819 | 32.448276 | 98 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Csv2Classify.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,350 | 34.437086 | 102 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Classifier2Info.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,952 | 29.515625 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/Text2Vectors.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 13,251 | 38.440476 | 117 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/tui/SvmLight2Classify.java | /* Copyright (C) 2010 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. Fo... | 5,623 | 34.821656 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/evaluate/Graph2.java | /* Copyright (C) 2002 Department of Computer Science, University of Massachusetts, Amherst
This file is part of "MALET" (MAchine LEarning Toolkit).
http://www.cs.umass.edu/~mccallum/malet
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Lice... | 3,843 | 33.945455 | 90 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/evaluate/GraphItem.java | /* Copyright (C) 2002 Department of Computer Science, University of Massachusetts, Amherst
This file is part of "MALET" (MAchine LEarning Toolkit).
http://www.cs.umass.edu/~mccallum/malet
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Lice... | 2,152 | 35.491525 | 90 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/evaluate/AccuracyCoverage.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 7,196 | 25.459559 | 89 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/evaluate/ConfusionMatrix.java | /* Copyright (C) 2002 Dept. of Computer Science, Univ. of Massachusetts, Amherst
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This program toolkit free software; you can redistribute it and/or
modify it under the terms of the GNU General P... | 7,781 | 27.610294 | 97 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/classify/evaluate/Graph.java | /* Copyright (C) 2002 Department of Computer Science, University of Massachusetts, Amherst
This file is part of "MALET" (MAchine LEarning Toolkit).
http://www.cs.umass.edu/~mccallum/malet
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Lice... | 6,824 | 27.08642 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/DirectoryFilter.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 687 | 25.461538 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/FileUtils.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,357 | 29.617143 | 130 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Maths.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 11,716 | 26.699764 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/UriUtils.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,593 | 26.595745 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/MVNormal.java | package cc.mallet.util;
import java.util.Arrays;
import java.text.NumberFormat;
import cc.mallet.util.Randoms;
import cc.mallet.types.*;
/** Tools for working with multivariate normal distributions */
public class MVNormal {
/** Simple Cholesky decomposition, with no checks on squareness,
* symmetricality, or ... | 19,897 | 27.837681 | 120 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/VectorStats.java | package cc.mallet.util;
/* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by h... | 7,442 | 27.193182 | 88 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Lexer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 864 | 21.763158 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/MalletLogger.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,499 | 32.783784 | 109 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/PrintUtilities.java | package cc.mallet.util;
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
/** A simple utility class that lets you very simply print
* an arbitrary component. Just pass the component to the
* PrintUtilities.printComponent. The component you want to
* print doesn't need a print method and doesn't... | 2,516 | 31.269231 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Timing.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,229 | 29.547945 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/PlainLogFormatter.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 882 | 27.483871 | 80 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/CollectionUtils.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,865 | 26.614286 | 105 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/CommandOption.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 27,009 | 34.30719 | 127 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Univariate.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 4,782 | 22.678218 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/RegexFileFilter.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,795 | 26.212121 | 99 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/PropertyList.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 11,015 | 25.417266 | 103 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Addable.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 609 | 28.047619 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/ProgressMessageLogFormatter.java | package cc.mallet.util;
import java.util.logging.*;
import java.util.Arrays;
/**
* Format ProgressMessages destined for screen.
* Progress messages are repetitive messages, of which only
* the last one is generally of interest.
* Progress messages are a subclass of LogRecord, generated
* by a progressMessageLogger... | 1,592 | 31.510204 | 74 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/BshInterpreter.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,238 | 25.361702 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/ArrayUtils.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 7,563 | 24.640678 | 99 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/DoubleList.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 3,018 | 21.036496 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/ArrayListUtils.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,384 | 23.298246 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/MalletProgressMessageLogger.java | package cc.mallet.util;
import java.util.logging.*;
/**
* Created by IntelliJ IDEA.
* User: hough
* Date: Feb 10, 2004
* Time: 4:37:07 PM
* To change this template use Options | File Templates.
*/
public class MalletProgressMessageLogger extends MalletLogger{
protected MalletProgressMessageLogger (String name,... | 1,971 | 28.432836 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Strings.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,282 | 21.83 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Randoms.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 11,421 | 27.989848 | 115 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/CharSequenceLexer.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 5,069 | 23.258373 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/ProgressMessageLogRecord.java | package cc.mallet.util;
import java.util.logging.LogRecord;
/**
* A log message that is to be written in place (no newline)
* if the message is headed for the user's terminal.
*/
public class ProgressMessageLogRecord extends LogRecord
{
public ProgressMessageLogRecord(LogRecord logRecord)
{
super(logRecord.g... | 361 | 20.294118 | 60 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/IoUtils.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,203 | 25.755556 | 93 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/BulkLoader.java | package cc.mallet.util;
import cc.mallet.types.*;
import cc.mallet.pipe.*;
import cc.mallet.pipe.iterator.*;
import java.util.*;
import java.io.*;
/**
* This class reads through a single file, breaking each line
* into data and (optional) name and label fields.
*/
public class BulkLoader {
static CommandOpt... | 5,904 | 33.735294 | 176 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/Sequences.java | package cc.mallet.util;
import cc.mallet.types.Sequence;
/** Utility methods for cc.mallet.types.Sequence and similar classes. */
public class Sequences {
public static double elementwiseAccuracy (Sequence truth, Sequence predicted) {
int accuracy = 0;
assert (truth.size() == predicted.size());
for (int i = 0... | 593 | 26 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/StatFunctions.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 10,124 | 27.68272 | 98 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/ColorUtils.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,037 | 28.970588 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestRandom.java | /* Copyright (C) 2006 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://mallet.cs.umass.edu/
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensource.org. For... | 1,764 | 26.153846 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestPriorityQueue.java | package cc.mallet.util.tests;
import cc.mallet.util.search.*;
import junit.framework.*;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 18, 2005
* Time: 11:19:36 PM
* Test priority queues and their implementation.
*/
public class TestPriorityQueue extends TestCase {
private static final int N = 10... | 5,290 | 26.847368 | 85 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestMaths.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 2,450 | 25.934066 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestPropertyList.java | /* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,361 | 23.321429 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestStrings.java | /* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... | 1,410 | 26.134615 | 76 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/tests/TestAStar.java | package cc.mallet.util.tests;
import cc.mallet.util.search.*;
import junit.framework.*;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 19, 2005
* Time: 2:36:10 PM
* Test A* search.
*/
public class TestAStar extends TestCase {
private class State implements AStarState {
private double to;
... | 3,287 | 30.92233 | 70 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/AStarNode.java | package cc.mallet.util.search;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 19, 2005
* Time: 1:07:17 PM
* Search node in an A* search.
*/
public class AStarNode extends SearchNode {
/**
* Iterator over new A* search nodes generated by state transitions
* from this node's state.
*/
pub... | 1,194 | 25.555556 | 69 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/SearchState.java | package cc.mallet.util.search;
import java.util.Iterator;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 20, 2005
* Time: 4:54:46 PM
* A state (vertex) in a graph being searched.
*/
public interface SearchState {
/**
* Iterator over the states with transitions from a given state.
*/
publi... | 1,122 | 23.955556 | 83 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/SearchNode.java | package cc.mallet.util.search;
import java.util.Iterator;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 20, 2005
* Time: 4:46:56 PM
*
* Search tree node. A search tree node pertains to some search graph state.
* Multiple nodes may refer to the same state, representing different ways
* of reachin... | 3,173 | 29.228571 | 77 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/AStarState.java | package cc.mallet.util.search;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 20, 2005
* Time: 5:16:05 PM
* Search state with heuristic cost-to-completion.
*/
public interface AStarState extends SearchState {
/**
* Get the cost to completion.
* @return the cost
*/
public abstract double... | 341 | 19.117647 | 50 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/MinHeap.java | package cc.mallet.util.search;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 18, 2005
* Time: 9:11:24 PM
* <p/>
* Binary heap implementation of <code>PriorityQueue</code>.
* Based on algorithm in Corman, Leiserson, Rivest, and Stein (Section 6.5).
*/
public class MinHeap implements PriorityQueue ... | 3,708 | 22.18125 | 100 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/PriorityQueue.java | package cc.mallet.util.search;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 18, 2005
* Time: 7:46:46 PM
*
* Interface representing the basic methods for a priority queue.
*/
public interface PriorityQueue {
/**
* Insert element <code>e</code> into the queue.
* @param e the element to inse... | 1,370 | 23.052632 | 82 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/AStar.java | package cc.mallet.util.search;
import java.util.Iterator;
import java.util.logging.Logger;
import cc.mallet.util.MalletLogger;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 19, 2005
* Time: 1:38:28 PM
* A* search iterator over an underlying graph. The iterator returns
* search nodes for final st... | 2,623 | 28.483146 | 79 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/util/search/QueueElement.java | package cc.mallet.util.search;
/**
* Created by IntelliJ IDEA.
* User: pereira
* Date: Jun 18, 2005
* Time: 7:31:08 PM
*
* Queue elements have a priority, and a queue position.
* Lower-priority elements are closer to the front of the queue.
* The queue position is set by the queue implementation,
* and should... | 1,057 | 26.842105 | 78 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.