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/python | |
# --- RPYTHON/CHROOT TOOLCHAIN HELPER --- | |
# | |
# This script restarts itself inside the 32-bit chroot environment | |
# and runs either the translation or a benchmark. | |
# (!) Double-check that everything uses absolute paths (!) | |
# | |
import os |
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
*.acn | |
*.acr | |
*.alg | |
*.aux | |
*.bak | |
*.bbl | |
*.bcf | |
*.blg | |
*.brf | |
*.dvi |
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
import random | |
def dirichlet(alpha): | |
"""Sample dirichlet-distributed vector from Dir(alpha)""" | |
s = [random.gammavariate(a, 1) for a in alpha] | |
norm = sum(s) | |
return [d / norm for d in s] | |
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 Element: | |
"""I represent an unspecific UI component""" | |
def __init__(self, id, env): | |
self.id = id | |
self.env = env | |
self.children = [] | |
def trigger(self, event): |
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
""" | |
Bi-Term Topic Model (BTM) for very short texts. | |
Literature Reference: | |
Xiaohui Yan, Jiafeng Guo, Yanyan Lan, and Xueqi Cheng: | |
"A biterm topic model for short texts" | |
In Proceedings of WWW '13, Rio de Janeiro, Brazil, pp. 1445-1456. | |
ACM, DOI: https://doi.org/10.1145/2488388.2488514 | |
This module requires pre-processing of textual data, |
OlderNewer