public class MaximumMiniparTemplateAcceptor extends Object implements DependencyPathAcceptor
DependencyPathAcceptor
that accepts the maximum set of path
templates specified by Padó and
Lapata (2007). This acceptor is designed to be used with the Minipar parser
and its associated part of speech tag set.Constructor and Description |
---|
MaximumMiniparTemplateAcceptor()
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 MaximumMiniparTemplateAcceptor()
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.