GrammarScope  4.0.0
Static Public Member Functions | Static Public Attributes | List of all members
grammarscope.common.utils.Run Class Reference
Inheritance diagram for grammarscope.common.utils.Run:
Inheritance graph
[legend]

Static Public Member Functions

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)
 

Static Public Attributes

static final int MEM_BASE = 500
 
static final int MEM_CORENLP = 4500
 
static final int MEM_PARSER = 1000
 
static final int MEM_DEPPARSE = 2500
 
static final int MEM_POSTAGGER = 50
 
static final int MEM_MORE = 1500
 

Member Function Documentation

◆ computeArgs()

static String [] grammarscope.common.utils.Run.computeArgs ( final String[]  args0,
final Properties  properties 
)
static

Compute arguments

Parameters
args0args
propertiesproperties
Returns
memory in MB

◆ computeMem()

static int grammarscope.common.utils.Run.computeMem ( final Properties  properties)
static

Compute memory in MB

Parameters
propertiesproperties
Returns
memory in MB

◆ getClientProperties()

static Properties grammarscope.common.utils.Run.getClientProperties ( final String  persistFile,
final String[]  args 
)
static

Get properties

Parameters
persistFilepersist file
argscommand-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
corenlptrue if corenlp pipeline is to be loaded
dependencyParsertrue if dependency parser is to be loaded
taggertrue if pos tagger is to be loaded
moretrue if more is to be loaded
extramore memory in MB as per property
Returns
memory in MB

◆ main()

static void grammarscope.common.utils.Run.main ( final String[]  args)
static

Main

Parameters
argsarguments

Reimplemented in grammarscope.editor.Run, grammarscope.grapher.Run, and grammarscope.browser.Run.

◆ 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
propertiesproperties
argscommand-line arguments
Returns
client properties

Member Data Documentation

◆ 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: