This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './jumanpp.rb' | |
# http://qiita.com/rtoya/items/33e5ac410704b70800b2 のruby用ラッパーコードを使用 | |
# Open3.popen3('jumanpp') を Open3.popen3('jumanpp -M') に変更 | |
require 'pp' | |
file_name = './sample.txt' | |
imported_words = [] | |
File.open(file_name) do |file| | |
jumanpp = Jumanpp::Parser.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tensorflow as tf | |
def tensorflow_FizzBuzz(): | |
NUM_DIGITS = 10 | |
def binary_encode(i, num_digits): | |
return np.array([i >> d & 1 for d in range(num_digits)]) | |
def fizz_buzz_encode(i): |
NewerOlder