Skip to content

Instantly share code, notes, and snippets.

View romanegloo's full-sized avatar
😀
clean-up

Jiho Noh romanegloo

😀
clean-up
  • University of Kentucky
  • Lexington, KY
View GitHub Profile
@romanegloo
romanegloo / we_eval_sets.md
Last active December 29, 2018 20:15
Evaluation Datasets for Word Embeddings

Evaluation Datasets for Word Embeddings

semantic similarity of verbs

[sample]

hurt    offend          V       6.81    SYNONYMS
clarify worry           V       0.33    NONE

fasten attach V 8.47 HYPER/HYPONYMS

@romanegloo
romanegloo / latex_template.md
Last active December 28, 2018 16:42
LaTeX frequently used examples

nice table

\begin{table*}[!htbp]
  \centering
  \ra{1.3}
  \subfloat[Results on year 2016 datasets]{
    \begin{tabular}{@{}lcrrrrrcrrrrr@{}}
      \toprule
      \multirow{2}{*}{Models} & & \multicolumn{5}{c}{Optimized ARS weights} &&
      \multicolumn{5}{c}{MAP} \\
@romanegloo
romanegloo / reinstall_python.md
Last active December 28, 2018 15:16
Uninstall a Python version and reinstall a new oone

On Mac OS, managing Python versions with homebrew is not trivial, almost impossible.

Here, I uninstall pre-installed python version and re-install a new specific version.

To Uninstall a Python3 version

    ls -l /usr/local/bin | grep /Library/Frameworks/Python.framework/Versions/3 | awk '{print "rm \47/usr/local/bin/" $9 "\47"}'
 ls -d /Library/Frameworks/Python.framework/Versions/3.* 2> /dev/null | awk '{print "rm -rf \47" $0 "\47"}'
@romanegloo
romanegloo / spacy_multithreading_example.py
Created December 12, 2018 22:08
Multithreading spaCy's parser
import spacy
nlp = spacy.load('de')
for doc in nlp.pipe(texts, n_threads=16, batch_size=10000):
analyse_text(doc)
@romanegloo
romanegloo / 331-bm-acronyms.csv
Last active November 2, 2018 13:56
331 Most common biomedical abbreviations found in Medline abstracts
frequency abbreviation phrase
50580 MRI magnetic resonance imaging
48054 BMI body mass index
45890 CT computed tomography
42919 NO nitric oxide
42320 ROS reactive oxygen species
42072 PCR polymerase chain reaction
41060 AD Alzheimer's disease
35266 LPS lipopolysaccharide
35101 IL interleukin