Skip to content

Instantly share code, notes, and snippets.

@DataDistiller
DataDistiller / leipzig.py
Created March 17, 2022 17:47 — forked from derlin/leipzig.py
Python scripts for downloading Leipzig Corpora Languages
import tarfile
from html.parser import HTMLParser
from io import BytesIO
import requests
import os
class LeipzigResourceFinder(HTMLParser):
"""Find available leipzig resources for a given language."""

ConceptNet to perform interesting tasks such as the following:

• ‘given a story describing a series of everyday events, where is it likely that these events will take place, what is the mood of the story, and what are possible next events?’ (spatial, affective, and temporal projections),

• ‘given a search query (assuming the terms are commonsensical) where one of the terms can have multiple meanings, which meaning is most likely?’ (contextual disambiguation),

• ‘presented with a novel concept appearing in a story, which known concepts most closely resemble or approximate the novel concept?’ (analogy-making).

{
@DataDistiller
DataDistiller / neo4j_cypher_cheatsheet.md
Last active September 20, 2020 17:14 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Graph Databases Store non temporal data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)