LostTech.TensorFlow : API Documentation

Type data

Namespace tensorflow.contrib.eager.python.examples.spinn.data

Public static methods

IList<object> calculate_bins(IDictionary<int, int> length2count, int min_bin_size)

object calculate_bins_dyn(object length2count, object min_bin_size)

ValueTuple<object, ndarray> encode_sentence(string sentence, IDictionary<string, int> word2index)

object encode_sentence_dyn(object sentence, object word2index)

IList<object> get_non_parenthesis_words(IEnumerable<object> items)

object get_non_parenthesis_words_dyn(object items)

IList<int> get_shift_reduce(IEnumerable<object> items)

object get_shift_reduce_dyn(object items)

ISet<object> load_vocabulary(string data_root)

ISet<object> load_vocabulary(Byte[] data_root)

object load_vocabulary_dyn(object data_root)

ValueTuple<IDictionary<string, int>, object> load_word_vectors(Byte[] data_root, IEnumerable<string> vocab)

ValueTuple<IDictionary<string, int>, object> load_word_vectors(string data_root, IEnumerable<string> vocab)

object load_word_vectors_dyn(object data_root, object vocab)

object pad_and_reverse_word_ids(IEnumerable<object> sentences)

object pad_and_reverse_word_ids_dyn(object sentences)

ndarray pad_transitions(IEnumerable<object> sentences_transitions)

object pad_transitions_dyn(object sentences_transitions)

Public properties

PythonFunctionContainer calculate_bins_fn get;

PythonFunctionContainer encode_sentence_fn get;

PythonFunctionContainer get_non_parenthesis_words_fn get;

PythonFunctionContainer get_shift_reduce_fn get;

PythonFunctionContainer load_vocabulary_fn get;

PythonFunctionContainer load_word_vectors_fn get;

PythonFunctionContainer pad_and_reverse_word_ids_fn get;

PythonFunctionContainer pad_transitions_fn get;

ValueTuple<string, string> PARENTHESES get; set;

object PARENTHESES_dyn get; set;

ValueTuple<string, string, string> POSSIBLE_LABELS get; set;

object POSSIBLE_LABELS_dyn get; set;

PythonFunctionContainer SnliData_fn get;

Public fields

int REDUCE_CODE

return int

int WORD_VECTOR_LEN

return int

int UNK_CODE

return int

int PAD_CODE

return int

int SHIFT_CODE

return int

string LEFT_PAREN

return string

string RIGHT_PAREN

return string