Class StringProperty
Represents a string property.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:numl.Model
Assembly:numl.dll
Syntax
public class StringProperty : Property
Constructors
View SourceStringProperty()
Default constructor.
Declaration
public StringProperty()
Properties
View SourceAsEnum
Treat as enumeration.
Declaration
public bool AsEnum { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if as enum, false if not. |
Dictionary
generated dictionary (using bag of words model)
Declaration
public string[] Dictionary { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The dictionary. |
Exclude
Exclusion set (stopword removal)
Declaration
public string[] Exclude { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The exclude. |
Length
Expansion length (total distinct words)
Declaration
public override int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The length. |
Overrides
View SourceSeparator
How to separate words (defaults to a space)
Declaration
public string Separator { get; set; }
Property Value
Type | Description |
---|---|
System.String | The separator. |
SplitType
How to split text.
Declaration
public StringSplitType SplitType { get; set; }
Property Value
Type | Description |
---|---|
StringSplitType | The type of the split. |
Methods
View SourceConvert(Double)
Convert from number to string.
Declaration
public override object Convert(double val)
Parameters
Type | Name | Description |
---|---|---|
System.Double | val | Number. |
Returns
Type | Description |
---|---|
System.Object | String. |
Overrides
View SourceConvert(Object)
Convert string to list of numbers.
Declaration
public override IEnumerable<double> Convert(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | in string. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Double> | lazy list of numbers. |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the requested operation is invalid. |
Equals(Object)
Equality test
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object to compare |
Returns
Type | Description |
---|---|
System.Boolean | equality |
Overrides
View SourceGetColumns()
Expansion column names.
Declaration
public override IEnumerable<string> GetColumns()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | List of distinct words and positions. |
Overrides
View SourceGetHashCode()
Return hash
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | hash |
Overrides
View SourceImportExclusions(String)
import exclusion list from file.
Declaration
public void ImportExclusions(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | . |
PreProcess(IEnumerable<Object>)
Preprocess data set to create dictionary.
Declaration
public override void PreProcess(IEnumerable<object> examples)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Object> | examples | . |