You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bert*Tokenizer classes look in "./Vocabularies" which usually refers to the source folders, or at any rate where you have run it from, rather than where it is running.
That works for console apps, but fails in web apps. The .csproj file seems to correctly copy the Vocabularies folder to the run folder (e.g. bin/release/net6/Vocabularies) but it still looks for it in the source folder.
The Bert*Tokenizer classes look in
"./Vocabularies"
which usually refers to the source folders, or at any rate where you have run it from, rather than where it is running.That works for console apps, but fails in web apps. The .csproj file seems to correctly copy the Vocabularies folder to the run folder (e.g.
bin/release/net6/Vocabularies
) but it still looks for it in the source folder.I think the following would work:
Then use
$"{_launchDir}/Vocabularies"
as appropriate.The text was updated successfully, but these errors were encountered: