Skip to content

Instantly share code, notes, and snippets.

View kaddynator's full-sized avatar
Coffee and Poisoning Deep Models

Karthik Ravi kaddynator

Coffee and Poisoning Deep Models
View GitHub Profile
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://www.dropbox.com/s/f10xrzxnwi1fz85/overview_tensor.tsv?dl=1",
"metadataPath": "https://www.dropbox.com/s/nrd66qyx0oiic1k/overview_metadata.tsv?dl=1"
# encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: w2v_visualizer.py
@time: 2017/7/30 上午9:37
"""
@kaddynator
kaddynator / awesome-kge.md
Last active August 30, 2019 16:46 — forked from mommi84/awesome-kge.md
Awesome Knowledge Graph Embedding Approaches

Awesome Knowledge Graph Embedding Approaches

Awesome

This list contains repositories of libraries and approaches for knowledge graph embeddings, which are vector representations of entities and relations in a multi-relational directed labelled graph. Licensed under CC0.

Libraries

@kaddynator
kaddynator / hackathon.gif
Last active June 26, 2019 21:13
Hackathons
hackathon.gif
@kaddynator
kaddynator / aboutme.gif
Last active June 26, 2019 20:49
About_Me
aboutme.gif
@kaddynator
kaddynator / social_media.gif
Last active June 26, 2019 20:53
social_media
social_media.gif
@kaddynator
kaddynator / travel.gif
Last active June 26, 2019 21:14
My Travel
travel.gif
@kaddynator
kaddynator / DFM.R
Last active March 4, 2019 21:16
Document Term Matrix
library(readr)
library(slam)
library(quanteda);
library(tidyverse);
library(RColorBrewer)
###--------------------creating document term matrix
##remove stopwords, punctuation, symbols,
##the TEXTINPUT is the input text for the dfm
dfm <- dfm(TEXTINPUT,
# This works in MACs
# Dataframe can also be used in R
import pandas as pd
##reading a csv file
df = pd.read_csv("PATH WHERE YOUR FILE IS SAVED/filename.csv", encoding='utf-8',lineterminator = '\n',index_col=0)
##writing a csv file
df.to_csv("PATH WHERE YOU WANT TO SAVE YOUR FILE/filename.csv",quoting=csv.QUOTE_NONNUMERIC, date_format='%Y-%m-%d %H:%M:%S', encoding='utf-8',line_terminator = '\n')