Permalink
Browse files

Update arguments.

  • Loading branch information...
hscells committed Nov 25, 2018
1 parent 8c24151 commit 64cb8eb5f0286682074a802abb7a6839c7da6eba
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/chain/main.go
@@ -145,7 +145,7 @@ func ret(q cqr.CommonQueryRepresentation, s searchrefiner.Server, u string) (map

func initiate() error {
quickrank = searchrefiner.ServerConfiguration.Config.Options["QuicklearnBinary"].(string)
quickumls = quickumlsrest.NewClient(searchrefiner.ServerConfiguration.Config.Options["QuickUMLSURL"].(string))
//quickumls = quickumlsrest.NewClient(searchrefiner.ServerConfiguration.Config.Options["QuickUMLSURL"].(string))

log.Println("loading cui2vec components")
f, err := os.OpenFile(searchrefiner.ServerConfiguration.Config.Options["Cui2VecEmbeddings"].(string), os.O_RDONLY, 0644)
@@ -311,7 +311,7 @@ func (ChainPlugin) Serve(s searchrefiner.Server, c *gin.Context) {
// This is the mapping of selected transformations to the actual transformation implementation.
transformations := map[string]learning.Transformation{
"clause_removal": learning.NewClauseRemovalTransformer(),
"cui2vec_expansion": learning.Newcui2vecExpansionTransformer(vector, mapping, quickumls),
"cui2vec_expansion": learning.Newcui2vecExpansionTransformer(vector, mapping),
"mesh_parent": learning.NewMeshParentTransformer(),
"mesh_explosion": learning.NewMeSHExplosionTransformer(),
"field_restrictions": learning.NewFieldRestrictionsTransformer(),

0 comments on commit 64cb8eb

Please sign in to comment.