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 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
WITH g1 As ( | |
SELECT citing, referenced, 1 As gen | |
FROM userdb_mariozzj_SAO4D.dbo.sample_xyc AS s INNER JOIN pubmed_2024.dbo.open_citation_collection As occ | |
ON s.pmid = occ.citing | |
), g2 AS ( | |
SELECT citing, referenced, 2 AS gen | |
FROM | |
(SELECT referenced AS r1 FROM g1 GROUP BY referenced) AS rg1 INNER JOIN pubmed_2024.dbo.open_citation_collection As occ | |
ON rg1.r1 = occ.citing | |
), g3 AS ( |
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
DECLARE @PMID INT; | |
DECLARE @PYEAR INT; | |
DECLARE @THRESHOLD INT = 2; | |
DECLARE cur CURSOR FOR | |
SELECT py.pmid AS PMID, py.publish_year AS PYEAR FROM | |
userdb_mariozzj_SAO4D.dbo.sample_xyc AS s | |
INNER JOIN | |
pubmed_2024.dbo.pmid_py AS py | |
ON s.pmid = py.pmid; |
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
from transformers import AutoConfig, AutoModel, AutoTokenizer | |
import pandas as pd | |
import numpy as np | |
import torch | |
import csv | |
import argparse | |
from tqdm import tqdm | |
if __name__ == '__main__': |
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/env python | |
""" | |
采集 MeSH 树中所有 MeSH 词,保存为 json 和 csv。 | |
Author: MarioZZJ <zjzheng@smail.nju.edu.cn> | |
Usage: | |
python3 download_mesh_tree.py | |
""" |
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
# python 3.8+ required | |
import csv | |
import glob | |
import gzip | |
import json | |
import os | |
SNAPSHOT_DIR = 'openalex-snapshot' | |
CSV_DIR = 'tsv-files' |
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
from glob import glob | |
from lxml import etree | |
import gc | |
import gzip | |
from dbutils.pooled_db import PooledDB | |
import pymysql | |
import threading | |
import logging | |
import time | |
import pandas as pd |
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
⭐ Total Stars: 13 | |
➕ Yearly Commits: 108 | |
🔀 Total PRs: 8 | |
🚩 Total Issues: 52 | |
📦 Contributed to: 6 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder