Closed hrzafer closed 4 years ago
Did you download the model from tfhub or the jar on maven central? The tfhub models need to be converted before they can be used by the Java bindings. You can do this using the bert download
command after installing the python tools, or you can use the pre-converted models on maven central. It's easiest to pull those in through maven as described here.
I'm having the same issue. I used the jar from maven central, and there is no model.json file. What's the solution?
So the model itself is inside an an uncompressed ZIP inside the JAR. To get at the model resources directly you can unzip the model (named bert-uncased-L-12-H-768-A-12
or similar) inside the com/robrua/nlp/easy-bert/
directory once you've unpacked the JAR.
I don't see a model.json file here?
It's in the bert-multi-cased-L-12-H-768-A-12
archive you're highlighting in that image. Unzip that.
Thank you.
Oh, now I can load a model! What's a good tutorial on using Bert? I don't have a clue for what to do next!
Thanks
On Wed, Apr 29, 2020 at 1:12 PM Torres0521 notifications@github.com wrote:
It's in the bert-multi-cased-L-12-H-768-A-12 archive you're highlighting in that image. Unzip that.
how to unzip that?it's not a zip file?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robrua/easy-bert/issues/10#issuecomment-621376234, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASYN45OVP3ELRRF6KSULILRPBUX5ANCNFSM4J77DJ6Q .
-- Fear is a reaction, courage a decision - Winston Churchill
Did you download the model from tfhub or the jar on maven central? The tfhub models need to be converted before they can be used by the Java bindings. You can do this using the
bert download
command after installing the python tools, or you can use the pre-converted models on maven central. It's easiest to pull those in through maven as described here.
Hello,
"You can do this using the bert download
command after installing the python tools".
Can you please provide a little more details about how to convert the tfhub models.
Thank you.
I downloaded and extracted a model but there is no
model.json
inside the folder.