Comments (2)
Model architecture is already there in code, build a model instance, load saved weights, save the full model. If you want .pb file look into this https://www.dlology.com/blog/how-to-convert-trained-keras-model-to-tensorflow-and-make-prediction/
from fastpunct.
Thank you for that link @harikodali
As a first step, I was trying to save the model as h5 using self.model.save('punctuation.h5')
and then open it with Netron and I was getting the above error. Was also getting that error when trying to convert the h5 model into coreml. Are you able to save and open using Netron?
from fastpunct.
Related Issues (20)
- KeyError if input text size greater than around 400 chars HOT 1
- how long does it cost when run the example? HOT 1
- Why a Seq2Seq instead of Classification Network? HOT 5
- Speeding things up (it is slow) HOT 4
- missing hyphen HOT 1
- Model Input HOT 4
- Add Tensorflow/Keras to Required libraries for Pip HOT 1
- Please add support for Dutch
- Training on other Dataset HOT 1
- The proportion for "!" is extremely high HOT 2
- can't able to find PRECISION, RECALL or F-SCORE in the repo HOT 1
- Unable to download model to EMR, fix if params and checkpoint provided, avoid redownload
- pypi rebuild automation
- Model corrects even though correct=False
- How to increase indices sequence length? HOT 1
- Issue while initializing the module
- Unwanted whitespace around quotation marks
- Can't detect end of sentence
- German Language HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastpunct.