C# Class NamedEntityExtractorSK.Finder

Mostra file Open project: irfiit/wikipedia Class Usage Examples

Private Properties

Property Type Description
LetterPairs string[]
RemoveDiacritics string
Search string
WordLetterPairs List

Public Methods

Method Description
CompareStrings ( string str1, string str2 ) : double

Compares the two strings based on letter pair matches

Find ( ) : void
Finder ( List persons, List organizations, List locations ) : System
GetMatches ( string word, int take ) : List>

Get matches - result is location/person/organization

Private Methods

Method Description
LetterPairs ( string str ) : string[]

Generates an array containing every two consecutive letters in the input string

RemoveDiacritics ( string text ) : string
Search ( string word, int take = 2 ) : string

Search word by input

WordLetterPairs ( string str ) : List

Gets all letter pairs for each individual word in the string

Method Details

CompareStrings() public method

Compares the two strings based on letter pair matches
public CompareStrings ( string str1, string str2 ) : double
str1 string
str2 string
return double

Find() public method

public Find ( ) : void
return void

Finder() public method

public Finder ( List persons, List organizations, List locations ) : System
persons List
organizations List
locations List
return System

GetMatches() public method

Get matches - result is location/person/organization
public GetMatches ( string word, int take ) : List>
word string
take int
return List>