Skip to content

Commit

Permalink
Increase heap space for languagetool
Browse files Browse the repository at this point in the history
  • Loading branch information
rvp-c committed Feb 21, 2025
1 parent 85a3430 commit b988917
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.neuris
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ COPY server.properties .

EXPOSE 8181/tcp

ENTRYPOINT [ "java", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer", "--config", "server.properties", "--port", "8181", "--allow-origin", "--public" ]
ENTRYPOINT [ "java", "-Xms1024m", "-Xmx2048m", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer", "--config", "server.properties", "--port", "8181", "--allow-origin", "--public" ]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.languagetool.rules;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.ResourceBundle;
import org.apache.commons.lang3.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,13 @@ public void testRule_noBorderNumber_MatchFound() throws IOException {

assertEquals(1, matches.size());
}

@Test
public void testRule_allowedUppercase_forNouns() throws IOException {
List<RuleMatch> matches;

matches = lt.check("Das ist das 1000 Teller, dass ich sage es ist keine Randnummer.");

assertEquals(1, matches.size());
}
}

0 comments on commit b988917

Please sign in to comment.