Skip to content

Commit

Permalink
don't enforce requirements for non-English
Browse files Browse the repository at this point in the history
  • Loading branch information
J38 authored and AngledLuffa committed Oct 15, 2021
1 parent f7d9d97 commit f72ceda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ private Properties getProperties(HttpExchange httpExchange) throws UnsupportedEn
Properties languageSpecificProperties = new Properties();
languageSpecificProperties.load(is);
PropertiesUtils.overWriteProperties(props,languageSpecificProperties);
// don't enforce requirements for non-English
if (!LanguageInfo.getLanguageFromString(language).equals(LanguageInfo.HumanLanguage.ENGLISH))
props.setProperty("enforceRequirements", "false");
} catch (IOException e) {
err("Failure to load language specific properties: " + languagePropertiesFile + " for " + language);
}
Expand Down

0 comments on commit f72ceda

Please sign in to comment.