public class Document extends Object implements Comparable<Document>
Document class represents a single document which may be either used for processing a text or as
training input. A document consists of the raw text, the interpretations and the activations.
When the document is not needed any more, the method clearActivations must be called, since Aika only supports a single document per thread and model.| Modifier and Type | Class and Description |
|---|---|
class |
Document.BackPropagationQueue |
class |
Document.Queue |
class |
Document.UpperBoundQueue |
class |
Document.ValueQueue |
static class |
Document.VEntry |
| Constructor and Description |
|---|
Document(String content,
Model m,
int threadId,
long iterationId) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeNumberOfPositions(int delta) |
void |
clearActivations()
Removes the activations of this document from the model again.
|
int |
compareTo(Document doc) |
String |
conflictsToString() |
void |
count() |
String |
getContent() |
String |
getText(Range r) |
int |
length() |
String |
networkStateToString(boolean withWeights) |
String |
networkStateToString(boolean neuronsOnly,
boolean withWeights) |
void |
process()
The method
process needs to be called after all the input activations have been added to the network. |
void |
propagate() |
String |
selectedInterpretationToString() |
String |
toString() |
void |
train() |
public final int id
public static int docIdCounter
public int activationIdCounter
public static boolean APPLY_DEBUG_OUTPUT
public static boolean OPTIMIZE_DEBUG_OUTPUT
public static boolean TRAIN_DEBUG_OUTPUT
public static int CLEANUP_INTERVAL
public int interprIdCounter
public int searchNodeIdCounter
public InterprNode bottom
public SearchNode root
public SearchNode selectedSearchNode
public List<InterprNode> selectedInterprNode
public long selectedMark
public Model m
public int threadId
public long iterationId
public boolean interrupted
public Document.Queue queue
public Document.ValueQueue vQueue
public Document.UpperBoundQueue ubQueue
public Document.BackPropagationQueue bQueue
public TreeSet<Activation> inputNeuronActivations
public TreeSet<Activation> inputNodeActivations
public TreeMap<Activation.Key,Activation> activationsByRid
public static int numberOfPositionsDelta
public int debugActId
public double debugActWeight
public String debugOutput
public static Comparator<Activation> ACTIVATIONS_OUTPUT_COMPARATOR
public String getContent()
public int length()
public String conflictsToString()
public String selectedInterpretationToString()
public int compareTo(Document doc)
compareTo in interface Comparable<Document>public void propagate()
public void process()
process needs to be called after all the input activations have been added to the network.public void count()
public void train()
public void clearActivations()
public void changeNumberOfPositions(int delta)
public String networkStateToString(boolean withWeights)
public String networkStateToString(boolean neuronsOnly, boolean withWeights)
Copyright © 2017. All rights reserved.