|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvidenceTable
An interface for accessing a HTable
that will store syntactic
patterns between noun pairs. Many of these functions are to allow for a
different underlying structure of the table. Each table schema can have it's
own column family names, column names, and internal structure for each
feature type.
Schemas must permit at least the following behaviours:
Method Summary | |
---|---|
String |
classColumnFamily()
Returns the string name of the class column family. |
byte[] |
classColumnFamilyBytes()
Returns the name of the class column family as a byte array. |
String |
cousinColumn()
Returns the column name for cousin class labels. |
byte[] |
cousinColumnBytes()
Returns the column name for cousin class labels as a byte array. |
String |
dependencyColumnFamily()
Returns the string name of the dependency path column family. |
byte[] |
dependencyColumnFamilyBytes()
Returns the name of the dependency path column family as a byte array. |
Counter<String> |
getDependencyPaths(org.apache.hadoop.hbase.client.Result row)
Returns a new map that contains all of the dependency path counts, regardless of their source. |
Counter<String> |
getDependencyPaths(org.apache.hadoop.hbase.client.Result row,
String source)
Returns a map that contains all of the dependency paths associated with a single noun pair. |
SynsetRelations.HypernymStatus |
getHypernymStatus(org.apache.hadoop.hbase.client.Result row)
Retrieves the SynsetRelations.HypernymStatus for the given Result . |
String |
hypernymColumn()
Returns the column name for hypernym class labels. |
byte[] |
hypernymColumnBytes()
Returns the column name for hypernym class labels as a byte array. |
StringPair |
nounPair(org.apache.hadoop.hbase.client.Result row)
Returns a StringPair for the noun pair held in the given Result . |
void |
putDependencyPaths(String word1,
String word2,
String source,
Counter<String> pathCounts)
Stores the dependency path counts gathred from the source corpus
using the provided Put object. |
void |
putHypernymStatus(org.apache.hadoop.hbase.io.ImmutableBytesWritable key,
SynsetRelations.HypernymStatus status)
Stores the SynsetRelations.HypernymStatus using the given key . |
Methods inherited from interface gov.llnl.ontology.mapreduce.table.GenericTable |
---|
close, createTable, createTable, iterator, setupScan, setupScan, table, tableName |
Method Detail |
---|
StringPair nounPair(org.apache.hadoop.hbase.client.Result row)
StringPair
for the noun pair held in the given Result
.
Counter<String> getDependencyPaths(org.apache.hadoop.hbase.client.Result row)
Counter<String> getDependencyPaths(org.apache.hadoop.hbase.client.Result row, String source)
void putDependencyPaths(String word1, String word2, String source, Counter<String> pathCounts)
source
corpus
using the provided Put
object.
SynsetRelations.HypernymStatus getHypernymStatus(org.apache.hadoop.hbase.client.Result row)
SynsetRelations.HypernymStatus
for the given Result
. The
status will be the same across all corpora.
void putHypernymStatus(org.apache.hadoop.hbase.io.ImmutableBytesWritable key, SynsetRelations.HypernymStatus status)
SynsetRelations.HypernymStatus
using the given key
. The
status will be the same across all corpora.
String dependencyColumnFamily()
byte[] dependencyColumnFamilyBytes()
String classColumnFamily()
byte[] classColumnFamilyBytes()
String hypernymColumn()
byte[] hypernymColumnBytes()
String cousinColumn()
byte[] cousinColumnBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |