Class TokenTag

Namespace
NOpenNLP.Tools.Util
Assembly
NOpenNLP.Tools.dll
public class TokenTag
Inheritance
TokenTag
Inherited Members

Constructors

TokenTag(string, string, string[]?)

public TokenTag(string token, string tag, string[]? addtionalData)

Parameters

token string
tag string
addtionalData string[]

Properties

AddtionalData

public virtual string[]? AddtionalData { get; }

Property Value

string[]

Tag

public virtual string Tag { get; }

Property Value

string

Token

public virtual string Token { get; }

Property Value

string

Methods

Create(string[], string[])

public static TokenTag[] Create(string[] toks, string[] tags)

Parameters

toks string[]
tags string[]

Returns

TokenTag[]

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? o)

Parameters

o object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ExtractTags(TokenTag[])

public static string[] ExtractTags(TokenTag[] tuples)

Parameters

tuples TokenTag[]

Returns

string[]

ExtractTokens(TokenTag[])

public static string[] ExtractTokens(TokenTag[] tuples)

Parameters

tuples TokenTag[]

Returns

string[]

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.