Skip to content

Instantly share code, notes, and snippets.

View Mrpatekful's full-sized avatar

Patrik Purgai Mrpatekful

View GitHub Profile
@Mrpatekful
Mrpatekful / convert_hubert_tf_to_pt.py
Last active February 24, 2021 23:32
Workaround for using hubert for MLM.
import torch
import os
import tempfile
import transformers
import pathlib
import argparse
TF_CHECKPOINT_PATH = pathlib.Path("hubert").absolute()
PT_OUTPUT_PATH = pathlib.Path("hubertpt").absolute()
@Mrpatekful
Mrpatekful / named_entity_recognition.ipynb
Last active March 31, 2020 10:19
named_entity_recognition.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mrpatekful
Mrpatekful / dialogue_generation.ipynb
Created November 17, 2019 12:30
dialogue_generation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mrpatekful
Mrpatekful / named_entity_recognition.py
Last active November 12, 2019 22:33
Named entity recognition with BERT and CRF model on custom dataset.
"""
@author: Patrik Purgai
@copyright: Copyright 2019, named-entity-recognition
@license: MIT
@email: purgai.patrik@gmail.com
@date: 2019.07.12.
"""
# pylint: disable=import-error
# pylint: disable=no-name-in-module
@Mrpatekful
Mrpatekful / language_modelling.ipynb
Created June 12, 2019 12:31
language_modelling.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mrpatekful
Mrpatekful / tpu_test.ipynb
Last active March 31, 2019 08:20
TPU_test.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.