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
class UserClassifier: | |
""" YOU are the classifier, dude! """ | |
def prepare (this, stack, buff, heads): | |
return sentence[stack[-1]]+' '+sentence[buff[-1]] | |
def train(this, pairs): | |
for i, o in pairs: | |
print 'remember: ', i, ' is ', o |
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
SHOULD CONTAIN CONVERTED ASCII VECTORS FROM https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?usp=sharing BUT LESS OF THEM |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<adlibXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="http://www.adlibsoft.com/adlibXML.xsd"> | |
<recordList> | |
<record> | |
<priref>667</priref><institution.name>Centraal Museum</institution.name><collection>beeldende kunst</collection><collection>stadsgeschiedenis</collection><collection>prenten en tekeningen</collection><collection>kostuums</collection><object_name>prent</object_name><object_name>reproduktie</object_name><title>De modese Waayer</title><creator>Anoniem etser (18e eeuw)</creator><creator.qualifier/><dimension.type>hoogte (met lijstje)</dimension.type><dimension.type>breedte (met lijstje)</dimension.type><dimension.value>15.8</dimension.value><dimension.value>13.2</dimension.value><dimension.unit>cm</dimension.unit><dimension.unit>cm</dimension.unit><techniek.vrije.tekst>fotomechanische reproductie</techniek.vrije.tekst><material>papier</material><object_number>2127</object_number><production.date.start>1800</production. |
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
from MCFParser import Parser | |
# https://github.com/heatherleaf/MCFParser.py | |
grammar = [('f', 'S', ['A'], [[(0,0), (0,1)]]), | |
('g', 'A', ['A'], [['a', (0,0), 'b'], ['c', (0,1), 'd']]), | |
('h', 'A', [], [['a', 'b'], ['c', 'd']])] | |
parser = Parser(grammar, ['S']) | |
for tree in parser.parse("a a a b b b c c c d d d".split()): | |
print tree |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<style> | |
path { fill: none; stroke: #000; stroke-width: 1px; } | |
</style> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="https://raw.githubusercontent.com/worrydream/Tangle/master/Tangle.js"></script> | |
<script type="text/javascript" |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<style> | |
path { fill: none; stroke: red; stroke-width: 1px; } | |
polygon { fill: red; } | |
</style> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script type="text/javascript" src="https://rawgit.com/worrydream/Tangle/master/Tangle.js"></script> |
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
// Visit http://www.johndcook.com/stand_alone_code.html for the source of this code and more like it. | |
// Note that the functions Gamma and LogGamma are mutually dependent. | |
function gamma | |
( | |
x // We require x > 0 | |
) | |
{ | |
//if (x <= 0.0) |
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
2014 Legestabel conversie | xls | 0 | http://www.regelgeving.amsterdam.nl/amsterdamnoord/legesverordening_2014/20140101/legestabel_legesverordening_2014.xls | |
---|---|---|---|---|
afvalwijzer stratenlijst 2014 (XLS, 157 kB) - Stadsdeel ... | xls | 156 | http://www.nieuwwest.amsterdam.nl/publish/pages/427015/afvalwijzer_stratenlijst_2014.xls | |
Leges tabel 2006 | xls | 285 | http://www.noord.amsterdam.nl/publish/pages/490221/legestabel_2006_wijziging_paspoorten.xls | |
Lijst beschermwaardige houtopstanden Oost (XLS, 123 kB) | xls | 123 | http://www.oost.amsterdam.nl/publish/pages/472331/20130416_lijst_van_beschermwaardige_houtopstanden_oost.xls | |
stadsarchief.amsterdam.nl | xls | 108 | http://stadsarchief.amsterdam.nl/actueel/nieuws/nieuwsarchief/oud_nieuws_2009/kwartaal_1-2009/egodocumenten.xls | |
www.amsterdam.nl | xls | 0 | http://www.amsterdam.nl/publish/pages/135610/deelnemerslijst8_april.xls | |
www.amsterdam.nl | xls | 0 | http://www.amsterdam.nl/publish/pages/173862/begroting_aangepast_vervoer.xls | |
www.amsterdam.nl | xls | 0 | http://www.amsterdam.nl/publish/pages/173862/begrotingrege |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<div id="chart"> | |
</div> | |
<h1 id="name"></h1> | |
<script type="text/javascript"> | |
var w = 960, |
OlderNewer