C# Class NamedEntityExtractorSK.Finder

Afficher le fichier Open project: irfiit/wikipedia Class Usage Examples

Private Properties

Свойство Type Description
LetterPairs string[]
RemoveDiacritics string
Search string
WordLetterPairs List

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Find() public méthode

public Find ( ) : void
Résultat void

Finder() public méthode

public Finder ( List persons, List organizations, List locations ) : System
persons List
organizations List
locations List
Résultat System

GetMatches() public méthode

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