Open AdnanSalah84 opened 3 years ago
Can you try to add the sample size to like 100 lines of text at least.
I did and same error
graph\word2vec.meta already exists.
Words count: 3574
Unique words: 27
Vocabulary size: 28
Most common words: UNK 0 0, and 1 440, is 2 220, are 3 220, beautiful 4 220, country 5 220, really 6 165, this 7 110, singapore 8 110, one 9 110
2021-05-04 17:04:46.148202: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Step 1, Average Loss= 428.7090
Evaluation...
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at TensorFlowNET.Examples.Word2Vec.Run() in C:\Users\Adnan Salahuddin\Desktop\TensorFlow\SciSharp-Stack-Examples\src\TensorFlowNET.Examples\TextProcessing\Word2Vec.cs:line 114
at TensorFlowNET.Examples.Program.RunExamples(String key, IExample[] examples) in C:\Users\Adnan Salahuddin\Desktop\TensorFlow\SciSharp-Stack-Examples\src\TensorFlowNET.Examples\Program.cs:line 89
5/4/2021 12:04:47 PM Completed Word2Vec
Example: Word2Vec is Failed!
Updated MyData.txt file!
graph\word2vec.meta already exists.
Words count: 249891
Unique words: 23642
Vocabulary size: 2005
Most common words: UNK 0 42278, 1 47240, the 2 6279, and 3 5479, to 4 4723, i 5 4403, of 6 3721, my 7 3114, a 8 2975, you 9 2449
2021-05-05 09:58:39.631276: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-05-05 09:58:39.765438: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 37708000 exceeds 10% of free system memory.
2021-05-05 09:58:39.765775: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 37708000 exceeds 10% of free system memory.
Step 1, Average Loss= 537.0739
Evaluation...
2021-05-05 09:58:40.375849: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 37708000 exceeds 10% of free system memory.
2021-05-05 09:58:40.399673: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 37708000 exceeds 10% of free system memory.
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at TensorFlowNET.Examples.Word2Vec.Run() in C:\Users\Adnan Salahuddin\Desktop\TensorFlow\SciSharp-Stack-Examples\src\TensorFlowNET.Examples\TextProcessing\Word2Vec.cs:line 114
at TensorFlowNET.Examples.Program.RunExamples(String key, IExample[] examples) in C:\Users\Adnan Salahuddin\Desktop\TensorFlow\SciSharp-Stack-Examples\src\TensorFlowNET.Examples\Program.cs:line 89
5/5/2021 4:58:41 AM Completed Word2Vec
Example: Word2Vec is Failed!
Dear,
I am waiting for your response!
Thanks
Hi folks,
I am using word2vec and I have added textfile instead of URL Web Download (text8.zip). The rest of the code is the same as the example written in word2vec.
Here is my sample data text file (MyData.txt) as below:
The reading path file is working but I am getting an error message and it says:
I tried many times to fix this issue but still no clue. Could you please help me to solve this issue?
Thanking in anticipation