Deep Learning Libraries for Dialog Systems and Chatbots
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
References
https://github.com/deepmipt/DeepPavlov
Calculate Hash of a Directory in Python
Comments¶
https://github.com/andhus/dirhash-python is prefered to https://github.com/cakepietoast/checksumdir .
Convert Between a Pandas.Series and a Dict-Like Object
Sort Python Imports Using isort
Configuration¶
There are 2 recommened ways to configure isort
.
The first recommended way is to place a file named .isort.cfg
at the root of your project.
For example,
[settings]
line_length=120
force_to_top=file1.py,file2.py
skip=file3.py,file4.py
known_future_library=future,pies
known_standard_library=std,std2
known_third_party=randomthirdparty
known_first_party=mylib1,mylib2
indent=' '
multi_line_output=3
length_sort=1
forced_separate=django.contrib,django.utils
default_section=FIRSTPARTY
no_lines_before=LOCALFOLDER
The second way is to add your desired settings under a [tool.isort] section in the pyproject.toml
Python Logging Made Stupidly Simple With Loguru
The best logging package for Python!
Note that the default logging level is
DEBUG
in loguru and it is not allowed to change the logging level of an created logger object in loguru. You can refer to changing-the-level-of-an-existing-handler and Change level of default handler on ways to changing logging level in loguru.- Remove the default logger (with logging level equals DEBUG) and add a new one with the desired logging level.