|
| static int | getMem (final boolean corenlp, final boolean dependencyParser, final boolean tagger, final boolean more, final int extra) |
| |
| static Properties | getClientProperties (final String persistFile, final String[] args) |
| |
| static int | computeMem (final Properties properties) |
| |
| static String[] | computeArgs (final String[] args0, final Properties properties) |
| |
| static Properties | overrideClientProperties (final Properties properties, final String[] args) |
| |
| static void | main (final String[] args) |
| |
◆ computeArgs()
| static String [] grammarscope.common.utils.Run.computeArgs |
( |
final String[] |
args0, |
|
|
final Properties |
properties |
|
) |
| |
|
static |
Compute arguments
- Parameters
-
| args0 | args |
| properties | properties |
- Returns
- memory in MB
◆ computeMem()
| static int grammarscope.common.utils.Run.computeMem |
( |
final Properties |
properties | ) |
|
|
static |
Compute memory in MB
- Parameters
-
- Returns
- memory in MB
◆ getClientProperties()
| static Properties grammarscope.common.utils.Run.getClientProperties |
( |
final String |
persistFile, |
|
|
final String[] |
args |
|
) |
| |
|
static |
Get properties
- Parameters
-
| persistFile | persist file |
| args | command-line arguments |
- Returns
- properties
◆ getMem()
| static int grammarscope.common.utils.Run.getMem |
( |
final boolean |
corenlp, |
|
|
final boolean |
dependencyParser, |
|
|
final boolean |
tagger, |
|
|
final boolean |
more, |
|
|
final int |
extra |
|
) |
| |
|
static |
Get memory in MB
- Parameters
-
| corenlp | true if corenlp pipeline is to be loaded |
| dependencyParser | true if dependency parser is to be loaded |
| tagger | true if pos tagger is to be loaded |
| more | true if more is to be loaded |
| extra | more memory in MB as per property |
- Returns
- memory in MB
◆ main()
| static void grammarscope.common.utils.Run.main |
( |
final String[] |
args | ) |
|
|
static |
◆ overrideClientProperties()
| static Properties grammarscope.common.utils.Run.overrideClientProperties |
( |
final Properties |
properties, |
|
|
final String[] |
args |
|
) |
| |
|
static |
Override client properties from settings with command-line arguments
- Parameters
-
| properties | properties |
| args | command-line arguments |
- Returns
- client properties
◆ MEM_BASE
| final int grammarscope.common.utils.Run.MEM_BASE = 500 |
|
static |
◆ MEM_CORENLP
| final int grammarscope.common.utils.Run.MEM_CORENLP = 4500 |
|
static |
◆ MEM_DEPPARSE
| final int grammarscope.common.utils.Run.MEM_DEPPARSE = 2500 |
|
static |
◆ MEM_MORE
| final int grammarscope.common.utils.Run.MEM_MORE = 1500 |
|
static |
◆ MEM_PARSER
| final int grammarscope.common.utils.Run.MEM_PARSER = 1000 |
|
static |
◆ MEM_POSTAGGER
| final int grammarscope.common.utils.Run.MEM_POSTAGGER = 50 |
|
static |
The documentation for this class was generated from the following file:
- grammarscope/common/src/main/java/grammarscope/common/utils/Run.java