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/cluster/tui/Clusterings2Clusterer.java
package cc.mallet.cluster.tui; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.logging.Logger; import cc.mal...
13,666
33.953964
127
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/tui/Clusterings2Clusterings.java
package cc.mallet.cluster.tui; import gnu.trove.TIntHashSet; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.logging.Logger; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.Cluste...
7,214
38.211957
149
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/AccuracyEvaluator.java
package cc.mallet.cluster.evaluate; import cc.mallet.cluster.Clustering; /** * Accuracy of a clustering is (truePositive + trueNegative) / (numberPairwiseComparisons) * @author culotta * */ public class AccuracyEvaluator extends ClusteringEvaluator { int correctTotal; int comparisonsTotal; public AccuracyEv...
1,163
23.765957
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/ClusteringEvaluators.java
package cc.mallet.cluster.evaluate; import cc.mallet.cluster.Clustering; /** * A list of {@link ClusteringEvaluators}. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1.0 * @since 1.0 */ public class ClusteringEvaluators extends ClusteringEvaluator { ClusteringEvaluator[] evaluators; pub...
1,563
25.066667
78
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/ClusteringEvaluator.java
package cc.mallet.cluster.evaluate; import cc.mallet.cluster.Clusterer; import cc.mallet.cluster.Clustering; /** * Evaluates a predicted Clustering against a true Clustering. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1.0 * @since 1.0 */ public abstract class ClusteringEvaluator { /** ...
1,206
25.822222
87
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/MUCEvaluator.java
package cc.mallet.cluster.evaluate; import java.util.HashSet; import cc.mallet.cluster.Clustering; /** * Evaluate a Clustering using the MUC evaluation metric. See Marc * Vilain, John Burger, John Aberdeen, Dennis Connolly, and Lynette * Hirschman. 1995. A model-theoretic coreference scoring scheme. In * Procee...
2,892
34.716049
106
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/BCubedEvaluator.java
package cc.mallet.cluster.evaluate; import cc.mallet.cluster.Clustering; import cc.mallet.types.InstanceList; /** * Evaluate a Clustering using the B-Cubed evaluation metric. See * Bagga & Baldwin, "Algorithms for scoring coreference chains." * * Unlike other metrics, this evaluation awards points to correct * s...
2,105
27.849315
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/PairF1Evaluator.java
package cc.mallet.cluster.evaluate; import cc.mallet.cluster.Clustering; /** * Evaluates two clustering using pairwise comparisons. For each pair * of Instances, compute false positives and false negatives as in * classification performance, determined by whether the pair should * be in the same cluster or not. ...
2,059
28.428571
82
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/evaluate/tests/TestClusteringEvaluators.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,055
32.217391
87
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/AugmentableFeatureVectorAddConjunctions.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,341
26.958333
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Array2FeatureVector.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,805
26.782178
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SGML2TokenSequence.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,444
28.917582
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceRemoveNonAlpha.java
package cc.mallet.pipe; import java.io.ObjectOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import cc.mallet.types.FeatureSequenceWithBigrams; import cc.mallet.types.Instance; import cc.mallet.types.Token; import cc.mallet.types.TokenSequence; import cc.mallet.util.CharSequenceLexer; /*...
2,475
32.013333
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureValueString2FeatureVector.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,994
27.5
85
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SaveDataInSource.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
25
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequence2TokenInstances.java
package cc.mallet.pipe; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Iterator; import cc.mallet.types.Instance; import cc.mallet.types.LabelSequence; import cc.mallet.types.TokenSequence; public class TokenSequence2TokenInstances extends Pipe { ...
1,889
28.53125
105
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SimpleTokenizer.java
package cc.mallet.pipe; import cc.mallet.types.*; import java.util.HashSet; import java.util.ArrayList; import java.io.*; /** * A simple unicode tokenizer that accepts sequences of letters * as tokens. */ public class SimpleTokenizer extends Pipe { public static final int USE_EMPTY_STOPLIST = 0; public st...
4,545
24.829545
86
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequenceRemoveUUEncodedBlocks.java
package cc.mallet.pipe; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.regex.Matcher; import java.util.regex.Pattern; import cc.mallet.pipe.Pipe; import cc.mallet.types.Instance; public class CharSequenceRemoveUUEncodedBlocks extends Pipe { /** ...
1,445
27.352941
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SvmLight2FeatureVectorAndLabel.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...
2,848
32.916667
83
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureSequenceConvolution.java
/** * */ package cc.mallet.pipe; import cc.mallet.types.Alphabet; import cc.mallet.types.FeatureSequence; import cc.mallet.types.Instance; import cc.mallet.types.TokenSequence; /** * @author lmyao * Convert Feature sequence */ public class FeatureSequenceConvolution extends Pipe { /** * */ public Featu...
1,651
20.736842
68
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Directory2FileIterator.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,182
24.682353
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSubsequence.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,094
26.565789
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/BranchingPipe.java
package cc.mallet.pipe; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import cc.mallet.pipe.iterator.EmptyInstanceIterator; import cc.mallet.types.Instance; /** A Pipe that works like a rule list. Evaluate predicate() on each Pipe in the array; * the first one that returns tru...
4,644
33.154412
115
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequence2TokenSequence.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,139
27.035714
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TargetRememberLastLabel.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.opens...
2,169
30
87
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Csv2FeatureVector.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,293
30
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SimpleTaggerSentence2StringTokenization.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...
4,048
30.632813
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequence2FeatureVectorSequence.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,718
28.554348
94
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/PrintInput.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,620
22.157143
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Filename2CharSequence.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,905
25.84507
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequence2CharNGrams.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,563
29.52381
94
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceParseFeatureString.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,425
38.897059
121
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SourceLocation2TokenSequence.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,503
27.454545
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/PrintInputAndTarget.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,784
26.045455
104
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/AugmentableFeatureVectorLogScale.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,310
28.133333
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/StringAddNewLineDelimiter.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,750
28.183333
108
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Target2LabelSequence.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,968
31.988889
97
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Token2FeatureVector.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,339
27.536585
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceNGrams.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,136
26.050633
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequenceLowercase.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,476
28.54
121
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/MakeAmpersandXMLFriendly.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,558
24.145161
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceMatchDataAndTarget.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,552
28.608333
104
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Input2CharSequence.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,493
25.469697
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SerialPipes.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,012
26.29932
99
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequence2FeatureSequenceWithBigrams.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...
1,985
26.205479
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceLowercase.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,439
27.235294
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureSequence2FeatureVector.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,766
25.772727
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FilterEmptyFeatureVectors.java
package cc.mallet.pipe; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Iterator; import cc.mallet.types.FeatureVector; import cc.mallet.types.Instance; public class FilterEmptyFeatureVectors extends Pipe { private class FilteringPipeInstanceIterat...
1,898
25.746479
105
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SimpleTaggerSentence2TokenSequence.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...
5,578
33.652174
109
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/AddClassifierTokenPredictions.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,060
33.191099
150
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequenceReplace.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,985
28.641791
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureCountPipe.java
package cc.mallet.pipe; import cc.mallet.types.*; import java.io.*; /** * Pruning low-count features can be a good way to save memory and computation. * However, in order to use Vectors2Vectors, you need to write out the unpruned * instance list, read it back into memory, collect statistics, create new * ...
3,809
26.021277
85
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Noop.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,646
25.564516
96
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Target2Label.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,742
30.690909
94
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/LineGroupString2TokenSequence.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,961
25.513514
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequenceArray2TokenSequence.java
/* Copyright (C) 2003 Univiversity 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 ...
1,382
27.8125
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Target2FeatureSequence.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,779
28.180328
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/StringList2FeatureSequence.java
package cc.mallet.pipe; import java.io.*; import java.util.ArrayList; import cc.mallet.types.Alphabet; import cc.mallet.types.FeatureSequence; import cc.mallet.types.Instance; /** * Convert a list of strings into a feature sequence */ public class StringList2FeatureSequence extends Pipe { public long totalNa...
1,133
22.142857
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/PipeUtils.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,962
34.690909
99
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequence2FeatureSequence.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,370
25.882353
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureSequence2AugmentableFeatureVector.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,331
26.75
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Classification2ConfidencePredictingFeatureVector.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,456
38.041885
147
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Pipe.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...
12,802
35.166667
119
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TokenSequenceRemoveStopwords.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...
12,725
14.078199
96
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureVectorSequence2FeatureVectors.java
package cc.mallet.pipe; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Iterator; import cc.mallet.types.FeatureVectorSequence; import cc.mallet.types.Instance; import cc.mallet.types.LabelSequence; /** Given instances with a FeatureVectorSequence in ...
2,254
34.234375
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/CharSequenceRemoveHTML.java
/* Copyright (C) 2006 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...
2,658
27.287234
82
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/PipeException.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...
598
27.52381
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/Csv2Array.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,507
27.827586
140
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/SelectiveSGML2TokenSequence.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,691
27.436364
96
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/PrintTokenSequenceFeatures.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,804
28.840426
115
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/FeatureVectorConjunctions.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,825
28.451613
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/TargetStringToFeatures.java
package cc.mallet.pipe; import cc.mallet.types.*; import cc.mallet.pipe.*; import java.io.Serializable; import java.util.Arrays; public class TargetStringToFeatures extends Pipe implements Serializable { public TargetStringToFeatures () { super(null, new Alphabet()); } public Instance pipe(Instance carrier) { ...
1,622
30.211538
119
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/InstanceListTrimFeaturesByCount.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,353
25.038462
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/RandomTokenSequenceIterator.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,504
35.456954
100
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/FileIterator.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...
9,348
32.629496
122
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/RandomFeatureVectorIterator.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,603
35.38961
100
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/LineGroupIterator.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,955
27.699029
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/CsvIterator.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,639
28.836066
109
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/UnlabeledFileIterator.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,935
33.312139
122
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/EmptyInstanceIterator.java
package cc.mallet.pipe.iterator; import java.util.Iterator; import cc.mallet.types.Instance; public class EmptyInstanceIterator implements Iterator<Instance> { public boolean hasNext() { return false; } public Instance next () { throw new IllegalStateException ("This iterator never has any instances."); } public...
420
31.384615
104
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/ConcatenatedInstanceIterator.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,458
23.316667
114
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/PatternMatchIterator.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,856
25.913043
89
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/SegmentIterator.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,501
38.072917
126
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/PipeExtendedIterator.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...
2,006
28.086957
112
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/FileUriIterator.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,442
24.315789
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/FileListIterator.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. ...
8,609
32.764706
118
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/ArrayIterator.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,510
21.552239
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/LineIterator.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,839
27.979592
102
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/PipeInputIterator.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,537
31.723404
106
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/SimpleFileLineIterator.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,454
23.306931
89
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/SelectiveFileLineIterator.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...
1,985
25.131579
89
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/StringArrayIterator.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....
1,228
26.311111
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/ParenGroupIterator.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,453
23.54
89
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/ArrayDataAndTargetIterator.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 inf...
1,730
26.47619
104
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/iterator/tests/TestPatternMatchIterator.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,620
26.016667
101
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestSGML2TokenSequence.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,400
23.752577
86
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestPipeUtils.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,592
27.744
109
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestInstancePipe.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,049
27.240741
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestIterators.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,799
25.865672
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestRainbowStyle.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,564
23.453125
101
java