public class ParserModel extends Object
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Integer> |
dependencyLabels |
int |
dependencySize |
HashMap<Object,CompactArray>[] |
leftArcFeatureAveragedWeights |
IndexMaps |
maps |
Options |
options |
HashMap<Object,Float>[] |
reduceFeatureAveragedWeights |
HashMap<Object,CompactArray>[] |
rightArcFeatureAveragedWeights |
HashMap<Object,Float>[] |
shiftFeatureAveragedWeights |
| Constructor and Description |
|---|
ParserModel(AveragedPerceptron perceptron,
IndexMaps maps,
ArrayList<Integer> dependencyLabels,
Options options) |
ParserModel(HashMap<Object,Float>[] shiftFeatureAveragedWeights,
HashMap<Object,Float>[] reduceFeatureAveragedWeights,
HashMap<Object,CompactArray>[] leftArcFeatureAveragedWeights,
HashMap<Object,CompactArray>[] rightArcFeatureAveragedWeights,
IndexMaps maps,
ArrayList<Integer> dependencyLabels,
Options options,
int dependencySize) |
ParserModel(String modelPath) |
public HashMap<Object,CompactArray>[] leftArcFeatureAveragedWeights
public HashMap<Object,CompactArray>[] rightArcFeatureAveragedWeights
public int dependencySize
public IndexMaps maps
public Options options
public ParserModel(HashMap<Object,Float>[] shiftFeatureAveragedWeights, HashMap<Object,Float>[] reduceFeatureAveragedWeights, HashMap<Object,CompactArray>[] leftArcFeatureAveragedWeights, HashMap<Object,CompactArray>[] rightArcFeatureAveragedWeights, IndexMaps maps, ArrayList<Integer> dependencyLabels, Options options, int dependencySize)
public ParserModel(AveragedPerceptron perceptron, IndexMaps maps, ArrayList<Integer> dependencyLabels, Options options)
public ParserModel(String modelPath) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void saveModel(String modelPath) throws IOException
IOExceptionCopyright © 2014–2021 码农场. All rights reserved.