This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import time | |
import math | |
from contextlib import contextmanager | |
@contextmanager | |
def timer(): | |
st = time.perf_counter() | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |