[nlp] corenlps/johnsnows/spacys for https versions of schema

parent 88c41939
Pipeline #3793 failed with stage
in 33 minutes and 30 seconds
......@@ -86,6 +86,13 @@ MAIL_FROM =
MAIL_LOGIN_TYPE = Normal
[nlp]
# Possible choices (see Gargantext.Core.NLP):
# - spacy:// (for http:// Spacy)
# - spacys:// (for https:// Spacy)
# - corenlp:// (for http:// CoreNLP)
# - corenlps:// (for https:// CoreNLP)
# - johnsnow:// (for http:// JohnSnow)
# - johnsnows:// (for https:// JohnSnow)
EN = corenlp://localhost:9000
FR = spacy://localhost:8001
All = corenlp://localhost:9000
......@@ -28,14 +28,26 @@ nlpServerConfigFromURI uri@(URI { uriScheme = "corenlp:" }) =
Just $ NLPServerConfig { server = CoreNLP
, url = uri { uriScheme = "http:" }
}
nlpServerConfigFromURI uri@(URI { uriScheme = "corenlps:" }) =
Just $ NLPServerConfig { server = CoreNLP
, url = uri { uriScheme = "https:" }
}
nlpServerConfigFromURI uri@(URI { uriScheme = "johnsnow:" }) =
Just $ NLPServerConfig { server = JohnSnowServer
, url = uri { uriScheme = "http:" }
}
nlpServerConfigFromURI uri@(URI { uriScheme = "johnsnows:" }) =
Just $ NLPServerConfig { server = JohnSnowServer
, url = uri { uriScheme = "https:" }
}
nlpServerConfigFromURI uri@(URI { uriScheme = "spacy:" }) =
Just $ NLPServerConfig { server = Spacy
, url = uri { uriScheme = "http:" }
}
nlpServerConfigFromURI uri@(URI { uriScheme = "spacys:" }) =
Just $ NLPServerConfig { server = Spacy
, url = uri { uriScheme = "https:" }
}
nlpServerConfigFromURI _ = Nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment