Skip to content

Instantly share code, notes, and snippets.

View myedibleenso's full-sized avatar

Gus Hahn-Powell myedibleenso

View GitHub Profile
@myedibleenso
myedibleenso / Build.scala
Created February 29, 2016 22:27
an example of how to include a sbt dependency that is hosted on github
// save to project/Build.scala
import sbt.{Build, Project, ProjectRef, uri}
object MyBuild extends Build {
lazy val root = Project("root", sbt.file(".")).dependsOn(procAgiga)
lazy val procAgiga = ProjectRef(uri("git://github.com/myedibleenso/processors-agiga.git#master"), "processors-agiga")
}
@myedibleenso
myedibleenso / OdinExample.scala
Created February 18, 2016 02:09
odin example
// requires processors library: https://github.com/clulab/processors/blob/master/README.md
import edu.arizona.sista.odin._
import edu.arizona.sista.processors.fastnlp.FastNLPProcessor
val proc = new FastNLPProcessor
// a couple of simple examples to test the rules against.
val text = "a tiger is a kind of big cat. an eye is a part of a tiger."
val doc = proc annotate text
@myedibleenso
myedibleenso / test.yml
Created February 18, 2016 01:52
example rules for semantic relations
taxonomy:
- Entity:
- Noun
- Adjective
- NounPhrase
- Patterns:
- KindOfPattern
- PartOfPattern
- Event:
- KindOf
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;