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
(def testset (for [a (range 20) | |
b (range 20) | |
c (range 20) | |
d (range 20)] | |
(conj #{[a b]} [c d]))) | |
(def testvec (for [a (range 20) | |
b (range 20) | |
c (range 20) | |
d (range 20)] | |
[[a b] [c d]])) |
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
#!/usr/bin/env python | |
import argparse | |
from nltk.tokenize import wordpunct_tokenize | |
def split_parts(fulltext, entities): | |
text = fulltext | |
shift = 0 | |
done = 0 | |
parts = [] |
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
#_(defdeps [[net.htmlparser.jericho/jericho-html "3.1"]]) | |
(ns foo.preprocess | |
(:import [java.io File BufferedInputStream FileInputStream] | |
[net.htmlparser.jericho Source TextExtractor HTMLElementName])) | |
(defn my-text-extractor [source] | |
(proxy [TextExtractor] [source] | |
(excludeElement [tag] | |
(= (.getName tag) HTMLElementName/PRE)))) |
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
partial alphanumeric_keys | |
xkb_symbols "altgr-gb" { | |
name[Group1]= "English (UK, international AltGr dead keys)"; | |
include "latin" | |
key <TLDE> { [ grave, notsign, dead_grave, bar ] }; | |
key <AE01> { [ 1, exclam, exclamdown, onesuperior ] }; | |
key <AE02> { [ 2, quotedbl, dead_diaeresis, twosuperior ] }; |
NewerOlder