public class DkproContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
static String |
ENV_DKPRO_HOME |
Constructor and Description |
---|
DkproContext() |
Modifier and Type | Method and Description |
---|---|
static DkproContext |
getContext()
The the current context.
|
File |
getWorkspace()
Get the workspace directory.
|
File |
getWorkspace(Class<?> aClass)
Get the workspace directory for a particular class.
|
File |
getWorkspace(String aTopic)
Get the workspace directory for a particular topic.
|
public static final String ENV_DKPRO_HOME
public static final String DEFAULT_ENCODING
public static DkproContext getContext()
public File getWorkspace() throws IOException
IOException
- if the workspace cannot be obtainedpublic File getWorkspace(Class<?> aClass) throws IOException
aClass
- a class.IOException
- if the workspace cannot be obtained.public File getWorkspace(String aTopic) throws IOException
aTopic
- the topic ID.IOException
- if the workspace cannot be obtained.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.