kevin931 / poetic Goto Github PK
View Code? Open in Web Editor NEWA machine-learning Python package for poetry.
Home Page: https://poetic.readthedocs.io/
License: MIT License
A machine-learning Python package for poetry.
Home Page: https://poetic.readthedocs.io/
License: MIT License
Describe the bug
The error message of poetic.exceptions.InputLengthError
as raised from the poetic.Predictor
class is incorrect when the custom model used to initialized the class is of a different input length. The incorrect message reads: poetic.exceptions.InputLengthError: Input length out of bound: must be between 1 and 465.
To Reproduce
import poetic
model = poetic.util.Initializer.load_model(model_path=<PATH>, weights_path=<PATH>)
pred = poetic.Predictor(model=model)
pred.predict("")
Expected behavior
The error message should reflect the actual maximum input length of the model such as between 1 and 100 instead of 1 and 465.
Desktop (please complete the following information):
poetic information
Environment and dependencies
Notes
This issue is a note to myself as well as a PA for everyone. I will get to this in a while, but if anyone would like to fix this in the mean time, it will be totally appreciated! PR should be made to the maintenance/v1.1.x
branch which will then be merged into dev
since v1.1.0 is the earliest version affected by this bug.
I'd like to recommand guietta (to everyone!) to create simple GUI interactive apps, which is simple but very powerful!
This is just a quick update: the project is not abandoned!! I will get to it at some point! If you're reading this, I said hi!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.