Open ChristophLeonhardt opened 4 years ago
Not sure if it makes sense to hard code this information into the R code, but if you do it for German and English, one easily could do it for French as well. This functionality would be provided in R/corenlp.R.
fr = function(){ message("... installing model files for: French") french_jar_url <- "http://nlp.stanford.edu/software/stanford-french-corenlp-2018-10-05-models.jar" french_jar <- file.path(corenlp_dir, "stanford-corenlp-full-2017-06-09", basename(french_jar_url)) download.file(url = french_jar_url, destfile = french_jar) unzip(french_jar, files = "StanfordCoreNLP-french.properties") zip(zipfile = french_jar, files = "StanfordCoreNLP-french.properties", flags = "-d") }
Not sure if it makes sense to hard code this information into the R code, but if you do it for German and English, one easily could do it for French as well. This functionality would be provided in R/corenlp.R.