Skip to content

Commit

Permalink
Add Adapter in Grounder Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvacareanu committed Apr 24, 2024
1 parent faddb7a commit cc5017a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import org.clulab.processors.Processor
import org.clulab.processors.fastnlp.FastNLPProcessor

import scala.collection.JavaConverters._
import scala.io.Source
import org.ml4ai.skema.grounding.scala_grounders.ScalaGroundersAdapter


object GrounderFactory {

Expand Down Expand Up @@ -54,8 +57,9 @@ object GrounderFactory {
grounder
case "manual" => manualGrounder
case "scala-grounders" =>
// new ScalaGroundersAdapter() // See `miraembeddings` above
???
val ontologyFilePath = domainConfig.getString("ontologyPath")
ScalaGroundersAdapter.fromFile(groundingConceptsPath=ontologyFilePath) // See `miraembeddings` above
// ???
case other =>
throw new RuntimeException(s"$other - is not implemented as a grounding engine")
}
Expand Down

0 comments on commit cc5017a

Please sign in to comment.