Skip to content

Instantly share code, notes, and snippets.

View mattleblanc's full-sized avatar
🎉
"if you ain't boostin', you ain't livin'"

Matt LeBlanc mattleblanc

🎉
"if you ain't boostin', you ain't livin'"
View GitHub Profile
@kratsg
kratsg / README.md
Last active July 19, 2021 20:34
Aeneas Alignment

Aligning Text with Aeneas

I've installed aeneas and I want to split text. Here's what I did. Taking the raw transcript from my captioner, I convert to plain text (on Mac OSX using textutil):

textutil 2021-01-28\ Machine\ Learning.rtf -convert txt

This gives me 2021-01-28\ Machine\ Learning.txt which I then process with split.py above (requires nltk):

GbbSRA (baseline_electrons_n + baseline_muons_n == 0)*(dphi_min > 0.4)*(bjets_n >= 3)*((pt_jet_1 >= 70) & (pt_jet_2 >= 70) & (pt_jet_3 >= 70) & (pt_jet_4 >= 70))*(met >= 450)*(meff_4j >= 1900)
******************************************************************************************************************************************************************************
* Row * event_number&0x * run_number * bjets_n * pt_jet_1 * pt_jet_2 * pt_jet_3 * pt_jet_4 * met * meff_4j *
******************************************************************************************************************************************************************************
* 87675 * 2418777995 * 300800 * 3 * 774.02752685546 * 436.15490722656 * 312.86410522460 * 180.34603881835 * 508.19631958007 * 2211.5888671875 *
*******************************************************************************************************************************