Class StringPattern
- Namespace
- NOpenNLP.Tools.Util.Featuregen
- Assembly
- NOpenNLP.Tools.dll
Recognizes predefined patterns in strings.
public class StringPattern
- Inheritance
-
StringPattern
- Inherited Members
Properties
ContainsComma
public virtual bool ContainsComma { get; }
Property Value
ContainsDigit
public virtual bool ContainsDigit { get; }
Property Value
ContainsHyphen
public virtual bool ContainsHyphen { get; }
Property Value
ContainsLetters
public virtual bool ContainsLetters { get; }
Property Value
ContainsPeriod
public virtual bool ContainsPeriod { get; }
Property Value
ContainsSlash
public virtual bool ContainsSlash { get; }
Property Value
Digits
Retrieves the number of digits.
public virtual int Digits { get; }
Property Value
IsAllCapitalLetter
public virtual bool IsAllCapitalLetter { get; }
Property Value
- bool
true if all letters are capital.
IsAllDigit
public virtual bool IsAllDigit { get; }
Property Value
- bool
true if all chars are digits.
IsAllHiragana
public virtual bool IsAllHiragana { get; }
Property Value
- bool
true if all chars are hiragana.
IsAllKatakana
public virtual bool IsAllKatakana { get; }
Property Value
- bool
true if all chars are katakana.
IsAllLetter
public virtual bool IsAllLetter { get; }
Property Value
- bool
true if all characters are letters.
IsAllLowerCaseLetter
public virtual bool IsAllLowerCaseLetter { get; }
Property Value
- bool
true if all letters are lower case.
IsInitialCapitalLetter
public virtual bool IsInitialCapitalLetter { get; }
Property Value
- bool
true if first letter is capital.
Methods
Recognize(string)
public static StringPattern Recognize(string token)
Parameters
tokenstring