# tf.contrib.lookup.string_to_index_table_from_file

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/lookup/lookup_ops.py#L46-L60) |

DEPRECATED FUNCTION

    tf.contrib.lookup.string_to_index_table_from_file(
        vocabulary_file=None, num_oov_buckets=0, vocab_size=None, default_value=-1,
        hasher_spec=tf.contrib.lookup.FastHashSpec, name=None
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2017-04-10. Instructions for updating: Use `index_table_from_file`.