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/types/FeatureVectorSequence.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,885
23.136646
105
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Labeling.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,483
27.538462
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/RankedFeatureVector.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,633
25.323171
118
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/FeatureSelector.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,708
29.908333
111
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/IndexedSparseVector.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,359
27.307692
135
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Matrix.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,653
34.956522
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/KLGain.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,153
39.167488
109
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/PerLabelFeatureCounts.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,493
30.56962
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/ChainedInstanceIterator.java
package cc.mallet.types; import java.util.Iterator; /** Under development, and not sure we actually want to have a class list this. * It seems quite dangerous, and error-prone. */ @Deprecated public abstract class ChainedInstanceIterator implements Iterator<Instance> { Iterator<Instance> source; ChainedInsta...
1,623
37.666667
114
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/DenseMatrix.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,143
28.339286
97
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/MatrixOps.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.opensource.org. Fo...
16,208
26.566327
128
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/SingleInstanceIterator.java
package cc.mallet.types; import java.util.Iterator; public class SingleInstanceIterator implements Iterator<Instance> { Instance nextInstance; boolean doesHaveNext; public SingleInstanceIterator (Instance inst) { nextInstance = inst; doesHaveNext = true; } public boolean hasNext() { return doesHaveNe...
514
17.392857
104
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/IDSorter.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,699
27.813559
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Instance.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,856
30.809717
102
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Labels.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,310
27.8875
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/InfoGain.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,927
33.465116
110
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/PartiallyRankedFeatureVector.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,966
20.656934
87
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/ExpGain.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,602
41.17027
166
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/FeatureCounts.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,165
28.27027
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Sequence.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...
644
25.875
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Vector.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...
976
28.606061
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/AlphabetCarrying.java
package cc.mallet.types; /** An interface for objects that contain one or more Alphabets. * <p> * The primary kind of type checking among MALLET objects such as Instances, InstanceLists, Classifiers, etc is * by checking that their Alphabets match. */ public interface AlphabetCarrying { Alphabet getAlphabet(); ...
477
38.833333
127
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Matrixn.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,815
26.695238
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Alphabet.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,801
27.764706
125
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/PropertyHolder.java
package cc.mallet.types; import cc.mallet.util.PropertyList; /** * Author: saunders Created Nov 15, 2005 Copyright (C) Univ. of Massachusetts Amherst, Computer Science Dept. */ public interface PropertyHolder { public void setProperty(String key, Object value); public Object getProperty(String key); public voi...
816
23.757576
109
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/InstanceList.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...
34,294
31.881112
142
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/TokenSequence.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,368
23.544944
97
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Multinomial.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,337
27.788069
108
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/DenseVector.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,933
26.472222
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/CachedMetric.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...
893
30.928571
88
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/PerLabelInfoGain.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,964
32.138889
133
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/FeatureVector.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,231
31.067368
112
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/LabelAlphabet.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,567
23.888889
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/MultiInstanceList.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...
13,220
28.38
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/StringEditVector.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. ...
3,525
24.185714
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/ArraySequence.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,696
20.2125
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/PagedInstanceList.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...
19,955
33.525952
110
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Labeler.java
package cc.mallet.types; public interface Labeler { /** Given the (presumably unlabeled) instanceToLabel, set its target field to the true label. * @return true if labeling occurred successfully, false if for some reason the instance could not be labeled. */ public boolean label (Instance instanceToLabel); }
315
38.5
114
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Minkowski.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,362
23.911111
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/LabelSequence.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,377
21.647619
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/AugmentableFeatureVector.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...
23,210
29.78382
140
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/ArrayListSequence.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...
743
28.76
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/GradientGain.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,141
33.231405
97
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/LabelsSequence.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,491
27.643678
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/SequencePairAlignment.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...
886
22.972973
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/Token.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,024
25.655629
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/AlphabetFactory.java
package cc.mallet.types; import java.io.*; public class AlphabetFactory { /** Create a dummy alphabet with <code>n</code> dimensions */ public static Alphabet alphabetOfSize (int n) { Alphabet alphabet = new Alphabet(); for (int i = 0; i < n; i++) { alphabet.lookupIndex("d" + i); } return alphabet; } ...
981
23.55
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/NormalizedDotProductMetric.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,075
30.938462
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/InvertedIndex.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,540
28.894118
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/GainRatio.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....
12,552
33.111413
207
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/InstanceListTUI.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,401
40.571429
111
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestToken.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,128
23.755814
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestRankedFeatureVector.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,401
25.961538
127
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestMatrix.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,170
21.960784
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestMatrixn.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,318
26.204918
83
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestHashedSparseVector.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,392
31.857778
107
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestSparseMatrixn.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,823
27.117647
94
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestLabelVector.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,625
22.228571
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestAugmentableFeatureVector.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,119
28.158879
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestIndexedSparseVector.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,699
32.920705
98
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestLabelAlphabet.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...
2,448
26.829545
80
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestFeatureVector.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,104
24.361446
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestMultinomial.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,267
26.325301
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestPagedInstanceList.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,511
30.079646
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestAlphabet.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,963
26.277778
78
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestSparseVector.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,154
32.016194
155
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestFeatureSequence.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,641
24.65625
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestInstanceListWeights.java
package cc.mallet.types.tests; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; import cc.mallet.types.*; import cc.mallet.pipe.*; public class TestInstanceListWeights { @Test public void setWeights() { InstanceList instances = new InstanceList(n...
1,174
29.921053
72
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestLabelsSequence.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,181
30.171429
94
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/types/tests/TestSerializable.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,898
26.349057
86
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/Clusterer.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,699
28.824561
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/KMeans.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.open...
10,579
30.117647
82
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/Clusterings.java
package cc.mallet.cluster; import java.io.Serializable; public class Clusterings implements Serializable { private static final long serialVersionUID = 1L; Clustering[] clusterings; public Clusterings (Clustering[] clusterings) { this.clusterings = clusterings; } public Clustering get (int i) { return c...
481
20.909091
85
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/Clustering.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...
4,444
28.633333
96
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/HillClimbingClusterer.java
package cc.mallet.cluster; import java.util.LinkedList; import cc.mallet.cluster.neighbor_evaluator.NeighborEvaluator; import cc.mallet.pipe.Pipe; import cc.mallet.types.InstanceList; /** * A Clusterer that iteratively improves a predicted Clustering using * a {@link NeighborEvaluator}. * * @author "Aron Culott...
3,204
27.362832
114
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/GreedyAgglomerative.java
package cc.mallet.cluster; import java.util.logging.Logger; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.neighbor_evaluator.Neighbor; import cc.mallet.cluster.neighbor_evaluator.NeighborEvaluator; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.cluster.util....
5,172
27.899441
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/GreedyAgglomerativeByDensity.java
package cc.mallet.cluster; import java.util.logging.Logger; import cc.mallet.cluster.neighbor_evaluator.NeighborEvaluator; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.pipe.Pipe; import cc.mallet.types.Instance; import cc.mallet.util.MalletProgressMessageLogger; import gnu.trove.TIntArrayList; /** ...
5,315
33.076923
95
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/Record.java
package cc.mallet.cluster; import gnu.trove.TIntObjectHashMap; import java.io.Serializable; import cc.mallet.types.Alphabet; import cc.mallet.types.AugmentableFeatureVector; import cc.mallet.types.FeatureVector; public class Record implements Serializable { private static final long serialVersionUID = 1L; Alpha...
2,387
27.428571
81
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/KBestClusterer.java
package cc.mallet.cluster; import cc.mallet.pipe.Pipe; import cc.mallet.types.InstanceList; /** * Return the K best predicted Clusterings * @author culotta * */ public abstract class KBestClusterer extends Clusterer { public KBestClusterer(Pipe instancePipe) { super(instancePipe); } public abstract Cluste...
378
17.95
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/AllPairsIterator.java
package cc.mallet.cluster.iterator; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.types.Instance; import cc.mallet.types.InstanceList; /** * Iterate over all pairs of Instances. * * @author "Aron ...
1,173
20.345455
66
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/NeighborIterator.java
package cc.mallet.cluster.iterator; import java.util.Iterator; import cc.mallet.cluster.Clustering; import cc.mallet.types.Instance; /** * Sample Instances with data objects equal to {@link Neighbor}s. This * class is mainly used to generate training Instances from a true * {@link Clustering}. * * @author "Aron...
859
24.294118
114
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/PairSampleIterator.java
package cc.mallet.cluster.iterator; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.types.Instance; import cc.mallet.types.InstanceList; import cc.mallet.util.Randoms; /** * Sample pairs of Instances....
3,031
30.583333
130
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/ClusterSampleIterator.java
package cc.mallet.cluster.iterator; import java.util.ArrayList; import java.util.Iterator; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.types.Instance; import cc.mallet.util.Randoms; /** * Sample...
3,757
31.678261
113
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/NodeClusterSampleIterator.java
package cc.mallet.cluster.iterator; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.util.ClusterUtils; import cc.mallet.types.Instance; import cc.mallet.util.Randoms; /** * Samples merges of a singleton cluster with another (possibly ...
2,770
33.6375
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/iterator/tests/TestIterators.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,430
26.314607
76
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/examples/FirstOrderClusterExample.java
package cc.mallet.cluster.examples; import cc.mallet.classify.Classifier; import cc.mallet.classify.MaxEntTrainer; import cc.mallet.classify.Trial; import cc.mallet.classify.evaluate.ConfusionMatrix; import cc.mallet.cluster.Clusterer; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.GreedyAgglomerativeBy...
6,893
32.629268
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/util/PairwiseMatrix.java
package cc.mallet.cluster.util; import java.io.Serializable; /** * 2-D upper-triangular matrix. Used to store pairwise affinity * scores. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1.0 * @since 1.0 */ public class PairwiseMatrix implements Serializable { private static final long ser...
1,607
20.44
63
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/util/ClusterUtils.java
package cc.mallet.cluster.util; import cc.mallet.cluster.Clustering; import cc.mallet.pipe.Noop; import cc.mallet.types.Instance; import cc.mallet.types.InstanceList; import cc.mallet.util.Randoms; /** * Utility functions for Clusterings. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1.0 * @...
6,559
28.954338
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/clustering_scorer/PairwiseScorer.java
package cc.mallet.cluster.clustering_scorer; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.iterator.AllPairsIterator; import cc.mallet.cluster.neighbor_evaluator.AgglomerativeNeighbor; import cc.mallet.cluster.neighbor_evaluator.NeighborEvaluator; import cc.mallet.cluster.util.ClusterUtils; import cc.m...
1,483
29.285714
77
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/clustering_scorer/ClusteringScorer.java
package cc.mallet.cluster.clustering_scorer; import cc.mallet.cluster.Clustering; /** * Assign a score to a Clustering. Higher is better. * @author culotta * */ public interface ClusteringScorer { public double score (Clustering clustering); }
252
17.071429
52
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/Neighbor.java
package cc.mallet.cluster.neighbor_evaluator; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import cc.mallet.cluster.Clustering; import cc.mallet.types.Alphabet; /** * A Clustering and a modified version of that Clustering. * * @auth...
1,372
19.80303
70
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/NeighborEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; /** * Scores the value of changing the current {@link Clustering} to the * modified {@link Clustering} specified in a {@link Neighbor} object. * * A common implementation of this interface uses a {@link Classifier} * to assign a score to a {@link Neighbor}. * * @aut...
874
22.026316
79
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/RandomEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import cc.mallet.util.Randoms; /** * Randomly scores {@link Neighbor}s. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1...
1,603
21.914286
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/PairwiseEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.ArrayList; import cc.mallet.classify.Classifier; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.util.PairwiseMatr...
7,182
30.643172
108
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/RankingNeighborEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import cc.mallet.classify.Classifier; import cc.mallet.types.Instance; import cc.mallet.types.LabelVector; /** * Uses a {@link Classifier} that scores an array of {@link *...
2,251
28.246753
101
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/ClassifyingNeighborEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import cc.mallet.classify.Classifier; /** * A {@link NeighborEvaluator} that is backed by a {@link * Classifier}. The score for a {@link Neigh...
2,281
25.229885
93
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/AgglomerativeNeighbor.java
package cc.mallet.cluster.neighbor_evaluator; import cc.mallet.cluster.Clustering; import cc.mallet.util.ArrayUtils; /** * A {@link Neighbor} created by merging two clusters of the original * Clustering. * * @author "Aron Culotta" <culotta@degas.cs.umass.edu> * @version 1.0 * @since 1.0 */ public class Agglom...
1,906
26.637681
101
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/neighbor_evaluator/MedoidEvaluator.java
package cc.mallet.cluster.neighbor_evaluator; //import weka.core.Instances; import cc.mallet.classify.Classifier; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.util.PairwiseMatrix; import cc.mallet.types.MatrixOps; /** * Uses a {@link Classifier} over pairs of {@link Instances} to score * {@link Ne...
8,715
28.248322
125
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/tui/Text2Clusterings.java
package cc.mallet.cluster.tui; import gnu.trove.TIntArrayList; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.logging.Logger; import cc.mallet.c...
4,345
31.676692
105
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/cluster/tui/Clusterings2Info.java
package cc.mallet.cluster.tui; import java.io.FileInputStream; import java.io.ObjectInputStream; import java.util.logging.Logger; import cc.mallet.cluster.Clustering; import cc.mallet.cluster.Clusterings; import cc.mallet.types.InstanceList; import cc.mallet.util.CommandOption; import cc.mallet.util.MalletLogger; /...
2,821
31.068182
113
java