public class MinimumPennTemplateAcceptor extends Object implements DependencyPathAcceptor
DependencyPathAcceptor
that accepts the minimum set of path
templates specified by Padó and
Lapata (2007). This acceptor is designed to be used with the Penn
Treebank part of speech tag
set and dependency relations from the pre-1.4 Malt parser (not the
Stanford typed dependencies). Note that this template's patters is an
adaptation of the the original patterns, which were specified using
the Minipar relations and part of speech tags.MediumPennTemplateAcceptor
,
MaximumPennTemplateAcceptor
Constructor and Description |
---|
MinimumPennTemplateAcceptor()
Creates the acceptor with its standard templates
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(DependencyPath path)
Returns
true if the path matches one of the predefined templates |
int |
maxPathLength()
Returns the maximum path length allowed by this acceptor.
|
public MinimumPennTemplateAcceptor()
public boolean accepts(DependencyPath path)
true
if the path matches one of the predefined templatesaccepts
in interface DependencyPathAcceptor
path
- a dependency pathtrue
if the path matches a templatepublic int maxPathLength()
maxPathLength
in interface DependencyPathAcceptor
Copyright © 2012. All Rights Reserved.