View entities of a list of docs:
doc = nlp("George Washington was the first president of the United States.")
for ent in doc.ents:
print("entity: ", ent.text, " : ", ent.label_)
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Current File", | |
"type": "python", | |
"request": "launch", |
doc = nlp("George Washington was the first president of the United States.")
for ent in doc.ents:
print("entity: ", ent.text, " : ", ent.label_)
Images - Stopped containers Containers - running containers
# select n items from a dict | |
from itertools import islice | |
def take(n, iterable): | |
"Return first n items of the iterable as a list" | |
return list(islice(iterable, n)) | |
n = 5 | |
for k,v in take(n, dictionary.items()): | |
print(k,v) |
`r '\U03B8'` - render unicode inline in rmarkdown
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="generator" content="pandoc" /> |
List of metrics First Tier:
Second Tier: Primary issues with 2nd tier - not easy to remember and have various names for the same thing: is there a way to prevent this, i.e. create some type of
function transition_text(element_id, display_text, t_duration){ | |
// base off of https://bl.ocks.org/mbostock/f7dcecb19c4af317e464 | |
svg.select(element_id) | |
.transition() | |
.duration(t_duration) | |
.on("start", function () { | |
var t = d3.active(this) | |
.style("opacity", 0) | |
.remove(); |
license: gpl-3.0 |