public enum ClauseStatus extends Enum<ClauseStatus>
This is an enumeration of the two different types of clauses used in the SimplNLG package. Clauses can be either matrix or subordinate. Matrix clauses are not contained within any other clause and frequently span an entire sentence, whereas a subordinate clauses is contained within another clause.
As an example, take the phrase, whoever said it is wrong. This phrase has two clauses, one being the main clause and the other being a subordinate clause. The section in bold type highlights the subordinate clause. It is entirely contained within another clause. The matrix clause is of the form he is wrong or to be more general X is wrong. X can be replaced with a single subject or, as is the case here, by a subordinate clause.
The clause status is recorded under the Feature.CLAUSE_STATUS feature
and applies only to clauses.
Copyright (C) 2010, University of Aberdeen
| Enum Constant and Description |
|---|
MATRIX
This enumeration represents a matrix clause.
|
SUBORDINATE
The subordinate clauses are contained within a higher clause.
|
| Modifier and Type | Method and Description |
|---|---|
static ClauseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClauseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClauseStatus MATRIX
public static final ClauseStatus SUBORDINATE
public static ClauseStatus[] values()
for (ClauseStatus c : ClauseStatus.values()) System.out.println(c);
public static ClauseStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All Rights Reserved.