Skip to content

Instantly share code, notes, and snippets.

View fkdosilovic's full-sized avatar

Filip Karlo Došilović fkdosilovic

  • Newfire Global Partners
  • Zagreb
  • 06:21 (UTC +02:00)
  • X @fkdosilovic
View GitHub Profile
@fkdosilovic
fkdosilovic / nlp-tutorials-and-workshops.md
Last active July 12, 2022 10:18
NLP Tutorials and Workshops
@fkdosilovic
fkdosilovic / pos-lemmatizer.py
Created October 14, 2022 07:05
POS Tag informed Lemmatizer
class POSTagLemmatizer:
"""Wrapper around NLTK's WordNetLemmatizer that takes into
account token's POS tag."""
ABBR_TO_TAG = {
"n": ["NN", "NNS", "NNP", "NNPS"],
"v": ["VB", "VBD", "VBG", "VBN", "VBP", "VBZ"],
"r": ["RB", "RBR", "RBS"],
"a": ["JJ", "JJR", "JJS"],
}
@fkdosilovic
fkdosilovic / go-resources.md
Created May 26, 2023 19:57
A collection of resources for the Go programming language.
@fkdosilovic
fkdosilovic / benchmark_decompositions.py
Created January 20, 2024 19:22
Benchmark numpy and scipy decompositions
import time
import scipy as sp
import numpy as np
def benchmark(decomp, shapes, *, n_experiments=10):
def get_fn_name(fn):
return f"{fn.__module__}.{fn.__name__}"