Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.4.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.maltparser.core.syntaxgraph.feature
Class ColumnFeature

    java.lang.Object
      org.maltparser.core.syntaxgraph.feature.ColumnFeature

All Implemented Interfaces:
  FeatureFunction, Function, Modifiable

Direct Known Subclasses:
  InputColumnFeature, OutputColumnFeature

    public abstract class ColumnFeature

extends Object
implements FeatureFunction, Modifiable

Author:
  Johan Hall

Field Summary
`protected ColumnDescription` | `column`
`protected SingleFeatureValue` | `featureValue`

Constructor Summary
`ColumnFeature()`

Method Summary
`boolean` | `equals(Object obj)`
`int` | `getCode(String value)` Returns the integer representation of the string `symbol` according to the feature function.
`ColumnDescription` | `getColumn()`
`String` | `getColumnName()`
`FeatureValue` | `getFeatureValue()` Returns the feature value
`abstract Class<?>[]` | `getParameterTypes()` Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments.
`String` | `getSymbol(int value)` Returns the string representation of the integer `code` according to the feature function.
`SymbolTable` | `getSymbolTable()` Returns the symbol table used by the feature function.
`abstract void` | `initialize(Object[] arguments)` Initialize the feature function
`protected void` | `setColumn(ColumnDescription column)`
`void` | `setFeatureValue(int value)` Override the feature value of the feature function.
`void` | `setFeatureValue(String value)` Override the feature value of the feature function.
`String` | `toString()`
`abstract void` | `update()` Cause the feature function to update the feature value.
`void` | `updateCardinality()` Cause the feature function to update the cardinality of the feature value.

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### column

    protected ColumnDescription column

### featureValue

    protected SingleFeatureValue featureValue

Constructor Detail

### ColumnFeature

    public ColumnFeature()
                  throws MaltChainedException

Throws:
  `MaltChainedException`

Method Detail

### update

    public abstract void update()
                         throws MaltChainedException

  Description copied from interface: `Function`
  Cause the feature function to update the feature value.

  Specified by:
    `update` in interface `Function`
  Throws:
    `MaltChainedException`

### initialize

    public abstract void initialize(Object[] arguments)
                             throws MaltChainedException

  Description copied from interface: `Function`
  Initialize the feature function

  Specified by:
    `initialize` in interface `Function`
  Parameters:
    `arguments` - an array of arguments with the type returned by getParameterTypes()
  Throws:
    `MaltChainedException`

### getParameterTypes

    public abstract Class<?>[] getParameterTypes()

  Description copied from interface: `Function`
  Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments.

  Specified by:
    `getParameterTypes` in interface `Function`
  Returns:
    an array of class types

### getSymbol

    public String getSymbol(int value)
                     throws MaltChainedException

  Description copied from interface: `FeatureFunction`
  Returns the string representation of the integer `code` according to the feature function.

  Specified by:
    `getSymbol` in interface `FeatureFunction`
  Parameters:
    `value` - the integer representation of the symbol
  Returns:
    the string representation of the integer `code` according to the feature function.
  Throws:
    `MaltChainedException`

### getCode

    public int getCode(String value)
                throws MaltChainedException

  Description copied from interface: `FeatureFunction`
  Returns the integer representation of the string `symbol` according to the feature function.

  Specified by:
    `getCode` in interface `FeatureFunction`
  Parameters:
    `value` - the string representation of the symbol
  Returns:
    the integer representation of the string `symbol` according to the feature function.
  Throws:
    `MaltChainedException`

### getColumn

    public ColumnDescription getColumn()

### setColumn

    protected void setColumn(ColumnDescription column)

### updateCardinality

    public void updateCardinality()

  Description copied from interface: `FeatureFunction`
  Cause the feature function to update the cardinality of the feature value.

  Specified by:
    `updateCardinality` in interface `FeatureFunction`

### setFeatureValue

    public void setFeatureValue(int value)
                         throws MaltChainedException

  Description copied from interface: `Modifiable`
  Override the feature value of the feature function.

  Specified by:
    `setFeatureValue` in interface `Modifiable`
  Parameters:
    `value` - an integer representation of the symbol
  Throws:
    `MaltChainedException`

### setFeatureValue

    public void setFeatureValue(String value)
                         throws MaltChainedException

  Description copied from interface: `Modifiable`
  Override the feature value of the feature function.

  Specified by:
    `setFeatureValue` in interface `Modifiable`
  Parameters:
    `value` - an string representation of the symbol
  Throws:
    `MaltChainedException`

### getFeatureValue

    public FeatureValue getFeatureValue()

  Description copied from interface: `FeatureFunction`
  Returns the feature value

  Specified by:
    `getFeatureValue` in interface `FeatureFunction`
  Returns:
    the feature value

### equals

    public boolean equals(Object obj)

  Overrides:
    `equals` in class `Object`

### getColumnName

    public String getColumnName()

### getSymbolTable

    public SymbolTable getSymbolTable()

  Description copied from interface: `FeatureFunction`
  Returns the symbol table used by the feature function.

  Specified by:
    `getSymbolTable` in interface `FeatureFunction`
  Returns:
    the symbol table used by the feature function.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.4.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.