gov.llnl.ontology.mapreduce.table
Interface EvidenceTable

All Superinterfaces:
GenericTable
All Known Implementing Classes:
WordNetEvidenceTable

public interface EvidenceTable
extends GenericTable

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:

Author:
Keith Stevens

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

nounPair

StringPair nounPair(org.apache.hadoop.hbase.client.Result row)
Returns a StringPair for the noun pair held in the given Result.


getDependencyPaths

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.


getDependencyPaths

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.


putDependencyPaths

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.


getHypernymStatus

SynsetRelations.HypernymStatus getHypernymStatus(org.apache.hadoop.hbase.client.Result row)
Retrieves the SynsetRelations.HypernymStatus for the given Result. The status will be the same across all corpora.


putHypernymStatus

void putHypernymStatus(org.apache.hadoop.hbase.io.ImmutableBytesWritable key,
                       SynsetRelations.HypernymStatus status)
Stores the SynsetRelations.HypernymStatus using the given key. The status will be the same across all corpora.


dependencyColumnFamily

String dependencyColumnFamily()
Returns the string name of the dependency path column family.


dependencyColumnFamilyBytes

byte[] dependencyColumnFamilyBytes()
Returns the name of the dependency path column family as a byte array.


classColumnFamily

String classColumnFamily()
Returns the string name of the class column family.


classColumnFamilyBytes

byte[] classColumnFamilyBytes()
Returns the name of the class column family as a byte array.


hypernymColumn

String hypernymColumn()
Returns the column name for hypernym class labels.


hypernymColumnBytes

byte[] hypernymColumnBytes()
Returns the column name for hypernym class labels as a byte array.


cousinColumn

String cousinColumn()
Returns the column name for cousin class labels.


cousinColumnBytes

byte[] cousinColumnBytes()
Returns the column name for cousin class labels as a byte array.



Copyright © 2010-2011. All Rights Reserved.