Package | Description |
---|---|
edu.ucla.sspace.clustering | |
edu.ucla.sspace.mains | |
edu.ucla.sspace.matrix | |
edu.ucla.sspace.svs | |
edu.ucla.sspace.vector | |
edu.ucla.sspace.wordsi |
Modifier and Type | Method and Description |
---|---|
SparseDoubleVector[] |
Assignments.getSparseCentroids()
Returns an array of sparse centroid vectors of each discovered cluster
which are scaled according the the number of data points asisgned to that
cluster.
|
Modifier and Type | Method and Description |
---|---|
String |
LexSubWordsiMain.LexSubWordsi.getBaseSense(String focus,
SparseDoubleVector vector) |
void |
LexSubWordsiMain.LexSubWordsi.handleContextVector(String focus,
String secondary,
SparseDoubleVector vector) |
Modifier and Type | Method and Description |
---|---|
static <T extends SparseDoubleVector> |
Matrices.asSparseMatrix(List<T> vectors)
Returns a
SparseMatrix from a list of SparseDoubleVector s. |
static <T extends SparseDoubleVector> |
Matrices.asSparseMatrix(List<T> vectors,
int columns)
Returns a
SparseMatrix from a list of SparseDoubleVector s. |
Modifier and Type | Method and Description |
---|---|
SparseDoubleVector |
AtomicGrowingSparseHashMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
SynchronizedSparseMatrix.getColumnVector(int column)
Returns the column as a sparse vector.
|
SparseDoubleVector |
SparseOnDiskMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
AtomicGrowingSparseMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
SparseSymmetricMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
RowScaledSparseMatrix.getColumnVector(int row)
Returns the column as a vector.
|
SparseDoubleVector |
GrowingSparseMatrix.getColumnVector(int column)
Returns a
DoubleVector of the contents of the column. |
SparseDoubleVector |
DiagonalMatrix.getColumnVector(int column)
Returns the column as a sparse vector.
|
SparseDoubleVector |
YaleSparseMatrix.getColumnVector(int column)
Returns the column as a sparse vector.
|
SparseDoubleVector |
SparseMatrix.getColumnVector(int column)
Returns the column as a sparse vector.
|
SparseDoubleVector |
SparseHashMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
CellMaskedSparseMatrix.getColumnVector(int col)
Returns the column as a vector.
|
SparseDoubleVector |
SparseRowMaskedMatrix.getColumnVector(int column)
Returns the column as a vector.
|
SparseDoubleVector |
AtomicGrowingSparseHashMatrix.getColumnVectorUnsafe(int column)
Provides non-atomic access to the data at the specified column, which may
present an inconsistent view of the data if this matrix is being
concurrently modified.
|
SparseDoubleVector |
AtomicGrowingSparseMatrix.getColumnVectorUnsafe(int column)
Returns an immutable view of the columns's data as a non-atomic vector,
which may present an inconsistent view of the data if this matrix is
being concurrently modified.
|
SparseDoubleVector |
AtomicGrowingSparseHashMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
SynchronizedSparseMatrix.getRowVector(int row)
Returns the row as a sparse vector.
|
SparseDoubleVector |
SparseOnDiskMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
AtomicGrowingSparseMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
SparseSymmetricMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
RowScaledSparseMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
GrowingSparseMatrix.getRowVector(int row)
Returns a
DoubleVector of the contents of the row. |
SparseDoubleVector |
DiagonalMatrix.getRowVector(int row)
Returns the row as a sparse vector.
|
SparseDoubleVector |
YaleSparseMatrix.getRowVector(int row)
Returns the row as a sparse vector.
|
SparseDoubleVector |
SparseMatrix.getRowVector(int row)
Returns the row as a sparse vector.
|
SparseDoubleVector |
SparseHashMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
CellMaskedSparseMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
SparseRowMaskedMatrix.getRowVector(int row)
Returns a
DoubleVector for an entire row. |
SparseDoubleVector |
AtomicGrowingSparseHashMatrix.getRowVectorUnsafe(int row)
Provides non-atomic access to the data at the specified row, which may
present an inconsistent view of the data if this matrix is being
concurrently modified.
|
SparseDoubleVector |
AtomicGrowingSparseMatrix.getRowVectorUnsafe(int row)
Returns an immutable view of the row's data as a non-atomic vector, which
may present an inconsistent view of the data if this matrix is being
concurrently modified.
|
Modifier and Type | Field and Description |
---|---|
SparseDoubleVector |
SelectionalPreference.lemmaVector |
Modifier and Type | Field and Description |
---|---|
Map<String,SparseDoubleVector> |
SelectionalPreference.inverseSelPreferences |
Map<String,SparseDoubleVector> |
SelectionalPreference.selPreferences |
Modifier and Type | Method and Description |
---|---|
SparseDoubleVector |
PointWiseCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
AdditionCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
VectorCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
PointWiseCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
AdditionCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
VectorCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
StructuredVectorSpace.contextualize(String focusWord,
String relation,
String secondWord,
boolean isFocusHeadWord) |
SparseDoubleVector |
SelectionalPreference.inversePreference(String relation) |
SparseDoubleVector |
SelectionalPreference.preference(String relation) |
Modifier and Type | Method and Description |
---|---|
void |
SelectionalPreference.addInversePreference(String relation,
SparseDoubleVector vector,
double frequency) |
void |
SelectionalPreference.addPreference(String relation,
SparseDoubleVector vector,
double frequency) |
SparseDoubleVector |
PointWiseCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
AdditionCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
VectorCombinor.combine(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
PointWiseCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
AdditionCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
SparseDoubleVector |
VectorCombinor.combineUnmodified(SparseDoubleVector v1,
SparseDoubleVector v2)
Combines features from
v1 and v2 to produce a new vector. |
Modifier and Type | Class and Description |
---|---|
class |
AmortizedSparseVector
An implementation of a sparse vector based on the Yale Sparse matrix format.
|
class |
AtomicSparseVector
A decorator of a
Vector which provides atomic concurrent access to
another Vector . |
class |
CompactSparseVector
A
Vector instance that keeps only the non-zero values in memory,
thereby saving space at the expense of time. |
class |
MaskedSparseDoubleVectorView
A decorator that masked view of a
SparseVector through the use of a
mapping from new column indices to original column indices. |
class |
ScaledSparseDoubleVector
A decorator for
SparseDoubleVector s that scales every value in a
given DoubleVector by some non zero scale. |
class |
SparseHashDoubleVector
A
SparseVector implementation backed by a Map . |
Modifier and Type | Method and Description |
---|---|
static SparseDoubleVector |
Vectors.asDouble(SparseIntegerVector v) |
SparseDoubleVector |
AtomicSparseVector.getVector()
Returns the
SparseDoubleVector that backs this instance. |
static SparseDoubleVector |
Vectors.immutable(SparseDoubleVector vector)
Returns an immutable view of the given
SparseDoubleVector . |
static SparseDoubleVector |
VectorMath.multiplyUnmodified(SparseDoubleVector a,
SparseDoubleVector b)
Multiply the values in
a and b and store the
product in a new CompactSparseVector This is an element by
element multiplication. |
static SparseDoubleVector |
Vectors.subview(SparseDoubleVector vector,
int offset,
int length)
Returns a subview for the given
SparseDoubleVector with a
specified offset and length. |
Modifier and Type | Method and Description |
---|---|
static SparseDoubleVector |
Vectors.immutable(SparseDoubleVector vector)
Returns an immutable view of the given
SparseDoubleVector . |
static SparseDoubleVector |
VectorMath.multiplyUnmodified(SparseDoubleVector a,
SparseDoubleVector b)
Multiply the values in
a and b and store the
product in a new CompactSparseVector This is an element by
element multiplication. |
static DoubleVector |
Vectors.scaleByMagnitude(SparseDoubleVector vector) |
static SparseDoubleVector |
Vectors.subview(SparseDoubleVector vector,
int offset,
int length)
Returns a subview for the given
SparseDoubleVector with a
specified offset and length. |
Constructor and Description |
---|
AtomicSparseVector(SparseDoubleVector v)
Creates a new
AtomicSparseVector decorating an already existing
Vector . |
CompactSparseVector(SparseDoubleVector v)
Create a
CompactSparseVector from an array, saving only the non
zero entries. |
ScaledSparseDoubleVector(SparseDoubleVector vector,
double scale)
Creates a new
ScaledSparseDoubleVector that decorates a given
SparseDoubleVector by scaling each value in vector by
scale . |
Modifier and Type | Method and Description |
---|---|
SparseDoubleVector |
WordOccrrenceDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
AbstractOccurrenceDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
SelPrefDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
DependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
RandomIndexingDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
WordOccrrenceContextGenerator.generateContext(Queue<String> prevWords,
Queue<String> nextWords)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
ContextGenerator.generateContext(Queue<String> prevWords,
Queue<String> nextWords)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
RandomIndexingContextGenerator.generateContext(Queue<String> prevWords,
Queue<String> nextWords)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
WaitingWordsi.getVector(String term)
Returns the semantic vector for the provided word.
|
SparseDoubleVector |
StreamingWordsi.getVector(String term)
Returns the semantic vector for the provided word.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WordOccrrenceContextGenerator.addContextTerms(SparseDoubleVector meaning,
Queue<String> words,
int distance)
Adds a feature for each word in the context that has a valid dimension.
|
protected void |
AbstractOccurrenceDependencyContextGenerator.addContextTerms(SparseDoubleVector meaning,
Queue<String> words,
int distance)
Adds a feature for each word in the context that has a valid dimension.
|
protected void |
RandomIndexingContextGenerator.addContextTerms(SparseDoubleVector meaning,
Queue<String> words,
int distance)
Adds the index vector for each co-occurring word in the context.
|
void |
WaitingWordsi.handleContextVector(String focusKey,
String secondaryKey,
SparseDoubleVector context)
Adds the context vector to the end of the list of context vectors
associated with
focusKey . |
void |
StreamingWordsi.handleContextVector(String focusKey,
String secondaryKey,
SparseDoubleVector context)
Performs some operation with
contextVector , which can be indexed
by either primaryKey , secondaryKey , or both. |
void |
Wordsi.handleContextVector(String primaryKey,
String secondaryKey,
SparseDoubleVector contextVector)
Performs some operation with
contextVector , which can be indexed
by either primaryKey , secondaryKey , or both. |
void |
EvaluationWordsi.handleContextVector(String focusKey,
String secondaryKey,
SparseDoubleVector context)
Performs some operation with
contextVector , which can be indexed
by either primaryKey , secondaryKey , or both. |
Constructor and Description |
---|
StreamingWordsi(Set<String> acceptedWords,
ContextExtractor extractor,
Generator<OnlineClustering<SparseDoubleVector>> clusterGenerator,
AssignmentReporter reporter,
int numClusters)
Creates a new
StreamingWordsi . |
Copyright © 2012. All Rights Reserved.