/// <remarks>Only top num_words-1 most frequent words will be taken into account.Only words known by the tokenizer will be taken into account.</remarks>
/// <remarks>Only top num_words-1 most frequent words will be taken into account.Only words known by the tokenizer will be taken into account.</remarks>
public IList<int[]> texts_to_sequences(IEnumerable<IList<string>> texts)
public IList<int[]> texts_to_sequences(IEnumerable<IEnumerable<string>> texts)
"It was the best of times, it was the worst of times.",
"It was the best of times, it was the worst of times.",
"this is a new dawn, an era to follow the previous era. It can not be said to start anew.",
"Mr and Mrs Dursley of number four, Privet Drive, were proud to say that they were perfectly normal, thank you very much.",
"It was the best of times, it was the worst of times.",
"It was the best of times, it was the worst of times.",
"this is a new dawn, an era to follow the previous era.",
"Mr and Mrs Dursley of number four, Privet Drive.",
};
};
private readonly string[][] tokenized_texts = new string[][] {
private readonly string[][] tokenized_texts = new string[][] {
new string[] {"It","was","the","best","of","times","it","was","the","worst","of","times"},
new string[] {"It","was","the","best","of","times","it","was","the","worst","of","times"},
new string[] {"this","is","a","new","dawn","an","era","to","follow","the","previous","era","It","can","not","be","said","to","start","anew" },
new string[] {"mr","and","mrs","dursley","of","number","four","privet","drive","were","proud","to","say","that","they","were","perfectly","normal","thank","you","very","much"},
new string[] {"It","was","the","best","of","times","it","was","the","worst","of","times"},
new string[] {"It","was","the","best","of","times","it","was","the","worst","of","times"},
new string[] {"this","is","a","new","dawn","an","era","to","follow","the","previous","era" },
new string[] {"mr","and","mrs","dursley","of","number","four","privet","drive"},
};
};
private readonly string[] processed_texts = new string[] {
private readonly string[] processed_texts = new string[] {
"it was the best of times it was the worst of times",
"it was the best of times it was the worst of times",
"this is a new dawn an era to follow the previous era it can not be said to start anew",
"mr and mrs dursley of number four privet drive were proud to say that they were perfectly normal thank you very much",
"it was the best of times it was the worst of times",
"it was the best of times it was the worst of times",
"this is a new dawn an era to follow the previous era",