Skip to content

Instantly share code, notes, and snippets.

View alelom's full-sized avatar

Alessio Lombardi alelom

View GitHub Profile
alelom / test.ghx
Last active February 6, 2023 12:25
<?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">
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)