Skip to content

artreven/thesaurus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thesaurus (SKOS compatible)

Defines a class for storing thesaurus and defining distances between different concepts. Currently Lin distances are defined. Meant to be used together with pp_api package.

Example of usage:

cpt_freqs = pp_api.get_cpt_corpus_freqs(corpus_id, server, pid, auth_data)

the = Thesaurus()
for cpt in cpt_freqs:
    cpt_uri = cpt['concept']['uri']
    cpt_freq = cpt['frequency']
    cpt_path = pp_api.get_cpt_path(cpt_uri, server, pid, auth_data)
    the.add_path(cpt_path)
    the.add_frequencies(cpt_uri, cpt_freq)

About

SKOS thesaurus on top of rdflib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages