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
| { | |
| "dataset_reader": { | |
| "type": "conll2003", | |
| "tag_label": "ner", | |
| "token_indexers": { | |
| "tokens": { | |
| "type": "single_id", | |
| "lowercase_tokens": true | |
| }, | |
| "token_characters": { |
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 stack | |
| -- stack --resolver lts-12.0 script | |
| import Network.HTTP.Simple (parseRequest, httpLbs, getResponseBody) | |
| import qualified Data.ByteString.Lazy as BL (writeFile) | |
| import System.Environment (getArgs) | |
| import Data.Foldable (for_, traverse_) | |
| import Control.Concurrent.Async | |
| -- Get the following program working to download the 4 URLs and save | |
| -- their contents in the given files. |
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 nbformat | |
| import functools | |
| import sys | |
| def get_key(obj, key): | |
| if isinstance(obj, dict): | |
| return obj.get(key, None) | |
| elif isinstance(obj, (list, tuple)) and key < len(obj): | |
| return obj[key] |
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
| from IPython.core.display import display, HTML | |
| display(HTML("<style>.container { width:95% !important; }</style>")) | |
| display(HTML("<style>.output_result { max-width:90% !important; }</style>")) | |
| import numpy as np | |
| np.set_printoptions(precision=3) | |
| np.set_printoptions(linewidth=170) | |
| np.set_printoptions(suppress=True) | |
| np.random.seed(42) |
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
| // ==UserScript== | |
| // @name cal_anchors | |
| // @version 1 | |
| // @grant none | |
| // @include http://cal.huc.edu/* | |
| // ==/UserScript== | |
| const queryString = window.location.search; |
OlderNewer