Exemplo n.º 1
0
 // Update the focused target word for the model
 public void SetTarget(WordEmbedding we)
 {
     OldTarget = Target;
     Target    = we;
     word      = Target.GetWord();
     Target.FindNN(embeddings, k);
     text.text = Target.GetWord();
 }
Exemplo n.º 2
0
 // Select the next sample target word
 private void SelectNextTarget()
 {
     Target = embeddings[(counter / 10) % count];
     Target.FindNN(embeddings, k);
     text.text = Target.GetWord();
 }