gr.demokritos.iit.jinsect.documentModel.representations
Class NGramGaussNormDocument
java.lang.Object
gr.demokritos.iit.jinsect.documentModel.documentTypes.NGramDocument
gr.demokritos.iit.jinsect.documentModel.representations.NGramGaussNormDocument
- All Implemented Interfaces:
- ILoadableTextPrint, ITextPrint, java.io.Serializable
public class NGramGaussNormDocument
- extends NGramDocument
- See Also:
- Serialized Form
Constructor Summary |
NGramGaussNormDocument()
Creates a new instance, using graphs with Gauss-function-normalized edge weights for neighbouring. |
NGramGaussNormDocument(int iMinGraphSize,
int iMaxGraphSize,
int iGraphCorrelationWindow,
int iMinHistogramSize,
int iMaxHistogramSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Graph
protected DocumentNGramGaussNormGraph Graph
NGramGaussNormDocument
public NGramGaussNormDocument()
- Creates a new instance, using graphs with Gauss-function-normalized edge weights for neighbouring.
NGramGaussNormDocument
public NGramGaussNormDocument(int iMinGraphSize,
int iMaxGraphSize,
int iGraphCorrelationWindow,
int iMinHistogramSize,
int iMaxHistogramSize)
getDocumentGraph
public DocumentNGramGaussNormGraph getDocumentGraph()
- Description copied from interface:
ITextPrint
- Should return the graph corresponding to the text representation.
- Specified by:
getDocumentGraph
in interface ITextPrint
- Overrides:
getDocumentGraph
in class NGramDocument
- Returns:
- A document n-gram graph representing a text.
setDocumentGraph
public void setDocumentGraph(DocumentNGramGaussNormGraph idgNew)
- Set the graph to a
DocumentNGramGaussNormGraph
graph supplied. If a type of
- Parameters:
idgNew
- The graph to use.
main
public static void main(java.lang.String[] sArgs)
loadDataStringFromFile
public void loadDataStringFromFile(java.lang.String sFilename)
- Description copied from interface:
ILoadableTextPrint
- Should load the given file into a text print representation.
- Specified by:
loadDataStringFromFile
in interface ILoadableTextPrint
- Overrides:
loadDataStringFromFile
in class NGramDocument
setDataString
public void setDataString(java.lang.String sDataString)
- Description copied from class:
NGramDocument
- Creates the representation of a given string (text) and uses it to describe the document.
- Overrides:
setDataString
in class NGramDocument
- Parameters:
sDataString
- The given text.
clear
public void clear()