Skip to content

Instantly share code, notes, and snippets.

View julia_image_mimetype.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View fra.txt
Stay still. Ne bouge pas.
Step aside. Écarte-toi !
Step aside. Écartez-vous !
Stop lying. Arrête de mentir.
Stop lying. Arrêtez de mentir.
Study hard. Étudie avec application.
Study hard. Étudiez avec application.
Take a bus. Prenez un bus.
Take a nap. Fais un petit somme !
Take cover! Mets-toi à l'abri !
@merckxiaan
merckxiaan / model.jl
Last active Oct 26, 2018
This (attempt at) a seq2seq model in Flux causes Julia to crash. (#29818)
View model.jl
using Flux, CuArrays, Statistics
mutable struct Lang; name; word2index; word2count; index2word; n_words end
Lang(name) = Lang(
name,
Dict{String, Int}(),
Dict{String, Int}(),
Dict{Int, String}(1=>"SOS", 2=>"EOS", 3=>"UNK", 4=>"PAD"),
4)