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
# SpaCy NER and sentence parser version 1 | |
import os | |
import pandas as pd | |
import spacy | |
from spacy.gold import biluo_tags_from_offsets | |
from spacy.vocab import Vocab | |
from spacy.tokens import Doc | |
from itertools import combinations |
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
"""Custom Search Parameters: | |
https://developers.google.com/custom-search/json-api/v1/reference/cse/list | |
""" | |
import pprint | |
import pandas as pd | |
from googleapiclient.discovery import build | |
def google_search(name,keyword,page_start): | |
# Build a service object for interacting with the API. Visit |
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
import win32com.client | |
def sendEmail(subject,body,attachment): | |
olMailItem = 0x0 | |
obj = win32com.client.Dispatch("Outlook.Application") | |
newMail = obj.CreateItem(olMailItem) | |
newMail.Subject = subject | |
newMail.Body = body |
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
import os | |
import time | |
from selenium import webdriver | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
def make_dir(directory): |
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
import pandas as pd | |
import xml.etree.ElementTree as ET | |
xmlFile='20180209-gleif-concatenated-file-rr.xml' | |
tree = ET.parse(xmlFile) | |
root=tree.getroot() | |
xmlns_xs = '{http://www.w3.org/2001/XMLSchema}' |