#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
| Mag. jur. Köger, 40 Jahre Finanzverwaltung | |
| www.bmf.gv.at | |
| - SelbständigenBuch | |
| - Findok (Finanzdokumentation) | |
| Mögliche Organisationsformen: | |
| - Einzelfirma | |
| - Personengesellschaft | |
| Anfang keine bezahlten Angestellten, alle die hakln sind beteiligt |
| h scroll left | |
| j scroll down | |
| k scroll up | |
| l scroll right | |
| gg scroll to top of the page | |
| G scroll to bottom of the page | |
| f activate link hints mode to open in current tab | |
| F activate link hints mode to open in new tab | |
| r reload |
| var data; | |
| process.stdin.resume(); | |
| process.stdin.setEncoding('utf8'); | |
| process.stdin.on('data', function(chunk) { | |
| data += chunk; | |
| }); | |
| process.stdin.on('end', function() { |
| import Control.Monad | |
| import Data.Char | |
| import System.IO | |
| import Network | |
| import Data.Time.LocalTime | |
| data RequestType = GET | POST deriving (Show) | |
| data Request = Request { rtype :: RequestType, path :: String, options :: [(String,String)] } | |
| data Response = Response { version :: String, statuscode :: Int } |
| qsort = (list) -> | |
| return list if list.length <= 1 | |
| pivotPoint = medianOfThree list | |
| pivot = list[pivotPoint] | |
| list.splice pivotPoint, 1, [] | |
| [left, right] = partition list, (e) -> e < pivot | |
| [(qsort left)..., pivot, (qsort right)...] | |
| medianOfThree = (list) -> | |
| return 0 if list.length < 3 |
| /* | |
| Copyright (c) 2017 Chris Patuzzo | |
| https://twitter.com/chrispatuzzo | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New new -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
| var HighResolutionTimer = window.HighResolutionTimer = window.HighResolutionTimer || (function() { | |
| var HighResolutionTimer = function(options) { | |
| this.timer = false; | |
| this.total_ticks = 0; | |
| this.start_time = undefined; | |
| this.current_time = undefined; |