|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.nom.nomwrite.impl.NOMWriteCorpus
net.sourceforge.nite.nom.nomread.impl.NOMReadCorpus
public class NOMReadCorpus
Our first implementation of NOMReadCorpus is actually an extension of NOMWriteCorpus because we're a bit lazy that way. We just override the editing calls to disallow them. We allow serializing of the corpus, only edits are disallowed.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nite.nom.nomwrite.NOMCorpus |
|---|
UNTIMED |
| Constructor Summary | |
|---|---|
NOMReadCorpus(NiteMetaData meta)
Construct a NOM corpus ready to load data: this NOM will not be editable. |
|
NOMReadCorpus(NiteMetaData meta,
java.io.PrintStream log)
Construct a NOM corpus ready to load data: this NOM will not be editable. |
|
| Method Summary | |
|---|---|
boolean |
isEditSafe()
Return true if the corpus can be edited safely - always return false as this is a read-only corpus. |
void |
loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations)
Load data for the purpose of comparing different coders' data. |
void |
loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations,
java.util.List other_layers)
Load data for the purpose of comparing different coders' data. |
boolean |
lock(NOMView view)
lock the corpus for edits - always return false as this is a read-only corpus. |
void |
removePointerIndex(NOMPointer point)
remove the pointer - since we do not allow edits, just do nothing |
boolean |
unlock(NOMView view)
unlock the corpus - always return false as teh corpus cannot be edited. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOMReadCorpus(NiteMetaData meta)
public NOMReadCorpus(NiteMetaData meta,
java.io.PrintStream log)
| Method Detail |
|---|
public boolean isEditSafe()
isEditSafe in interface NOMCorpusisEditSafe in class NOMWriteCorpuspublic boolean lock(NOMView view)
lock in interface NOMCorpuslock in class NOMWriteCorpuspublic boolean unlock(NOMView view)
unlock in interface NOMCorpusunlock in class NOMWriteCorpuspublic void removePointerIndex(NOMPointer point)
removePointerIndex in interface NOMCorpusremovePointerIndex in class NOMWriteCorpus
public void loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations)
throws NOMException
loadReliability in interface NOMCorpusloadReliability in class NOMWriteCorpusNOMException
public void loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations,
java.util.List other_layers)
throws NOMException
loadReliability in interface NOMCorpusloadReliability in class NOMWriteCorpusNOMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||