GithubHelp home page GithubHelp logo

zminghua / sentencoding Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 6.0 94 KB

Sentence encoder and training code for Mean-Max AAE

Shell 6.74% Python 86.37% Perl 5.33% sed 1.55%
multi-head-attention representation

sentencoding's People

Contributors

zminghua avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

sentencoding's Issues

'float' object cannot be interpreted as an integer

When execute the encode function, the following error occurs:


TypeError Traceback (most recent call last)
in
----> 1 m.encode(['123','456'], tokenize=True)

/apps/dataiku-data/jupyter-run/dku-workdirs/MARRIOTT/SentEncoding/master.py in encode(self, task_data, tokenize, use_norm)
261 for l in ds.keys():
262 numbatches = len(ds[l]) / self.conf['option']['encode_bs'] + 1
--> 263 for minibatch in range(numbatches):
264 caps = ds[l][minibatch::numbatches]
265

TypeError: 'float' object cannot be interpreted as an integer

Solved:
Cannot encode words outside dictionary.

BookCorpus dataset not available

Hello,

I went to the link http://yknzhu.wixsite.com/mbweb, however the BookCorpus dataset is no longer available. Could you let me know what other dataset we can use for training as it's showing me this error when I run run_train.py?

FileNotFoundError: [Errno 2] No such file or directory: '/content/SentEncoding/data/bookcorpus/books.vocab'

Thanks.

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.