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
| #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
| 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) - ############################################### |
OlderNewer