基本となるCPUアーキテクチャとその特徴を以下にまとめる
- x86系
- 32bit
- Intel/AMD(Advanced Micro Devices)社
- Intelが発表したCPUの商品名末尾が「86」からx86系という名前になっているらしい
- x86_64
- IntelやAMDが作った64bitで動くCPU
- Linuxはこれが多いかも
- ARM系
| import subprocess as sp | |
| import os | |
| script = "While visualizing neurons is exciting, our work last year was missing\ | |
| something important: how do these neurons actually connect to what the network does in practice?" | |
| word_list = script.split(' ') | |
| for word in word_list: | |
| filename = 'voice_resources/' + word | |
| cmd = 'say -o {} {}'.format(filename, word) |
| fig = plt.figure() | |
| ax = fig.add_subplot(1,1,1) | |
| ax.hist([data1, data2], color=['white', '#a4a4a4']) |
| # 上の行を下のように編集 | |
| # ${MECAB_LIBEXEC_DIR}/mecab-dict-index -f UTF8 -t UTF8 | |
| # ${MECAB_LIBEXEC_DIR}/mecab-dict-index -f UTF8 -t shift-jis |
| public static void writeTweetText(String tweetText) { | |
| /** | |
| * ツイート1行をファイル保存するメソッド | |
| * 引数: ツイート1行 | |
| * */ | |
| try{ | |
| /** __mecab.txtという名前は変更しないで*/ | |
| File file = new File("__mecab.txt"); | |
| FileWriter filewriter = new FileWriter(file); | |
| filewriter.write(tweetText); |
| bleach==1.5.0 | |
| enum34==1.1.6 | |
| h5py==2.7.1 | |
| html5lib==0.9999999 | |
| Keras==2.0.3 | |
| Markdown==2.6.9 | |
| numpy==1.13.3 | |
| olefile==0.44 | |
| Pillow==4.3.0 | |
| protobuf==3.4.0 |
| #! /usr/bin/env python | |
| """Run a YOLO_v2 style detection model on test images.""" | |
| import argparse | |
| import colorsys | |
| import imghdr | |
| import os | |
| import random | |
| import numpy as np | |
| from keras import backend as K |