Skip to content

Instantly share code, notes, and snippets.

@veegee
veegee / doobie_scalatest.scala
Last active June 17, 2016 14:11
ScalaTest support for Doobie
import org.scalatest._
import scala.reflect.runtime.universe.WeakTypeTag
import doobie.imports._
import doobie.contrib.postgresql.imports._
import doobie.contrib.postgresql.pgtypes._
import DoobiePgTypeImplicits._
import doobie.free.connection.{ConnectionIO, setAutoCommit, commit, rollback, close, delay}
import doobie.util.transactor.Transactor
import doobie.util.query.{Query, Query0}
@veegee
veegee / rake.py
Created May 29, 2016 16:34
RAKE algorithm implemented in Python 3.5+
"""
Implementation of RAKE - Rapid Automatic Keyword Extraction algorithm
as described in:
Rose, S., D. Engel, N. Cramer, and W. Cowley (2010).
Automatic keyword extraction from individual documents.
In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and Theory.unknown: John Wiley and Sons, Ltd.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by