Coder Social home page Coder Social logo

neurowriter's Issues

SubwordTokenizer produces tokens with less repetitions than those allowed

Example: when trying with the Quijote corpus, some of these symbols are being generated:

  9   "zcan",
  9   "Ver",
  9   "onada",
  9   "nis",
  9   "menti",
  9   "memor",
  9   "llen",
  9   "guas",
  9   "enga",
  9   "encias",
  9   "cue",
  9   "áronle",
  9   "amen",
  9   "all",
  8   "yos",
  8   "tencia",
  8   "suje",
  8   "senti",
  8   "ólo",
  8   "neces",
  8   "nadas",
  8   "mun",
  8   "mez",
  8   "laron",
  8   "idor",
  8   "idades",
  8   "empera",
  8   "discre",
  8   "bastan",
  8   "alu",
  7   "vence",
  7   "Ú",
  7   "tentar",
  7   "rosos",

This is probably a result of merging symbols together. In the prune phase the low frequency symbols should be deleted, breaking them down to individual characters.

Conv+LSTM model

Instead of using an stacked LSTM model, which is powerful but slow, a viable alternative might be using a Conv+LSTM model. An working example of this architecture can be seen in the Tacotron 2 network, inside the encoder module (https://research.googleblog.com/2017/12/tacotron-2-generating-human-like-speech.html). Main points from this architecture:

  • Character-level embeddings of size 512
  • 3 layers of Conv, each with 512 filters and shape 5 x 1 (5-chars span) + BatchNormalization + ReLU + Dropout 0.5
  • Bidirectional LSTM with 256 units in each direction + ZoneOut 0.1

Except for the ZoneOut, all of these can be implemented here.

Cudnn layers don't work on CPU architectures

Thu CUDNN version of LSTM layers does not work when running on CPU. The software should detect whether we are running just on CPU, and swap those layers by standard LSTM layers.

Code Climate failing

Invalid configuration.
Errors:

  • syntax error: (): did not find expected key while parsing a block mapping at line 1 column 1

SGD+Nesterov optimizer

Recent results show that while adaptive optimization methods do obtain better minima in the trainining loss function, they are more prone to overfitting, specially in network with more parameters than training data, which might well be the case here.

To avoid this it would be useful to SGD and SGD+Nesterov as optimizers in the hypertuning procedure.

CRF loss

The use of a CRF loss instead of the usual categorical cross entropy might provide advantages for generating coherent text along several tokens. This kind of loss is used in Google's text summarization model.

See for instance this issue in Chainer: chainer/chainer#1020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.