bedapudi6788 / txt2txt

Extremely easy to use sequence to sequence library with attention, for text to text conversion tasks.
http://bpraneeth.com/projects
GNU General Public License v3.0
39 stars 14 forks source link

configuring input data leads to KeyError #3

Closed marakhmusic closed 4 years ago

marakhmusic commented 5 years ago

I changed the output examples from the ones you specified to 155. I'm getting a Keyerror. Can you help me here? Screenshot 2019-11-19 at 11 51 43 AM Screenshot 2019-11-19 at 11 51 36 AM

bedapudi6788 commented 5 years ago

@mansoorkhansitar if a params file already exists in the path, the code loads the params instead of re-creating them.

Just delete your existing params file and it will work as expected.

marakhmusic commented 5 years ago

Yeah I just figured that out. However there's another thing I observed while testing, Screenshot 2019-11-19 at 12 42 36 PM Screenshot 2019-11-19 at 12 42 43 PM

My question is, if the alphabet is not present in the params files, does that lead to a key error?

bedapudi6788 commented 5 years ago

Yes. Strings needs to be one hot encoded before passing through the model. The params file has the integer encoding for each character.

bedapudi6788 commented 4 years ago

@mansoorkhansitar http://bpraneeth.com/docs/txt2txt/ i added the documentation for each function here. You should be able to see the basic flow of what happens here.

marakhmusic commented 4 years ago

@bedapudi6788 Thanks a lot man! Will go through it.

marakhmusic commented 4 years ago

Hey @bedapudi6788 wanted to check. If i try transfer learning using the method as shown by you, can it work on sentences? as in i give it input as sentences and output as sentences.