Skip to content

Instantly share code, notes, and snippets.

View gaphex's full-sized avatar

Denis gaphex

  • Moscow
View GitHub Profile
@gaphex
gaphex / meta.tsv
Last active December 13, 2021 23:47
Label Sentence
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
marketplace marketplace
We can't make this file beautiful and searchable because it's too large.
We couldn’t find that file to show.
{
"embeddings": [
{
"tensorName": "intents",
"tensorShape": [
5676,
768
],
"tensorPath": "https://gist.githubusercontent.com/gaphex/87e3ff7c20caec9301d331092c70f6d8/raw/6c8aa3b3c15a569b24b48b8bb7e003053124c962/embs.tsv",
"metadataPath": "https://gist.githubusercontent.com/gaphex/a967187517ea14857d9b2f52d987405e/raw/3892416710db9b7aa91f9445287b64d5c0c74e0c/meta.tsv"
We couldn’t find that file to show.
class SBERT:
def __init__(self, config):
self.loss = 0
self.metrics = []
self.inputs = []
self.config = config
self.build()
def build(self):
{
"embeddings": [
{
"tensorName": "intent embeddings",
"tensorShape": [
572,
1024
],
"tensorPath": "https://gist.githubusercontent.com/gaphex/aa0f25bca475b43007ca3c0d7cbf0591/raw/8c4a63de851e5cfbd9a5c3d2f3a3811ca287c274/intent_embeddings.tsv",
"metadataPath": "https://gist.githubusercontent.com/gaphex/0719ac81c7d7540daaed2ff5169af7aa/raw/808140457f555a3186b5c0b6915f7fc43325a304/intent_metadata.tsv"
Label Sentence
kak_perevoditsja как будет по-арабски
kak_perevoditsja как по-французски
kak_perevoditsja как будет по-турецки
kak_perevoditsja как будет на арабском
kak_perevoditsja переведи с арабского
kak_perevoditsja переведи на английский
kak_perevoditsja переведи с украинского
kak_perevoditsja переведи на арабский
kak_perevoditsja переведи с японского
We can't make this file beautiful and searchable because it's too large.
class PearsonrRankCallback(Callback):
def __init__(self, loader, filepaths, name=None, verbose=False,
sim_model=None, savemodel=None, savepath=None):
self.savemodel = savemodel
self.savepath = savepath
self.sim_model = sim_model
self.loader = loader
self.verbose = verbose