public class CRFResource extends Resource
Constructor and Description |
---|
CRFResource(java.lang.String name,
java.lang.String path,
int lang)
Loads a CRFResource.
|
Modifier and Type | Method and Description |
---|---|
protected void |
alloc(java.lang.String name,
java.lang.String path,
int lang)
Native resource allocation.
|
protected void |
allocate()
Function you should override to perform allocation of the underlying
data.
|
static boolean |
convertResourceFromCrfsuiteModel(java.lang.String crfsuiteModelFile,
java.lang.String destPath)
Loads a CRFSuite CRF model and converts it to a CRFResource.
|
protected void |
free()
Function you should override to perform deallocation of the underlying
data.
|
_getParametersDigest, equals, finalize, getExpandedPath, getExpandedPath, getExpandedPath, getExpandedPathIfExists, getExpandedPathIfExists, getIdentifier, getLang, getLangName, getName, hashCode, hasPath, register, register, release, release
public CRFResource(java.lang.String name, java.lang.String path, int lang)
name
- the resource's name.path
- URI of the resource to be loaded.lang
- the resource's language.public static boolean convertResourceFromCrfsuiteModel(java.lang.String crfsuiteModelFile, java.lang.String destPath)
crfsuiteModelFile
- the CRFSuite modeldestPath
- our model pathprotected void allocate() throws ResourceNotFoundException
allocate
in class Resource
ResourceNotFoundException
protected void alloc(java.lang.String name, java.lang.String path, int lang)
Copyright © 2013 Dassault Systèmes, All Rights Reserved.