Show / Hide Table of Contents

Class StringProperty

Represents a string property.

Inheritance
System.Object
Property
StringProperty
Inherited Members
Property.Name
Property.Type
Property.Start
Property.Discrete
Property.PreProcess(Object)
Property.PostProcess(IEnumerable<Object>)
Property.PostProcess(Object)
Property.ToString()
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 Source

StringProperty()

Default constructor.

Declaration
public StringProperty()

Properties

View Source

AsEnum

Treat as enumeration.

Declaration
public bool AsEnum { get; set; }
Property Value
Type Description
System.Boolean

true if as enum, false if not.

View Source

Dictionary

generated dictionary (using bag of words model)

Declaration
public string[] Dictionary { get; set; }
Property Value
Type Description
System.String[]

The dictionary.

View Source

Exclude

Exclusion set (stopword removal)

Declaration
public string[] Exclude { get; set; }
Property Value
Type Description
System.String[]

The exclude.

View Source

Length

Expansion length (total distinct words)

Declaration
public override int Length { get; }
Property Value
Type Description
System.Int32

The length.

Overrides
Property.Length
View Source

Separator

How to separate words (defaults to a space)

Declaration
public string Separator { get; set; }
Property Value
Type Description
System.String

The separator.

View Source

SplitType

How to split text.

Declaration
public StringSplitType SplitType { get; set; }
Property Value
Type Description
StringSplitType

The type of the split.

Methods

View Source

Convert(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
Property.Convert(Double)
View Source

Convert(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
Property.Convert(Object)
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the requested operation is invalid.

View Source

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
Property.Equals(Object)
View Source

GetColumns()

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
Property.GetColumns()
View Source

GetHashCode()

Return hash

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

hash

Overrides
Property.GetHashCode()
View Source

ImportExclusions(String)

import exclusion list from file.

Declaration
public void ImportExclusions(string file)
Parameters
Type Name Description
System.String file

.

View Source

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

.

Overrides
Property.PreProcess(IEnumerable<Object>)
  • View Source
©2017 — Seth Juarez
numl v0.9.20-beta
MIT License
docs by docfx