diff --git a/build.sbt b/build.sbt index 03de22c..77104d3 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ version := "0.1-SNAPSHOT" organization := "org.scalanlp" -scalaVersion := "2.11.1" +scalaVersion := "2.11.2" resolvers ++= Seq( "ScalaNLP Maven2" at "http://repo.scalanlp.org/repo", @@ -15,28 +15,13 @@ resolvers ++= Seq( ) libraryDependencies ++= Seq( - "org.scalanlp" %% "breeze" % "0.8.1", - "org.scalanlp" %% "epic" % "0.2-SNAPSHOT", - "org.scalanlp" %% "epic-parser-en-span" % "2014.7.29-SNAPSHOT", - "org.scalanlp" %% "epic-ner-en-conll" % "2014.7.29-SNAPSHOT", - //"org.scalanlp" %% "epic-pos-en" % "2014.6.3-SNAPSHOT", + "org.scalanlp" %% "epic" % "0.2", + "org.scalanlp" %% "epic-parser-en-span" % "2014.9.15", + "org.scalanlp" %% "epic-ner-en-conll" % "2014.10.26", "junit" % "junit" % "4.5" % "test" ) -libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) => - sv match { - case "2.9.2" => - (deps :+ ("org.scalatest" % "scalatest" % "1.4.RC2" % "test")) - case x if x.startsWith("2.8") => - (deps :+ ("org.scalatest" % "scalatest" % "1.3" % "test") - :+ ("org.scala-tools.testing" % "scalacheck_2.8.1" % "1.8" % "test")) - case _ => - (deps :+ ("org.scalacheck" %% "scalacheck" % "1.10.0" % "test") - :+ ("org.scalatest" %% "scalatest" % "2.0.M5b" % "test")) - } -} - credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") diff --git a/src/main/scala/epic/demo/EpicSeqDemo.scala b/src/main/scala/epic/demo/EpicSeqDemo.scala index 5d18dac..cefd167 100644 --- a/src/main/scala/epic/demo/EpicSeqDemo.scala +++ b/src/main/scala/epic/demo/EpicSeqDemo.scala @@ -4,12 +4,7 @@ import java.io.File import java.net.URL import epic.models.{NerSelector, ParserSelector} -import epic.parser.ParserAnnotator import epic.preprocess -import epic.preprocess.{TreebankTokenizer, MLSentenceSegmenter} -import epic.sequences.{SemiCRF, Segmenter} -import epic.slab.{EntityMention, Token, Sentence} -import epic.trees.{AnnotatedLabel, Tree} import epic.util.SafeLogging /** @@ -30,6 +25,13 @@ object EpicSeqDemo extends SafeLogging { val preprocessed = preprocess.preprocess(preprocess.TextExtractor.extractText(url)) + for(sent <- preprocessed) { + println(sent) + println(sent.length) + println("===") + println(parser(sent) render sent) + println("======") + } logger.info(s"==== parses for $arg ====") val parsed = preprocessed.par.map(parser).seq for((tree, sentence) <- parsed zip preprocessed) {