tutorial for deep learning dialogue models
halhorn, updated
🕥
2022-09-23 22:25:46
Deep Dialog Tutorial
会話モデルネタでいろいろ追加していくリポジトリ
Install
python は python3 を想定してます。
```zsh
git clone [email protected]:halhorn/deep_dialog_tutorial.git
cd deep_dialog_tutorial
pip install pipenv
pipenv install
起動
pipenv run jupyter lab
```
Transformer
コード
作って理解する Transformer / Attention
RNNLM
rnnlm.ipynb
RNN の言語モデル。
たくさんの文章集合から、それっぽい文章を生成するモデルです。
- 学習時:上から順に Train のセクションまで実行してください
- 生成時:Train 以外のそれより上と、 Restore, Generate を実行してください。
- Restore 時のモデルのパスは適宜変えてください。
Testing
```py3
./test/run
or
./test/run deepdialog/transformer/transformer.py
```
Issues
opened on 2022-09-23 22:25:46 by dependabot[bot]
Bumps protobuf from 3.6.1 to 3.18.3.
Release notes
Sourced from protobuf's releases.
Protocol Buffers v3.18.3
C++
Protocol Buffers v3.16.1
Java
- Improve performance characteristics of UnknownFieldSet parsing (#9371)
Protocol Buffers v3.18.2
Java
- Improve performance characteristics of UnknownFieldSet parsing (#9371)
Protocol Buffers v3.18.1
Python
- Update setup.py to reflect that we now require at least Python 3.5 (#8989)
- Performance fix for DynamicMessage: force GetRaw() to be inlined (#9023)
Ruby
- Update ruby_generator.cc to allow proto2 imports in proto3 (#9003)
Protocol Buffers v3.18.0
C++
- Fix warnings raised by clang 11 (#8664)
- Make StringPiece constructible from std::string_view (#8707)
- Add missing capability attributes for LLVM 12 (#8714)
- Stop using std::iterator (deprecated in C++17). (#8741)
- Move field_access_listener from libprotobuf-lite to libprotobuf (#8775)
- Fix #7047 Safely handle setlocale (#8735)
- Remove deprecated version of SetTotalBytesLimit() (#8794)
- Support arena allocation of google::protobuf::AnyMetadata (#8758)
- Fix undefined symbol error around SharedCtor() (#8827)
- Fix default value of enum(int) in json_util with proto2 (#8835)
- Better Smaller ByteSizeLong
- Introduce event filters for inject_field_listener_events
- Reduce memory usage of DescriptorPool
- For lazy fields copy serialized form when allowed.
- Re-introduce the InlinedStringField class
- v2 access listener
- Reduce padding in the proto's ExtensionRegistry map.
- GetExtension performance optimizations
- Make tracker a static variable rather than call static functions
- Support extensions in field access listener
- Annotate MergeFrom for field access listener
- Fix incomplete types for field access listener
- Add map_entry/new_map_entry to SpecificField in MessageDifferencer. They
record the map items which are different in MessageDifferencer's reporter.
- Reduce binary size due to fieldless proto messages
- TextFormat: ParseInfoTree supports getting field end location in addition to
start.
... (truncated)
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).
opened on 2022-07-29 22:53:35 by dependabot[bot]
Bumps mistune from 0.8.4 to 2.0.3.
Release notes
Sourced from mistune's releases.
Version 2.0.2
Fix escape_url
via lepture/mistune#295
Version 2.0.1
Fix XSS for image link syntax.
Version 2.0.0
First release of Mistune v2.
Version 2.0.0 RC1
In this release, we have a Security Fix for harmful links.
Version 2.0.0 Alpha 1
This is the first release of v2. An alpha version for users to have a preview of the new mistune.
Changelog
Sourced from mistune's changelog.
Changelog
Here is the full history of mistune v2.
Version 2.0.4
Released on Jul 15, 2022
- Fix
url
plugin in <a>
tag
- Fix
*
formatting
Version 2.0.3
Released on Jun 27, 2022
- Fix
table
plugin
- Security fix for CVE-2022-34749
Version 2.0.2
Released on Jan 14, 2022
Fix escape_url
Version 2.0.1
Released on Dec 30, 2021
XSS fix for image link syntax.
Version 2.0.0
Released on Dec 5, 2021
This is the first non-alpha release of mistune v2.
Version 2.0.0rc1
Released on Feb 16, 2021
Version 2.0.0a6
</tr></table>
... (truncated)
Commits
3f422f1
Version bump 2.0.3
a6d4321
Fix asteris emphasis regex CVE-2022-34749
5638e46
Merge pull request #307 from jieter/patch-1
0eba471
Fix typo in guide.rst
61e9337
Fix table plugin
76dec68
Add documentation for renderer heading when TOC enabled
799cd11
Version bump 2.0.2
babb0cf
Merge pull request #295 from dairiki/bug.escape_url
fc2cd53
Make mistune.util.escape_url less aggressive
3e8d352
Version bump 2.0.1
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).
opened on 2022-01-21 19:49:34 by dependabot[bot]
Bumps ipython from 7.2.0 to 7.16.3.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).
opened on 2021-08-23 20:56:20 by dependabot[bot]
Bumps notebook from 5.7.2 to 6.4.1.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).
opened on 2021-08-23 19:56:39 by dependabot[bot]
Bumps jupyterlab from 0.35.4 to 1.2.21.
Changelog
Sourced from jupyterlab's changelog.
JupyterLab Changelog
4.0
4.0.0a4
(Full Changelog)
Enhancements made
Bugs fixed
Maintenance and upkeep improvements
Documentation improvements
Contributors to this release
(GitHub contributors page for this release)
@3coins
| @afshin
| @blink1073
| @fcollonval
| @goanpeca
| @jasongrout
| @JohanMabille
| @jupyterlab-dev-mode
| @krassowski
| @richardkang112
| @vkaidalov-rft
4.0.0a3
(Full Changelog)
... (truncated)
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).
opened on 2021-03-29 18:40:51 by dependabot[bot]
Bumps pygments from 2.3.0 to 2.7.4.
Release notes
Sourced from pygments's releases.
2.7.4
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
2.7.3
-
Updated lexers:
-
Deprecated JsonBareObjectLexer, which is now identical to JsonLexer (#1600)
-
The ImgFormatter
now calculates the exact character width, which fixes some issues with overlapping text (#1213, #1611)
... (truncated)
Changelog
Sourced from pygments's changelog.
Version 2.7.4
(released January 12, 2021)
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
Version 2.7.3
(released December 6, 2020)
... (truncated)
Commits
4d555d0
Bump version to 2.7.4.
fc3b05d
Update CHANGES.
ad21935
Revert "Added dracula theme style (#1636)"
e411506
Prepare for 2.7.4 release.
275e34d
doc: remove Perl 6 ref
2e7e8c4
Fix several exponential/cubic complexity regexes found by Ben Caller/Doyensec
eb39c43
xquery: fix pop from empty stack
2738778
fix coding style in test_analyzer_lexer
02e0f09
Added 'ERROR STOP' to fortran.py keywords. (#1665)
c83fe48
support added for css variables (#1633)
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/halhorn/deep_dialog_tutorial/network/alerts).