Giter Club home page Giter Club logo

neuralhmm's People

Contributors

ketranm avatar ybisk 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

Watchers

 avatar  avatar  avatar  avatar  avatar

neuralhmm's Issues

Cuda in Line 277 (main.lua)

Many thanks for the previous quick reply.

There is one more little problem.

Is it possible to adjust the inference step to also support CPU? Because when I used the trained model to tag unlabelled texts, there is an error in the 277 line saying the cuda() is calling.

Many thanks!

License?

Hi,

This is a very interesting project. How is it licensed? Could one of the maintainers add a license to it to make explicit any legal encumbrances for the project?

Thanks!

Gradient rescaling using Baum-Welch statistics & Pytorch implementation?

Hi,

I'm really excited about this project. The corresponding paper outlines exactly some of the goals I have for a specific model. I was glad to find the paper and this repository.

I've been reviewing the code in preparation to write a pytorch implementation. But since I don't want to redo work that someone's already done, I'd like to ask if you're aware of an existing pytorch implementation before I get too deep into writing code.

And if you're not aware of a pytroch implementation of a neuralHMM, would you be interested in collaborating to write one?

Thanks,

Running on CPU - Invalid arguments:DoubleTensor ByteTensor

Hi,

I am running the model on my own laptop using CPU. However, I encountered the error. Probably it is the compatibility between using CPU and GPU?

(I did not install cudnn.torch, because for now, I don't have GPUs to train)

/home/*/torch/install/bin/luajit: ./BaumWelch.lua:146: invalid arguments: DoubleTensor ByteTensor
expected arguments: DoubleTensor [DoubleTensor] DoubleTensor
stack traceback:
[C]: in function 'cmul'
./BaumWelch.lua:146: in function 'run'
main.lua:160: in function 'train'
main.lua:300: in main chunk
[C]: in function 'dofile'
...olin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406670

Please find more details below:

Command:
th main.lua -datapath ../wsj -nstates 45 -niters 20 -hidsize 512 -mnbz 256 -nloops 6 -maxlen 81 -nlayers 3 -modelpath ../save -model noextra

Output:
{
hidsize : 512
output : "../data/pred.txt"
cuda : false
max_word_len : 15
model : "noextra"
max_norm : 5
niters : 20
nstates : 45
debug : false
maxlen : 81
kernels :
{
1 : 1
2 : 2
3 : 3
4 : 4
5 : 5
6 : 6
7 : 7
}
nlayers : 3
nloops : 6
feature_maps :
{
1 : 50
2 : 100
3 : 128
4 : 128
5 : 128
6 : 128
7 : 128
}
charsize : 15
report_every : 10
maxchars : 15
modelpath : "../save"
datapath : "../wsj"
input : ""
lstm : false
dropout : 0.5
mnbz : 256
vocabsize : -1
conv : false
}
run preprocessing
use all words!
vocabulary size: 19160
create networks
use Feed-forward Emission Model
/home/*/torch/install/bin/luajit: ./BaumWelch.lua:146: invalid arguments: DoubleTensor ByteTensor
expected arguments: DoubleTensor [DoubleTensor] DoubleTensor
stack traceback:
[C]: in function 'cmul'
./BaumWelch.lua:146: in function 'run'
main.lua:160: in function 'train'
main.lua:300: in main chunk
[C]: in function 'dofile'
...olin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406670

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.