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
import click | |
import pandas as pd | |
from pyspark.sql.functions import udf | |
from pyspark.sql import types as T | |
from geovec_data.utils import get_spark |
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
{ | |
"corpus": "gale", | |
"identifier": "XXX", | |
"title": "XXX", | |
"author_first": "XXX", | |
"author_last": "XXX", | |
"pub_year": 1900, | |
"token": ["The", "raw", "tokens"], | |
"tag": ["DT", "JJ", "NNS"] | |
} |
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
import torch | |
import csv | |
from torch import nn | |
from torch.nn import functional as F | |
from torch.autograd import Variable | |
from cached_property import cached_property |
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
https://docs.google.com/presentation/d/1su9sDVebcutqEqlpjP2prVUdJfsKhl5l8UClVC5_ZMA/edit?usp=sharing |
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
https://docs.google.com/presentation/d/1td9rxvUiMXfajR34iev8GoiDy9f2DDAaepM1fUxeKHw/edit?usp=sharing |
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
CREATE TABLE book_id ( | |
book_id INTEGER NOT NULL, | |
PRIMARY KEY (book_id) | |
); | |
CREATE TABLE chapter ( | |
scraped_at DATETIME NOT NULL, | |
book_id INTEGER NOT NULL, | |
chapter_number INTEGER NOT NULL, | |
chapter VARCHAR NOT NULL, | |
PRIMARY KEY (book_id, chapter_number), |
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
+-----+--------+ | |
|state| count| | |
+-----+--------+ | |
| CA|34308508| | |
| TX|21677337| | |
| NY|16945315| | |
| FL|13532303| | |
| IL| 9117109| | |
| GA| 7981133| | |
| PA| 7367569| |