public class PartialTreeBeamScorerThread extends Object implements Callable<ArrayList<BeamElement>>
| Constructor and Description |
|---|
PartialTreeBeamScorerThread(boolean isDecode,
AveragedPerceptron classifier,
Instance instance,
Configuration configuration,
ArrayList<Integer> dependencyRelations,
int featureLength,
int b) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAvailableBeamElements(ArrayList<BeamElement> elements,
float prevScore,
boolean canShift,
boolean canReduce,
boolean canRightArc,
boolean canLeftArc,
Object[] features,
AveragedPerceptron classifier,
boolean isDecode,
int b,
ArrayList<Integer> dependencyRelations) |
ArrayList<BeamElement> |
call() |
public PartialTreeBeamScorerThread(boolean isDecode,
AveragedPerceptron classifier,
Instance instance,
Configuration configuration,
ArrayList<Integer> dependencyRelations,
int featureLength,
int b)
public ArrayList<BeamElement> call() throws Exception
call in interface Callable<ArrayList<BeamElement>>Exceptionpublic static void addAvailableBeamElements(ArrayList<BeamElement> elements, float prevScore, boolean canShift, boolean canReduce, boolean canRightArc, boolean canLeftArc, Object[] features, AveragedPerceptron classifier, boolean isDecode, int b, ArrayList<Integer> dependencyRelations)
Copyright © 2014–2021 码农场. All rights reserved.