GithubHelp home page GithubHelp logo

punctuator's People

Contributors

jcsilva avatar ottokart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

punctuator's Issues

how to test it

hi,

i tried you system, i have trained successfully but when i try to test it i'm unable to get any result.
what is the command/script to test it.
currently i'm using
python punctuate_text_with_nn_model.py ..\out\model 1 text temp

is this correct?

Issue when running in multi threading

Hi, i am using punctuator library in my REST API. It works fine for one request.
But, if multiple requests are sent from calling application, then it it giving error:
ERROR (theano.gof.opt): Optimization failure due to: constant_folding

Please help to resolve it

Example of training data

It would be great if a fully working (small) example of training data was provided along with the project.

English Models

Do you have any models trained on English data? I'm interested in using this project for my transcription project, but I don't have any English speech data to work with at the moment.

Error when training 2nd phase model

After a couple of epochs, the 2nd phase crashes with the following error:

  File "main.py", line 52, in <module>
    trainer.train(model_name, PHASE1_TRAIN_PATH, PHASE1_DEV_PATH, PHASE2_TRAIN_PATH, PHASE2_DEV_PATH)
  File "punctuator/src/trainer.py", line 157, in train
    _train(net, training_data, validation_data, model_name, conf.PHASE2["LEARNING_RATE"], conf.PHASE2["MAX_EPOCHS"], conf.PHASE2["MIN_IMPROVEMENT"])
  File "punctuator/src/trainer.py", line 76, in _train
    net = utils.load_model("../out/" + model_name)
  File "punctuator/src/utils.py", line 31, in load_model
    net.load(model)
  File "punctuator/src/models.py", line 534, in load
    super(TA_LSTM, self).load(model)       
  File "punctuator/src/models.py", line 44, in load
    self.reset_state()
  File "punctuator/src/models.py", line 347, in reset_state
    self.t_lstm.reset_state()
AttributeError: 'NoneType' object has no attribute 'reset_state'

How to implement a new model in another language

Hi,

i really appreciate your work, I want to test the script on non punctuated English or German text. So, i guess i have to make a new model with that language.

Can you briefly describe the tasks to implement a new model in a specific language?

Regards,
Josef

TypeError: slice indices must be integers

I run punctuator with a fresh clone from GitHub. The command is python main.py model, but I got an error below:

Converting data...

Traceback (most recent call last):
File "main.py", line 40, in
converter.convert_files(conf.PHASE1["TRAIN_DATA"], vocabulary, conf.PUNCTUATIONS, conf.BATCH_SIZE, False, PHASE1_TRAIN_PATH)
File "/home/hudan/Git/punctuator/src/converter.py", line 44, in convert_files
inputs = np.array(inputs, dtype=dtype)[:batch_size*num_batches].reshape((batch_size, num_batches)).T
TypeError: slice indices must be integers or None or have an index method

I tested punctuator using Python 2.7.12 and Numpy 1.14.3.

Minor issue in running punctuator after training

Please see the following diff that I had to do to make the punctuate code work correctly.

21c21

< word_index = utils.input_word_index(net.t_lstm.in_vocabulary, word)

            word_index = utils.input_word_index(net.in_vocabulary, word)

how to test it

hi,

i tried you system, i have trained successfully but when i try to test it i'm unable to get any result.
what is the command/script to test it.
currently i'm using
python punctuate_text_with_nn_model.py ..\out\model 1 text temp

is this correct?

Starting from a previous training

I think there is a need to allow iteration over previous training, and also to allow multiple threads during training. Overall the process is very slow. What are your thoughts about adapting http://www.rnnlm.org/ to this task. I think the LSTM cell is missing there.

_backpropagate() how to compute CrossEntropy?

In _backpropagate() function,I saw that there 's only dE_dz_y[range(len(output_word_index)), output_word_index] -= 1.. I have no idea that how you get the CrossEntropy, and is this a trick for backpropagating?

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.