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/util/resources/wn/Examples.java | /**
* Java WordNet Library (JWNL)
* See the documentation for copyright information.
*
* @version 1.1
*/
package cc.mallet.util.resources.wn;
import net.didion.jwnl.JWNL;
import net.didion.jwnl.JWNLException;
import net.didion.jwnl.data.IndexWord;
import net.didion.jwnl.data.POS;
import net.didion.jwnl.data.Point... | 4,840 | 41.840708 | 137 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SimpleTagger.java | /* XXX Copyright (C) 2003 University of Pennsylvania.
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. For further
informatio... | 28,782 | 39.653955 | 226 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFOptimizableByBatchLabelLikelihood.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.logging.Logger;
import cc.mallet.optimize.Opt... | 11,283 | 36.993266 | 126 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLatticeFactory.java | package cc.mallet.fst;
import java.io.Serializable;
import cc.mallet.types.LabelAlphabet;
import cc.mallet.types.Sequence;
/**
* Provides factory methods to create inference engine for training a transducer.
*/
public abstract class SumLatticeFactory implements Serializable {
public SumLattice newSumLattice (Tra... | 2,267 | 37.440678 | 150 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MaxLattice.java | package cc.mallet.fst;
import java.util.List;
import cc.mallet.types.Sequence;
import cc.mallet.fst.Transducer.State;
/** The interface to classes implementing the Viterbi algorithm,
* finding the best sequence of states for a given input sequence. */
public interface MaxLattice {
public double getDelta (int inp... | 663 | 32.2 | 69 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLatticeDefault.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import cc.mallet.fst.Transducer.State;
import cc.mallet.fst.Transducer.TransitionIterator;
import cc.mal... | 15,839 | 37.26087 | 160 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFWriter.java | package cc.mallet.fst;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.logging.Logger;
import cc.mallet.types.InstanceList;
import cc.mallet.util.MalletLogger;
/**
* Saves a trained model to specified filename. ... | 1,759 | 31.592593 | 121 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLattice.java | package cc.mallet.fst;
import cc.mallet.fst.Transducer.State;
import cc.mallet.types.LabelVector;
/**
* Interface to perform forward-backward during training of a transducer.
*/
public interface SumLattice {
public double[][][] getXis();
public double[][] getGammas();
public double getTotalWeight ();
public dou... | 764 | 32.26087 | 73 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CacheStaleIndicator.java | package cc.mallet.fst;
/**
* Indicates when the value/gradient during training becomes stale. <p>
*
* See <tt>ThreadedOptimizable</tt>.
*
* @author Gaurav Chandalia
*/
public interface CacheStaleIndicator {
public boolean isValueStale();
public boolean isGradientStale();
}
| 284 | 18 | 71 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MEMM.java | /* Copyright (C) 2004 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,375 | 30.941606 | 109 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFTrainerByStochasticGradient.java | package cc.mallet.fst;
import java.util.ArrayList;
import java.util.Collections;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
import cc.mallet.types.Sequence;
import cc.mallet.fst.TransducerTrainer.ByInstanceIncrements;
/**
* Trains CRF by stoc... | 7,237 | 29.669492 | 78 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/LabelDistributionEvaluator.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,413 | 36.138462 | 151 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLatticeBeam.java | package cc.mallet.fst;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import cc.mallet.fst.Transducer.State;
import cc.mallet.fst.Transducer.TransitionIterator;
import cc.mallet.types.DenseVector;
import cc.mallet.types.LabelAlphabet;
import cc.mallet.types.LabelVector;
i... | 38,215 | 33.710263 | 214 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/ShallowTransducerTrainer.java | package cc.mallet.fst;
import cc.mallet.types.InstanceList;
/**
* Wraps around an already trained <tt>Transducer</tt> model. <p>
*
* Use this class to pass to the <tt>*Evaluator.evaluateInstanceList</tt> when we
* don't have access to the *Trainer that was used to train the Transducer model.
*
* @author Gaur... | 896 | 31.035714 | 82 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/Transducer.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... | 14,943 | 35.627451 | 140 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/HMMTrainerByLikelihood.java | package cc.mallet.fst;
import java.util.logging.Logger;
import cc.mallet.types.FeatureSequence;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
import cc.mallet.util.MalletLogger;
public class HMMTrainerByLikelihood extends TransducerTrainer {
private static Logger logger = MalletLogger
.ge... | 2,526 | 25.051546 | 74 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/InstanceAccuracyEvaluator.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,407 | 34.411765 | 121 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MaxLatticeDefault.java | /* 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 Public License,
version 1.0, as published by http://www.opensou... | 18,893 | 36.047059 | 137 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLatticeScaling.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import cc.mallet.fst.Transducer.State;
import cc.mallet.fst.Transducer.TransitionIterator;
import cc.ma... | 12,029 | 30.492147 | 78 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFTrainerByL1LabelLikelihood.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import cc.mallet.optimize.Optimizer;
import cc.mallet.optimize.OrthantWiseLimitedMemoryBFGS;
import cc.mallet.types.InstanceList;
/**
* CRF trainer that implements L1-regularization.
*
* @autho... | 1,629 | 24.076923 | 80 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFCacheStaleIndicator.java | package cc.mallet.fst;
/**
* Indicates when the value/gradient becomes stale based on updates to CRF's
* parameters.
*
* @author Gaurav Chandalia
*/
public class CRFCacheStaleIndicator implements CacheStaleIndicator {
protected CRF crf;
protected int cachedValueChangeStamp = -1;
protected int cachedGradientC... | 1,041 | 22.681818 | 79 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SimpleTaggerStdin.java | /* Copyright (C) 2003 University of Pennsylvania.
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. For further
information, s... | 30,337 | 40.615912 | 226 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MEMMTrainer.java | package cc.mallet.fst;
import java.util.BitSet;
import java.util.logging.Logger;
import cc.mallet.types.FeatureSequence;
import cc.mallet.types.FeatureVector;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
import cc.mallet.fst.MEMM.State;
import cc... | 11,863 | 34.100592 | 126 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFTrainerByLabelLikelihood.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Logger;
import cc.mallet.optimize.LimitedMemoryBFGS;
import cc.mallet.optimize.Optimizer;
import cc.mallet.types.ExpGain... | 22,580 | 43.714851 | 160 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/NoopTransducerTrainer.java | package cc.mallet.fst;
import cc.mallet.types.InstanceList;
/** A TransducerTrainer that does no training, but simply acts as a container for a Transducer;
* for use in situations that require a TransducerTrainer, such as the TransducerEvaluator methods. */
public class NoopTransducerTrainer extends TransducerTraine... | 824 | 19.121951 | 102 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/FeatureTransducer.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,892 | 30.630319 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/TransducerTrainer.java | package cc.mallet.fst;
import java.util.ArrayList;
import java.util.Collection;
import cc.mallet.optimize.Optimizer;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
/**
* An abstract class to train and evaluate a transducer model.
*/
public abstract class TransducerTrainer {
// The list of e... | 2,664 | 39.378788 | 118 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/TokenAccuracyEvaluator.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,482 | 35.28125 | 172 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MaxLatticeFactory.java | package cc.mallet.fst;
import java.io.Serializable;
import cc.mallet.types.Sequence;
public abstract class MaxLatticeFactory implements Serializable {
public MaxLattice newMaxLattice (Transducer trans, Sequence inputSequence)
{
return newMaxLattice (trans, inputSequence, null);
}
// You may pass null for o... | 440 | 23.5 | 110 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/PerClassAccuracyEvaluator.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,187 | 37.409639 | 96 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/Segment.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,873 | 31.932432 | 105 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRF.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... | 76,573 | 37.949135 | 270 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SumLatticeConstrained.java | package cc.mallet.fst;
import java.util.logging.Level;
import java.util.logging.Logger;
import cc.mallet.fst.SumLatticeDefault.LatticeNode;
import cc.mallet.fst.Transducer.State;
import cc.mallet.fst.Transducer.TransitionIterator;
import cc.mallet.types.DenseVector;
import cc.mallet.types.LabelAlphabet;
import cc.mal... | 20,145 | 46.739336 | 214 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/ViterbiWriter.java | package cc.mallet.fst;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import cc.mallet.types.FeatureVector;
import cc.mallet.types.Instance;
import cc.mallet.types.InstanceList;
import cc.mallet.types.Sequence;
import cc.mallet.types.TokenSequence;
/**
* Prints the input in... | 4,064 | 40.060606 | 127 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFTrainerByValueGradients.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.BitSet;
import java.util.Random;
import java.util.logging.Logger;
import cc.mallet.types.InstanceList;
import cc.mallet.types.MatrixOps;
import cc.mal... | 13,626 | 36.334247 | 160 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/MultiSegmentationEvaluator.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... | 15,536 | 40.991892 | 139 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/TransducerEvaluator.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,015 | 34.482353 | 130 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/ThreadedOptimizable.java | package cc.mallet.fst;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadPoolExecutor;
import ... | 7,238 | 28.307692 | 94 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFTrainerByThreadedLabelLikelihood.java | package cc.mallet.fst;
import java.util.Random;
import java.util.logging.Logger;
import cc.mallet.optimize.LimitedMemoryBFGS;
import cc.mallet.optimize.Optimizer;
import cc.mallet.types.InstanceList;
import cc.mallet.util.MalletLogger;
/**
* @author Gregory Druck gdruck@cs.umass.edu
*
* Multi-threaded version of ... | 6,748 | 35.879781 | 120 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFOptimizableByGradientValues.java | package cc.mallet.fst;
import java.util.logging.Logger;
import cc.mallet.optimize.Optimizable;
import cc.mallet.types.MatrixOps;
import cc.mallet.util.MalletLogger;
/**
* A CRF objective function that is the sum of multiple
* objective functions that implement Optimizable.ByGradientValue.
*
* @author Gregory Dru... | 2,935 | 30.234043 | 104 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/CRFOptimizableByLabelLikelihood.java | package cc.mallet.fst;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.BitSet;
import java.util.logging.Logger;
import cc.mallet.types.FeatureSequence;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.types.I... | 12,452 | 41.501706 | 151 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/SegmentationEvaluator.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,733 | 43.705202 | 213 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/HMM.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... | 39,464 | 32.191758 | 89 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/CRFTrainerByEntropyRegularization.java | package cc.mallet.fst.semi_supervised;
import java.util.logging.Logger;
import cc.mallet.fst.CRF;
import cc.mallet.fst.CRFOptimizableByGradientValues;
import cc.mallet.fst.CRFOptimizableByLabelLikelihood;
import cc.mallet.fst.Transducer;
import cc.mallet.fst.TransducerTrainer;
import cc.mallet.optimize.LimitedMemoryB... | 5,791 | 32.097143 | 118 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GEL2Criteria.java | package cc.mallet.fst.semi_supervised;
import java.util.Map;
public class GEL2Criteria extends GECriteria {
public GEL2Criteria(int numStates, StateLabelMap stateLabelMap,
Map<Integer, GECriterion> constraints) {
super(numStates, stateLabelMap, constraints);
}
/**
* Computes sum of GE constraint values.... | 1,225 | 30.435897 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/CRFOptimizableByGECriteria.java | package cc.mallet.fst.semi_supervised;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.u... | 14,179 | 29.560345 | 96 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GEKLCriteria.java | package cc.mallet.fst.semi_supervised;
import java.util.Map;
public class GEKLCriteria extends GECriteria {
public GEKLCriteria(int numStates, StateLabelMap stateLabelMap,
Map<Integer, GECriterion> constraints) {
super(numStates, stateLabelMap, constraints);
}
/**
* Computes sum of GE constraint values.... | 1,439 | 30.304348 | 75 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GELattice.java | package cc.mallet.fst.semi_supervised;
import java.util.BitSet;
import java.util.Iterator;
import cc.mallet.fst.Transducer;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.types.MatrixOps;
/**
* Runs the dynamic programming algorithm of [Mann and McCallum 08] for
* computing the gradient of a Gene... | 11,971 | 36.065015 | 111 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/EntropyLattice.java | package cc.mallet.fst.semi_supervised;
import cc.mallet.fst.Transducer;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.util.Maths;
/**
* Runs subsequence constrained forward-backward to compute the entropy of label
* sequences. <p>
*
* Reference:
* Gideon Mann, Andrew McCallum
* "Efficient Compu... | 7,427 | 32.013333 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/StateLabelMap.java | package cc.mallet.fst.semi_supervised;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
import cc.mallet.types.Alphabet;
/**
* Maps states in the lattice to labels. <p>
*
* When a custom state machine is constructed while training a CRF, it is
* possible that several states m... | 7,190 | 32.919811 | 80 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GEL2Criterion.java | package cc.mallet.fst.semi_supervised;
public class GEL2Criterion extends GECriterion {
public GEL2Criterion(String name, double[] target, double weight) {
super(name, target, weight);
}
@Override
protected double getGradientConstant(int labelIndex) {
return 2 * (target[labelIndex] - expectation[labelIndex])... | 335 | 23 | 68 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/CRFOptimizableByEntropyRegularization.java | package cc.mallet.fst.semi_supervised;
import java.io.Serializable;
import java.util.logging.Logger;
import cc.mallet.types.FeatureVectorSequence;
import cc.mallet.types.InstanceList;
import cc.mallet.fst.CRF;
import cc.mallet.fst.SumLattice;
import cc.mallet.fst.SumLatticeDefault;
import cc.mallet.fst.Transducer;
imp... | 5,400 | 31.341317 | 112 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GEKLCriterion.java | package cc.mallet.fst.semi_supervised;
public class GEKLCriterion extends GECriterion {
public GEKLCriterion(String name, double[] target, double weight) {
super(name, target, weight);
}
/**
* Returns the target/expectation ratio required in lattice computations. <p>
*
* *Note*: The ratio is divided by the... | 529 | 26.894737 | 79 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/CRFTrainerByGE.java | package cc.mallet.fst.semi_supervised;
import java.util.HashMap;
import java.util.logging.Logger;
import cc.mallet.fst.CRF;
import cc.mallet.fst.Transducer;
import cc.mallet.fst.TransducerTrainer;
import cc.mallet.optimize.LimitedMemoryBFGS;
import cc.mallet.types.InstanceList;
import cc.mallet.util.MalletLogger;
/*... | 4,447 | 26.627329 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GECriteria.java | package cc.mallet.fst.semi_supervised;
import java.util.BitSet;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.logging.Logger;
import cc.mallet.fst.SumLattice;
im... | 13,254 | 31.809406 | 85 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/semi_supervised/GECriterion.java | package cc.mallet.fst.semi_supervised;
public abstract class GECriterion {
protected String name;
protected double weight;
// target expectation
protected double[] target;
// model expectation
protected double[] expectation;
protected double count;
public GECriterion(String name, dou... | 1,826 | 20.244186 | 69 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/tests/TestCRF.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... | 43,750 | 38.063393 | 771 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/tests/TestSumNegLogProb2.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,542 | 23.492063 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/tests/TestMEMM.java | package cc.mallet.fst.tests;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.fr... | 26,266 | 39.598145 | 771 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/tests/TestFeatureTransducer.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,985 | 27.676259 | 107 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ViterbiRatioConfidenceEstimator.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,009 | 35.545455 | 98 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ViterbiConfidenceEstimator.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,639 | 32.469388 | 118 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/MaxEntConfidenceEstimator.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,129 | 32.809524 | 91 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ConfidenceEvaluator.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,392 | 29.220159 | 118 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/RandomSequenceConfidenceEstimator.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,377 | 27.122449 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/MaxEntSequenceConfidenceEstimator.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,536 | 35.84375 | 110 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ConstrainedViterbiTransducerCorrector.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,378 | 38.338028 | 110 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/GammaAverageConfidenceEstimator.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,117 | 33.721311 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/NBestViterbiConfidenceEstimator.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,277 | 35.15873 | 134 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/GammaProductConfidenceEstimator.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,080 | 35.508772 | 119 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/SequenceConfidenceInstance.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,420 | 32.046512 | 85 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/QBCSequenceConfidenceEstimator.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,062 | 31.935484 | 108 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/PipedInstanceWithConfidence.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,313 | 29.55814 | 85 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/SegmentProductConfidenceEstimator.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,839 | 32.454545 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/RandomConfidenceEstimator.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,273 | 29.333333 | 89 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/MinSegmentConfidenceEstimator.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,851 | 30.931034 | 88 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ConstrainedForwardBackwardConfidenceEstimator.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,937 | 38.55102 | 111 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/ConfidenceCorrectorEvaluator.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,853 | 43.625 | 133 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/TransducerConfidenceEstimator.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,815 | 35.692308 | 108 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/IsolatedSegmentTransducerCorrector.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,259 | 40.764706 | 130 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/TransducerSequenceConfidenceEstimator.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,845 | 36.946667 | 110 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/InstanceWithConfidence.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,636 | 28.232143 | 85 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/fst/confidence/TransducerCorrector.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,155 | 34.030303 | 88 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/MaxEntShell.java | /* Copyright (C) 2003 University of Pennsylvania.
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. For further
in... | 12,945 | 36.416185 | 225 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/ner/ListMember.java | package cc.mallet.share.upenn.ner;
import java.io.*;
import java.util.*;
import cc.mallet.pipe.*;
import cc.mallet.types.*;
import gnu.trove.*;
/**
* Checks membership in a lexicon in a text file. Multi-token items are supported,
* but only if the tokens are uniformly separated or not separated by spaces: that ... | 3,175 | 34.288889 | 107 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/ner/LengthBins.java | package cc.mallet.share.upenn.ner;
import java.util.*;
import cc.mallet.pipe.*;
import cc.mallet.types.*;
/**
* A feature approximating string length.
*/
public class LengthBins extends Pipe implements java.io.Serializable {
String name;
int[] bins;
String[] binNames;
/**
* <p>bins contains... | 1,518 | 27.12963 | 75 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/ner/NEPipes.java | package cc.mallet.share.upenn.ner;
import java.io.*;
import java.util.*;
import java.util.regex.*;
import cc.mallet.pipe.*;
import cc.mallet.pipe.tsf.*;
import cc.mallet.share.weili.ner.enron.*;
import cc.mallet.types.*;
public class NEPipes extends SerialPipes {
// *** General-purpose regex
// Single-to... | 10,781 | 50.836538 | 262 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/ner/FeatureWindow.java | package cc.mallet.share.upenn.ner;
import java.util.*;
import cc.mallet.pipe.*;
import cc.mallet.types.*;
import cc.mallet.util.*;
import gnu.trove.*;
/**
* Adds all features of tokens in the window to the center token.
*/
public class FeatureWindow extends Pipe implements java.io.Serializable {
int left, ri... | 1,739 | 32.461538 | 80 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/upenn/ner/LongRegexMatches.java | package cc.mallet.share.upenn.ner;
import java.util.regex.*;
import cc.mallet.pipe.*;
import cc.mallet.types.*;
/**
* Matches a regular expression which spans several tokens.
*/
public class LongRegexMatches extends Pipe implements java.io.Serializable {
String name;
Pattern regex;
int min; // how ma... | 1,766 | 30.553571 | 83 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/mccallum/ner/TokenSequenceDocHeader.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,111 | 31 | 92 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/mccallum/ner/ConllNer2003Sentence2TokenSequence.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,636 | 26.632353 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/mccallum/ner/TUI.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,609 | 39.993976 | 98 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/weili/ner/WordTransformation.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,812 | 28 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/weili/ner/enron/EnronMessage2TokenSequence.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,489 | 29.571429 | 105 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/weili/ner/enron/TUI.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,072 | 51.478673 | 106 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/share/casutton/ner/ConllNer2003Sentence2TokenSequence.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,448 | 27.662222 | 95 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/topics/LDA.java | /* 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 Public License,
version 1.0, as published by http://www.opensou... | 17,528 | 34.920082 | 119 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/topics/TopicAssignment.java | package cc.mallet.topics;
import java.io.Serializable;
import cc.mallet.types.*;
/** This class combines a sequence of observed features
* with a sequence of hidden "labels".
*/
public class TopicAssignment implements Serializable {
public Instance instance;
public LabelSequence topicSequence;
public Labeling... | 503 | 24.2 | 74 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/topics/HierarchicalPAM.java | package cc.mallet.topics;
import cc.mallet.types.*;
import cc.mallet.util.*;
import java.util.Arrays;
import java.io.*;
import java.text.NumberFormat;
import java.util.logging.*;
/**
* Hierarchical PAM, where each node in the DAG has a distribution over all topics on the
* next level and one additional "node-sp... | 27,997 | 35.408322 | 146 | java |
twitter_nlp | twitter_nlp-master/mallet-2.0.6/src/cc/mallet/topics/MarginalProbEstimator.java | /* 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 Public License,
version 1.0, as published by http://www.opensou... | 18,107 | 27.338028 | 105 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.