tf.contrib.lookup

 

upper level

 

Modules

 

None

 

Classes

 

HashTable:

A generic hash table implementation.

HasherSpec:

A structure for the spec of the hashing function to use for hash buckets.

IdTableWithHashBuckets:

String to Id table wrapper that assigns out-of-vocabulary keys to buckets.

InitializableLookupTableBase:

Initializable lookup table interface.

KeyValueTensorInitializer:

Table initializers given keys and values tensors.

LookupInterface:

Represent a lookup table that persists across different steps.

MutableDenseHashTable:

A generic mutable hash table implementation using tensors as backing store.

MutableHashTable:

A generic mutable hash table implementation.

StrongHashSpec:

A structure to specify a key of the strong keyed hash spec.

TableInitializerBase:

Base class for lookup table initializers.

TextFileIdTableInitializer:

Table initializer for string to int64 IDs tables from a text file.

TextFileIndex:

TextFileInitializer:

Table initializers from a text file.

TextFileStringTableInitializer:

Table initializer for int64 IDs to string tables from a text file.

 

Functions

 

index_table_from_file(…):

Returns a lookup table that converts a string tensor into int64 IDs.

index_table_from_tensor(…):

Returns a lookup table that converts a string tensor into int64 IDs.

index_to_string(…):

Maps tensor of indices into string values based on mapping. (deprecated)

index_to_string_table_from_file(…):

Returns a lookup table that maps a Tensor of indices into strings.

index_to_string_table_from_tensor(…):

Returns a lookup table that maps a Tensor of indices into strings.

string_to_index(…):

Maps tensor of strings into int64 indices based on mapping. (deprecated)

string_to_index_table_from_file(…):

DEPRECATED FUNCTION

string_to_index_table_from_tensor(…):

DEPRECATED FUNCTION