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
(ns type-level-tagger | |
{:doc "Implements State-of-the-art Unsupervised Part-of-speech Tagger | |
from \"Simple Type-Level Unsuperivsed POS Tagging\" | |
by Yoong-Keok Lee, Aria Haghighi and Regina Barzilay | |
(http://www.cs.berkeley.edu/~aria42/pubs/typetagging.pdf) | |
blog post: http://wp.me/pcW6S-x" | |
:author "Aria Haghighi ([email protected])"} | |
(:use [clojure.java.io :only [reader]] | |
[clojure.contrib.duck-streams :only [with-out-writer]] | |
[clojure.contrib.seq-utils :only [indexed]] |
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
delimitMate Report | |
================== | |
* Options: (-) unset, (g) global, (b) buffer | |
(-) delimitMate_apostrophes = '' | |
(-) delimitMate_autoclose = 1 | |
(-) delimitMate_balance_matchpairs = 0 | |
(-) delimitMate_excluded_ft = '' | |
(-) delimitMate_excluded_regions = 'Comment' |
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
how to use integer programming to encode circuits: | |
Given a circuit C with n boolean inputs, and assume without loss of | |
generality that every logic operation is unary or binary. Label each | |
binary or unary expression c_1 .... c_m. Let r_0 be the distinguished | |
clause that is the result of this boolean circuit (because an n bit | |
output is just a product of circuits that have 1 bit outputs.). | |
For a given c_i, it is of the form c_i = one of | |
1) = not a, which we can define via the constraint c_i - a= 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
== Dot Product (n = 100000) == | |
Interpreter : Valid | |
CUDA : test: /var/folders/ze/zepvSy65FJukhQ7yy+kvFU+++TI/-Tmp-/ac34211: canonicalizePath: does not exist (No such file or directory) | |
is the error report from running ./example/simple/test | |
and the test suite of cuda sdk programs seem be properly installed, and a similar canonicalizePath issue happens on other example programs |
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
==> Build Environment | |
CC: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CXX: /usr/bin/c++ => /usr/bin/c++-4.2 | |
LD: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe | |
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe | |
MAKEFLAGS: -j2 | |
==> Downloading ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz | |
File already downloaded and cached to /Users/carter/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/carter/Library/Caches/Homebrew/xpdf-3.02.tar.gz |
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
carter ~ » cabal install regex-pcre -v 1 ↵ | |
Reading available packages... | |
Resolving dependencies... | |
In order, the following would be installed: | |
regex-pcre-0.94.2 (new package) | |
Extracting | |
/Users/carter/.cabal/packages/hackage.haskell.org/regex-pcre/0.94.2/regex-pcre-0.94.2.tar.gz | |
to /var/folders/ze/zepvSy65FJukhQ7yy+kvFU+++TI/-Tmp-/regex-pcre-0.94.275071... | |
Configuring regex-pcre-0.94.2... | |
Flags chosen: splitbase=True, newbase=True |
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
1) figure out where the cabal-install installed binarys lie, | |
they're probably installed at .cabal/bin | |
don't touch that subfolder (but when you uninstall ghc / the haskell platform, remove everything else, except maybe the .caba/config file, which you may want to adjust to set the | |
compile profiling libs to true, though that has a 2x increase in compile time ) | |
2) make sure you have ghc 7.0.3 because if you've upgraded to xcode 4 | |
you need it (and even if you do the alternate fix, 7.0.3 has some bug fixes) | |
2.5) if you don't have ghc 7.0.3, go to the ghc website. Also be sure to DL the 64 bit version | |
because I don't believe that you get any upside when linking to libs if they're 64bit from a 32 compiled piece of code (ie you cant!) |
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
brew --config | |
HOMEBREW_VERSION: 0.8 | |
HEAD: 042169b16dfca2d3252bb0f727f07f25f4fb5695 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: dual-core 64-bit penryn | |
OS X: 10.6.7 | |
Kernel Architecture: i386 |
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
# First, get the directory for the new tab | |
if [[ $# == 0 ]]; then | |
ThisDirectory=$PWD | |
elif [[ $# == 1 && -d "$1" ]]; then | |
ThisDirectory="$@" | |
else | |
print "usage: ntab [directory]" | |
return 1 | |
fi |
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
errors | |
[(fromList [0.20000000000000007,-2.7755575615628914e-17,-0.20000000000000007] :: Data.Vector.Storable.Vector,(3><3) | |
[ 0.0, 1.0, 2.0 | |
, 1.0, 0.0, 1.0 | |
, 2.0, 1.0, 0.0 ]),(fromList *** Exception: linearSolveSVDR: didn't converge | |
[(fromList [0.20000000000000004,0.0,-0.20000000000000007] :: Data.Vector.Storable.Vector,(3><3) | |
[ 0.0, 1.0, 2.0 | |
, 1.0, 0.0, 1.0 | |
, 2.0, 1.0, 0.0 ]),(fromList *** Exception: svdRdd: output range error |
OlderNewer