public class SpacyInputJsonWriter extends Object
Constructor and Description |
---|
SpacyInputJsonWriter()
Constructs a SpacyInputJsonWriter.
|
Modifier and Type | Method and Description |
---|---|
String |
createJsonString(String textFile,
String baseModelName,
String regexPattFile,
String entityRulerFile,
String tokenMatcherFile,
String depMatcherFile,
String modelFile,
String outputFile,
String[] features,
boolean gpuDesired,
boolean gpuRequired)
Generates the JSON string for the objects.
|
public SpacyInputJsonWriter()
public String createJsonString(String textFile, String baseModelName, String regexPattFile, String entityRulerFile, String tokenMatcherFile, String depMatcherFile, String modelFile, String outputFile, String[] features, boolean gpuDesired, boolean gpuRequired)
textFile
- the file name for the text to be parsedbaseModelName
- the base model name, used if no model fileregexPattFile
- the REGEX pattern JSON input fileentityRulerFile
- the Entity Ruler REGEX rule JSON input filetokenMatcherFile
- the Token Matcher REGEX rule JSON input filedepMatcherFile
- the Dependency Matcher REGEX rule JSON input filemodelFile
- the model file name for the parseoutputFile
- the file name to be used for the JSON outputfeatures
- the spaCy features to usegpuDesired
- whether GPU is desired during parsegpuRequired
- whether GPU is required during parseCopyright © 2023. All rights reserved.