Class TextUtilities
Inheritance
TextUtilities
Assembly: TowseyLibrary.dll
Syntax
public class TextUtilities
Constructors
|
Improve this Doc
View Source
TextUtilities()
Declaration
Fields
|
Improve this Doc
View Source
SPLIT_ON_SPACE_ONLY
Declaration
public static readonly int SPLIT_ON_SPACE_ONLY
Field Value
|
Improve this Doc
View Source
SPLIT_ON_WORDS_NUMBERS
Declaration
public static readonly int SPLIT_ON_WORDS_NUMBERS
Field Value
|
Improve this Doc
View Source
SPLIT_ON_WORDS_ONLY
Declaration
public static readonly int SPLIT_ON_WORDS_ONLY
Field Value
Methods
|
Improve this Doc
View Source
ConvertIntegerArray2NgramCount(Int32[], Int32)
Declaration
public static Dictionary<string, int> ConvertIntegerArray2NgramCount(int[] integers, int ngramValue)
Parameters
Type |
Name |
Description |
Int32[] |
integers |
|
Int32 |
ngramValue |
|
Returns
|
Improve this Doc
View Source
getNeighbourhoodAfter(Int32, Int32, String)
Declaration
public static int getNeighbourhoodAfter(int N, int start, string text)
Parameters
Returns
|
Improve this Doc
View Source
getNeighbourhoodBefore(Int32, Int32, String)
Declaration
public static int getNeighbourhoodBefore(int N, int start, string text)
Parameters
Returns
|
Improve this Doc
View Source
GetNgrams(String, Int32)
returns a dictionary of counts of character N-grams in a string.
Declaration
public static Dictionary<string, int> GetNgrams(string str, int ngramValue)
Parameters
Returns
|
Improve this Doc
View Source
getWordIndex(Int32, Int32[,])
Declaration
public static int getWordIndex(int N, int[, ] wordLoc)
Parameters
Returns
|
Improve this Doc
View Source
getWordsAfter(Int32, Int32, String)
Declaration
public static ArrayList getWordsAfter(int N, int start, string text)
Parameters
Returns
|
Improve this Doc
View Source
getWordsBefore(Int32, Int32, String)
Declaration
public static ArrayList getWordsBefore(int N, int start, string text)
Parameters
Returns
|
Improve this Doc
View Source
getWordsInNeighbourhood(Int32, Int32, Int32, String)
Declaration
public static string[, ] getWordsInNeighbourhood(int N, int start, int end, string text)
Parameters
Returns
|
Improve this Doc
View Source
LD(String, String)
Declaration
public static int LD(string s, string t)
Parameters
Returns
|
Improve this Doc
View Source
main(String[])
Declaration
public static void main(string[] args)
Parameters
Type |
Name |
Description |
String[] |
args |
|
|
Improve this Doc
View Source
Minimum(Int32, Int32, Int32)
Declaration
public static int Minimum(int a, int b, int c)
Parameters
Returns
|
Improve this Doc
View Source
removeFirstWord(String)
Declaration
public static string removeFirstWord(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
Improve this Doc
View Source
StringContainsChar(String, Char)
Declaration
public static bool StringContainsChar(string str, char ch)
Parameters
Returns
Extension Methods