Skip to content

Instantly share code, notes, and snippets.

Avatar

Alessio Lombardi alelom

  • Buro Happold
  • London
View GitHub Profile
@alelom
alelom / test.ghx
Last active February 6, 2023 12:25
View test.ghx
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Archive name="Root">
<!--Grasshopper archive-->
<!--Grasshopper and GH_IO.dll are copyrighted by Robert McNeel & Associates-->
<!--Archive generated by GH_IO.dll file utility library {0.2.0002}-->
<items count="1">
<item name="ArchiveVersion" type_name="gh_version" type_code="80">
<Major>0</Major>
<Minor>2</Minor>
<Revision>2</Revision>
View NER_dataviz.py
import spacy
from collections import Counter, defaultdict
import srsly
from datetime import datetime
import pandas as pd
counts = defaultdict(Counter)
nlp = spacy.load(SPACY_MODEL)
data = srsly.read_jsonl(DATA_FILE)