Hi Tuseeta,
I have the same problem. I tried
ResourceRemove[
ResourceObject[
"BERT Trained on BookCorpus and English Wikipedia Data"]]
Quit the kernel
input = "Hello world! I am here";
net = NetModel["BERT Trained on BookCorpus and English Wikipedia Data"]
net[input]
NetChain::invindata3: Data supplied to port "Input" could not be
encoded; "Function" encoder did not produce an output that was a n*2
matrix of integers between 1 and 30522.
Other examples from the documentation also do not work as expected e.g.
net = NetModel[{"BERT Trained on BookCorpus and English Wikipedia Data", "InputType" -> "ListOfStrings"}];
netencoder = NetExtract[net, "Input"]
netencoder[{"Hello world!", "I am here"}]
Result is
Developer`NumericArrayQ[{{{102, 1}, {7593, 1}, {2089, 1}, {1000, 1}, {103, 1}, {1046, 2}, {2573, 2}, {2183, 2}, {103, 2}}}]
The result should be
{{102, 1}, {7593, 1}, {2089, 1}, {1000, 1}, {103, 1}, {1046, 2}, {2573, 2}, {2183, 2}, {103, 2}}
I am running
$Version
(* 12.0.0 for Mac OS X x86 (64-bit) (April 7, 2019) *)
Any suggestions?
Thanks, Rohit