public class MinimumMiniparTemplateAcceptor 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 Minipar parser
and its associated part of speech tag setConstructor and Description |
---|
MinimumMiniparTemplateAcceptor()
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 MinimumMiniparTemplateAcceptor()
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.