This file contains hidden or 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
library("gistr") | |
Sys.setenv(GITHUB_PAT ="token_to_insert_here") | |
#https://help.github.com/articles/creating-an-access-token-for-command-line-use | |
gist_auth() | |
#### filename - code ###################################### | |
stuffpath <- "C:/file_name_full_path" | |
###################################################à | |
#gist ID creation (only once) - ############################################### |
This file contains hidden or 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
#https://gist.github.com/cristiano74/d778e0347fea9ff00da6a24b7aae87e5 | |
#gists_temp3 | |
test_proportion=8/9 #percentuale di successi osservata | |
total_tested=9 #nr di deliverd | |
passed = round(test_proportion*total_tested) #nr successi | |
benchmark_value=0.70 #valore di riferimento | |
conf_level=0.95 | |
scope="UniqueOpenRate" |
This file contains hidden or 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 apply_model_ner(source,spacy_model): | |
""" | |
source: "./data/T_4_slot_1.jsonl" | |
spacy_model="./model_T_2_1" | |
example --> apply_model_ner("./data/T_4_slot_1.jsonl","./model_T_2_1") | |
""" | |
from prodigy.components.loaders import JSONL | |
import copy | |
import spacy |
This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Aug 21 13:07:31 2018 | |
@author: cristianodalfarra | |
""" | |
#!/usr/bin/env python | |
# coding:utf-8 |
This file contains hidden or 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
Install thi repo: | |
- https://github.com/defunkt/gist | |
- gem install gist | |
GEM installation: | |
- sudo apt-get install rubygems | |
======================== | |
Login |
This file contains hidden or 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
lskdllsdk | |
sld?ls?d | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
ciao |
NewerOlder