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
<# | |
Author: Chris Dek. | |
.Synopsis | |
This is a powershell utility script that redacts content (via black rounded rectangles) based on an image coordinate file. | |
Details for usage are shown in the sections below. | |
.Description | |
PDF file Content Redaction with usage of Imagemagick.This file generates the necessary ImageMagick commands to convert a set of images extracted from a pdf |
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
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |