Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.6
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
`protected void` | `castFeatureValue(String symbol)`
`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
`String` | `getMapIdentifier()`
`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.
`int` | `getType()`
`abstract void` | `initialize(Object[] arguments)` Initialize the feature function
`protected void` | `setColumn(ColumnDescription column)`
`void` | `setFeatureValue(int indexCode)` Override the feature value of the feature function.
`void` | `setFeatureValue(String symbol)` Override the feature value of the feature function.
`String` | `toString()`
`abstract void` | `update()` Cause the feature function to update 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 final 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)

### setFeatureValue

    public void setFeatureValue(int indexCode)
                         throws MaltChainedException

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

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

### setFeatureValue

    public void setFeatureValue(String symbol)
                         throws MaltChainedException

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

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

### castFeatureValue

    protected void castFeatureValue(String symbol)
                             throws MaltChainedException

  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.

### getType

    public int getType()

  Specified by:
    `getType` in interface `FeatureFunction`

### getMapIdentifier

    public String getMapIdentifier()

  Specified by:
    `getMapIdentifier` in interface `FeatureFunction`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

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

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