Свойство | Тип | Описание | |
---|---|---|---|
$exceptionsMap | |||
$lemmas | |||
$lexNames | stores all the lex names | ||
$posFileMaps | map part of speech character to its definition | ||
$synsets | An array with indexing. Indexing is pos with offset concatenated |
Метод | Описание | |
---|---|---|
getDataFileNames ( ) : string[] | ||
getExceptionFileNames ( ) : array | Returns array of file names with the exceptions | |
getExceptionMapFromString ( string $line, string $pos ) : |
||
getExceptionsMap ( ) : |
Returns the list of exception spellings | |
getFileNames ( ) : string[] | Returns the list of required files that is provided by the nltk project | |
getIndexFileNames ( ) : string[] | ||
getLemmaFromString ( string $line ) : |
||
getLemmas ( ) : |
||
getLexNames ( ) : string[] | ||
getPosFileMaps ( ) : array | ||
getSynsetByOffsetAndPos ( integer $synsetOffset, string $pos ) : |
Opens the raw data file and reads the synsets in | |
getSynsetFromString ( string $line ) : |
Parse the line from the synset file and turn it into a synset object |
public getExceptionFileNames ( ) : array | ||
Результат | array |
public getExceptionMapFromString ( string $line, string $pos ) : |
||
$line | string | |
$pos | string | |
Результат |
public getExceptionsMap ( ) : |
||
Результат |
public getFileNames ( ) : string[] | ||
Результат | string[] |
public getLemmaFromString ( string $line ) : |
||
$line | string | |
Результат |
public getLemmas ( ) : |
||
Результат | Returns an array of lemmas |
public getSynsetByOffsetAndPos ( integer $synsetOffset, string $pos ) : |
||
$synsetOffset | integer | |
$pos | string | Part of speech |
Результат |
public getSynsetFromString ( string $line ) : |
||
$line | string | |
Результат |
protected ExceptionMap[],TextAnalysis\Models\Wordnet $exceptionsMap | ||
Результат |
protected Lemma[],TextAnalysis\Models\Wordnet $lemmas | ||
Результат |
protected $posFileMaps |