module data.wolf

Short summary

module actuariat_python.data.wolf

Various function to download data about population

source on GitHub

Functions

function

truncated documentation

enumerate_wolf_synonyms

enumerate list of synonyms Language is French.

enumerate_wolf_xml_row

walk through an XML file returned by function wolf_xml()

wolf_xml

The WOLF (Wordnet Libre du Français, Free French Wordnet) is a free …

Documentation

Various function to download data about population

source on GitHub

actuariat_python.data.wolf.enumerate_wolf_synonyms(filename, fLOG=<function noLOG>, encoding='utf-8', errors=None)[source]

enumerate list of synonyms Language is French.

Paramètres
  • filename – xml file

  • fLOG – logging function

  • encoding – encoding

  • errors – what to do with errors

Renvoie

iterator on list of words

source on GitHub

actuariat_python.data.wolf.enumerate_wolf_xml_row(filename, fLOG=<function noLOG>, xmlformat=False, encoding='utf-8', errors=None)[source]

walk through an XML file returned by function wolf_xml

Paramètres
  • filename – filename

  • fLOG – logging function

  • xmlformat – if True, return the xml, otherwise return the node, see XMLHandlerDictNode

  • encoding – encoding

  • errors – what to do with errors

Renvoie

elements

source on GitHub

actuariat_python.data.wolf.wolf_xml(url='http://pauillac.inria.fr/~sagot/index.html', temp_folder='.', fLOG=<function noLOG>)[source]

The WOLF (Wordnet Libre du Français, Free French Wordnet) is a free semantic lexical resource (wordnet) for French.

This data is licensed under Cecill-C license. Language is French.

Paramètres
  • url – url

  • fLOG – logging function

  • temp_folder – where to download

Renvoie

list of files

source on GitHub