Package com.gengoai.hermes.format
Class CoNLLRow
- java.lang.Object
-
- com.gengoai.hermes.format.CoNLLRow
-
- All Implemented Interfaces:
Serializable
public final class CoNLLRow extends Object implements Serializable
A Row (token) in a CoNLL formatted file- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CoNLLRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOther(String name, String value)
Adds a field not specifically tracked.String
getOther(String name)
Gets a non-specific field with the given name.boolean
hasOther(String name)
Checks if a value for the given non-specified property name exists
-
-
-
Method Detail
-
addOther
public void addOther(String name, String value)
Adds a field not specifically tracked.- Parameters:
name
- the name of the fieldvalue
- the value of the field
-
getOther
public String getOther(String name)
Gets a non-specific field with the given name.- Parameters:
name
- the name- Returns:
- the value
-
hasOther
public boolean hasOther(String name)
Checks if a value for the given non-specified property name exists- Parameters:
name
- the name- Returns:
- True exists, False otherwise
-
-