From: Mart Lubbers Date: Mon, 21 Nov 2016 20:30:53 +0000 (+0100) Subject: w11 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=465ca65526e94c5e7bd9575a7a7e4c44711d4292;p=itlast1617.git w11 --- diff --git a/week10/Makefile b/week10/Makefile new file mode 100644 index 0000000..3cbb9f5 --- /dev/null +++ b/week10/Makefile @@ -0,0 +1,12 @@ +DOCUMENTS:=w10 +PDFLATEXFLAGS:=-halt-on-error +PDFLATEX:=pdflatex $(PDFLATEXFLAGS) + +all: $(addsuffix .pdf,$(DOCUMENTS)) + +%.pdf: %.tex + $(PDFLATEX) $< + $(PDFLATEX) $< + +clean: + $(RM) -v $(addprefix $(DOCUMENTS),.pdf .log .aux) diff --git a/week10/w10.tex b/week10/w10.tex new file mode 100644 index 0000000..1c627f1 --- /dev/null +++ b/week10/w10.tex @@ -0,0 +1,41 @@ +\documentclass[a4paper]{article} + +\usepackage{geometry} +\usepackage{booktabs} +\usepackage{tabularx} + +\title{Exercise week 10} +\author{Mart Lubbers} +\date{\today} + +\begin{document} +\maketitle +\subsection*{Exercises Chapter 19} +\begin{tabularx}{\textwidth}{llX} + \toprule + drink & \texttt{SPOKEN} & \ldots they were coming up and went across to get a drink of lemonade and \ldots\\ + & \texttt{FICTION} & Then strew on water and make the people drink.\\ + & \texttt{MAGAZINE} & A place for all kinds of wildlife to stop off and drink\\ + & \texttt{NEWSPAPER} & \ldots stony -faced consultant Julian Chapman emerges in the shape of a failed marriage and a drink problem.\\ + & \texttt{NON-ACAD} & Now it is 22. To work at that speed we can't even drink a cup of tea.\\ + & \texttt{ACADEMIC} & You see, it'sonce people get drink in them.\\ + \midrule + kiss & \texttt{SPOKEN} & Gon na give us a kiss, give us a kiss then, come on.\\ + & \texttt{FICTION} & Lucy's lips tasted of brandy, their first kiss.\\ + & \texttt{MAGAZINE} & \ldots to meet him and work with him was a thrill, but I got to kiss him, too!\\ + & \texttt{NEWSPAPER} & Plenty of time for her to have had a string of boyfriends and perhaps kiss and tell lovers\ldots\\ + & \texttt{NON-ACAD} & I'll kiss each several paper, for amends.\\ + & \texttt{ACADEMIC} & \ldots varied according to whether it was the first phoneme of kiss or gift.\\ + \midrule + write & \texttt{SPOKEN} & \ldots I've been sitting on it meaning to, to write to the press and\ldots\\ + & \texttt{FICTION} & \ldots big glass and on the notes for the big glass, day, sleep and write this freewheeling commentary on the entire project,\ldots\\ + & \texttt{MAGAZINE} & Don't Forget to Write\\ + & \texttt{NEWSPAPER} & \ldots if Silence Of The Lambs is your choice for Rental Video Of The Year write: 1 {--} Silence Of The Lambs, and so on.\\ + & \texttt{NON-ACAD} & \ldots the Social Fund Officer will write to the person who is, at the same time as a payment is made\ldots\\ + & \texttt{ACADEMIC} & \ldots why should I let you write a book that won't do me any good but might do me some harm\ldots\\ + \bottomrule +\end{tabularx} + +\subsection*{Exercises Chapter 21} + +\end{document} diff --git a/week11/report b/week11/report new file mode 100644 index 0000000..bad5ebc --- /dev/null +++ b/week11/report @@ -0,0 +1,36 @@ +Processing dimensionality 50 +Closest to drink: +[('drink', 4.4408920985006262e-16), ('drinks', 0.07499755435715072), ('beer', 0.15062646717490069), ('coffee', 0.18125606992773546), ('milk', 0.18459133646434767), ('drinking', 0.18470240761779178), ('bottled', 0.19678556539690606), ('soda', 0.20160819407360064), ('drank', 0.22668210771271424), ('beverages', 0.23206537793696991)] +Closest to eat: +[('eat', -2.2204460492503131e-16), ('eating', 0.12939648375672563), ('ate', 0.14028965181792774), ('eaten', 0.15416326236846545), ('eats', 0.21985884535576927), ('meal', 0.23215525567868389), ('chicken', 0.23279489380222407), ('meat', 0.23797523680981725), ('cooked', 0.24547791086679027), ('fish', 0.24667100423698118)] +Closest to water: +[('water', 0.0), ('dry', 0.17258121524841508), ('natural', 0.21417585196620414), ('sand', 0.22629961604931259), ('waste', 0.22758027353977395), ('drinking', 0.24384186839857902), ('clean', 0.25082992480368604), ('ocean', 0.25469439068314437), ('soil', 0.25486774492042241), ('sewage', 0.25695079170907864)] +Closest to water-drink+eat: +[('kinzua', 0.32458780758216432), ('vrbanja', 0.37870373073613206), ('apperley', 0.4102601678758403), ('goethals', 0.42253000104443372), ('otira', 0.42405565530644251), ('interoceanic', 0.43710465752936756), ('cavenagh', 0.44337902414912411), ('burrinjuck', 0.44591071235689128), ('kawarau', 0.44633257402818804), ('sechenov', 0.44927366417445047)] +Processing dimensionality 100 +Closest to drink: +[('drink', 2.2204460492503131e-16), ('drinks', 0.11485194483158712), ('beer', 0.18178625097882384), ('drinking', 0.24988378483340112), ('liquor', 0.28013108328467651), ('bottled', 0.28200314703997864), ('soda', 0.2822982248812963), ('beverages', 0.28858924996966961), ('bottle', 0.29163386729586105), ('drank', 0.29529458751691096)] +Closest to eat: +[('eat', -2.2204460492503131e-16), ('eating', 0.18690345189009838), ('eaten', 0.21633769279445547), ('ate', 0.21861796363226027), ('consume', 0.27959767763881249), ('meal', 0.29674045818764172), ('drink', 0.31506145790573936), ('feed', 0.32055680041670609), ('eats', 0.32128914971951328), ('meat', 0.3213515397203256)] +Closest to water: +[('water', 0.0), ('natural', 0.30042777407417265), ('dry', 0.3230022372945619), ('salt', 0.32302627917287996), ('clean', 0.32483779244496347), ('drinking', 0.32506763764298841), ('gas', 0.32835895452229458), ('sewage', 0.32971603496011681), ('supply', 0.33144123476650533), ('drainage', 0.33381299222673044)] +Closest to water-drink+eat: +[('levee', 0.56752436103517734), ('hydrological', 0.57468038551479372), ('interoceanic', 0.58081711961016014), ('hydrology', 0.58917964046810578), ('dam', 0.59849480264623811), ('embankment', 0.59870641432016147), ('jiujiang', 0.59960907245789197), ('gorges', 0.60251363749454334), ('electrification', 0.60559508067169043), ('bovey', 0.60820452980708817)] +Processing dimensionality 200 +Closest to drink: +[('drink', 2.2204460492503131e-16), ('drinks', 0.13862122794686893), ('drinking', 0.23466770967660922), ('beer', 0.26735249754858659), ('drank', 0.29057807766154486), ('beverages', 0.31309738053642711), ('alcohol', 0.34122839195925458), ('beverage', 0.3432753148728106), ('soda', 0.37073469364460765), ('liquor', 0.37342070270694072)] +Closest to eat: +[('eat', 0.0), ('eating', 0.21584478889395231), ('ate', 0.23429468203225168), ('eaten', 0.2461333952316116), ('meal', 0.31944092066382956), ('consume', 0.34287501583425495), ('eats', 0.35938750130960428), ('food', 0.37721870016202907), ('meat', 0.37883959070363382), ('drink', 0.37887406829653691)] +Closest to water: +[('water', 0.0), ('drinking', 0.37162750477679041), ('clean', 0.39558494003357014), ('sewage', 0.40607653821136247), ('groundwater', 0.40846683339486756), ('irrigation', 0.40955500004017298), ('waters', 0.41105157981239782), ('drainage', 0.42174836467517085), ('reservoir', 0.42835882033150152), ('seawater', 0.42839020813728756)] +Closest to water-drink+eat: +[('drainage', 0.65957682535401707), ('sedimentation', 0.6602025392439711), ('burrinjuck', 0.67472795895932136), ('polders', 0.6774343705472774), ('demarcations', 0.6841965336973469), ('fens', 0.68869367190639341), ('munmorah', 0.68874947022701039), ('reclamation', 0.68984069119503655), ('turbine', 0.6968796714528781), ('hydrology', 0.69757092660361586)] +Processing dimensionality 300 +Closest to drink: +[('drink', 1.1102230246251565e-16), ('drinks', 0.17389474446370323), ('drinking', 0.29163708392203735), ('drank', 0.3241536836545662), ('beer', 0.32467272603761188), ('beverage', 0.37317834316438503), ('alcohol', 0.37449304741950273), ('beverages', 0.3753100893537592), ('eat', 0.38786870591418365), ('juice', 0.42085335280218716)] +Closest to eat: +[('eat', 1.1102230246251565e-16), ('eating', 0.2191538844761467), ('ate', 0.26958402678586879), ('eaten', 0.295702629494217), ('meal', 0.35776138858699169), ('consume', 0.36873554090851801), ('drink', 0.38786870591418365), ('eats', 0.3956998743819502), ('meals', 0.40303544659521762), ('food', 0.40969966057877172)] +Closest to water: +[('water', 0.0), ('drinking', 0.40746241787551285), ('sewage', 0.42961845795424713), ('irrigation', 0.44505615346926419), ('potable', 0.4595095312689722), ('waters', 0.46381045591839898), ('groundwater', 0.46946279528919932), ('seawater', 0.47284256868942898), ('supply', 0.4822640705362724), ('drainage', 0.48491383427852597)] +Closest to water-drink+eat: +[('reclamation', 0.70190484725127567), ('dam', 0.71487849268028181), ('drainage', 0.7169785910990758), ('irrigation', 0.72563837369805362), ('electrification', 0.72636947041614497), ('fens', 0.72918468133000247), ('hydrology', 0.73159078333299976), ('turbine', 0.73389120955355225), ('reservoir', 0.7371277340551905), ('reservoirs', 0.73776922625723917)]