- Notifications
You must be signed in to change notification settings - Fork 3.7k
4 new dialog problems #1642
4 new dialog problems #1642
Conversation
| Can I get an update on this PR, what is required on my part to be able to merge it? If there is no desire to add these problems to tensor2tensor, then let's close it, but I would like to get some feedback on what we should do with it because it just sits here since July. (@lukaszkaiser) |
| Hi @ricsinaruto -- We're still working on our end to merge in this PR. Why this is getting delayed:
Really appreciate your contribution and sorry for the late update! |
| Awesome, thanks for the clarification! Let me know if I can do anything 😄 |
| The only thing you can probably do, and would be a great help for me, is to run pylint with our pylintrc file https://github.com/tensorflow/tensor2tensor/blob/master/pylintrc on the newly added files and fix those and push it? The other thing I forgot to write (and I'm not sure applies here) is that for a brief bit of time we need to be both py2 and py3 compliant. |
| I think I fixed everything |
| Thanks, let me take a look soon, we're busy for ICLR deadline so maybe tied up a little. …On Tue, Sep 10, 2019, 7:05 AM Richard Csaky ***@***.***> wrote: I think I fixed everything — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1642?email_source=notifications&email_token=AAIUEFRKS2WXEADKOJDHKK3QI6ST3A5CNFSM4IGPYJD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LGVAY#issuecomment-529951363>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIUEFREP4YDEGZHVVPE7ULQI6ST3ANCNFSM4IGPYJDQ> . |
| Ok, giving this another shot, but can you resolve the conflicts with head? |
| One further request, can you format docstrings like so: Some notes:
Let me know if you can do this? Thanks again for the addition! |
| I'm surprised our pylintrc didn't report these -- are you sure it was picked up? |
| I'll resolve conflicts and reformat the docstrings as soon as possible. I ran the pylintrc that you linked, and it said everything was okay after the fixes that I committed, so no idea. |
Update with code from base repo
| Travis doesn't seem to fail due to my code, I'm not entirely sure. |
| Here is the list of errors I got from the earlier snapshot (so line numbers maybe messed up). (Ignore Travis) Lint errors found: Missing module docstring [missing-docstring] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:1-194 Importing a member of a module [g-importing-member] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:8 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:22 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:22 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:22 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:30 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:30 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:30 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:30 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:29 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:49 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:49 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:49 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:49 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:48 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:72 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:72 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:72 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:72 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:71 Use implicit True/False evaluation [g-explicit-bool-comparison] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:127 Invalid import order. Diff: from __future__ import absolute_import from __future__ import division from __future__ import print_function - import tensorflow as tf + from collections import Counter import os import tarfile import zipfile - from collections import Counter + from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry - from tensor2tensor.data_generators import dialog_abstract + import tensorflow as tf Copy and pastable ordering: from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import Counter import os import tarfile import zipfile from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry import tensorflow as tf [g-bad-import-order] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_personachat.py:5 Missing module docstring [missing-docstring] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:1-160 Importing a member of a module [g-importing-member] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:6 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:19 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:19 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:19 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:30 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:30 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:30 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:30 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:29 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:52 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:52 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:52 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:52 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:51 Invalid import order. Diff: from __future__ import absolute_import from __future__ import division from __future__ import print_function + from collections import Counter import os import re - from collections import Counter + from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry - from tensor2tensor.data_generators import dialog_abstract Copy and pastable ordering: from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import Counter import os import re from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry [g-bad-import-order] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_cornell.py:6 Need 1 blank line before def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:196 Need 1 blank line before def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:204 Need 1 blank line before def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:212 Need 1 blank line before def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:220 Need 1 blank line before def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:228 Missing module docstring [missing-docstring] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:1-230 Importing a member of a module [g-importing-member] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:7 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:20 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:20 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:20 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:36 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:36 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:36 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:36 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:35 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:56 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:56 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:56 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:56 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:55 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:77 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:77 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:77 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:77 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:76 Redefining built-in 'file' [redefined-builtin] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:92 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:176 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:176 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:176 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:176 Missing Returns section in docstring, or wrong choice of Returns/Yields [g-doc-return-or-yield] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:176 Args section is missing, does not match arg list or is badly indented. Expected: line Found: Missing: line Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:175 Invalid import order. Diff: from __future__ import absolute_import from __future__ import division from __future__ import print_function + from collections import Counter import os import re import zipfile - from collections import Counter + from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry - from tensor2tensor.data_generators import dialog_abstract Copy and pastable ordering: from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import Counter import os import re import zipfile from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry [g-bad-import-order] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_opensubtitles.py:7 Need 2 blank lines before top level def [g-wrong-blank-lines] //depot/google3/third_party/py/tensor2tensor/data_generators/all_problems.py:95 Unused import six [unused-import] //depot/google3/third_party/py/tensor2tensor/data_generators/all_problems.py:7 Missing module docstring [missing-docstring] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:1-384 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:24 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:24 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:137 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:137 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:137 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:137 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:136 Redefining built-in 'file' [redefined-builtin] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:197 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:190 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:190 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:190 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:190 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:189 Unused variable 'total_length' [unused-variable] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:198 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:210 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:210 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:210 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:210 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:209 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:297 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:297 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:297 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:297 Missing Yields section in docstring, or wrong choice of Returns/Yields [g-doc-return-or-yield] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:297 Args section is missing, does not match arg list or is badly indented. Expected: data_dir, tmp_dir, data_split Found: Missing: data_dir, tmp_dir, data_split Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:296 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:326 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:326 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:326 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:326 Args section is missing, does not match arg list or is badly indented. Expected: vocab Found: Missing: vocab Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:325 Redefining built-in 'file' [redefined-builtin] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:355 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:360 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:360 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:360 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:360 Missing Returns section in docstring, or wrong choice of Returns/Yields [g-doc-return-or-yield] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:360 Args section is missing, does not match arg list or is badly indented. Expected: line Found: Missing: line Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:359 Invalid import order. Diff: from __future__ import absolute_import from __future__ import division from __future__ import print_function + import os + import re + import tarfile + import zipfile + import requests + from tensor2tensor.data_generators import generator_utils + from tensor2tensor.data_generators import problem + from tensor2tensor.data_generators import text_encoder + from tensor2tensor.data_generators import text_problems + from tensor2tensor.data_generators.text_problems import VocabType + from tensor2tensor.layers import modalities + from tensor2tensor.utils import metrics import tensorflow as tf - import os - import requests - import tarfile - import re - import zipfile - from tensor2tensor.data_generators import problem - from tensor2tensor.data_generators import text_problems - from tensor2tensor.data_generators import text_encoder - from tensor2tensor.data_generators import generator_utils - from tensor2tensor.data_generators.text_problems import VocabType - from tensor2tensor.utils import metrics - from tensor2tensor.layers import modalities Copy and pastable ordering: from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import re import tarfile import zipfile import requests from tensor2tensor.data_generators import generator_utils from tensor2tensor.data_generators import problem from tensor2tensor.data_generators import text_encoder from tensor2tensor.data_generators import text_problems from tensor2tensor.data_generators.text_problems import VocabType from tensor2tensor.layers import modalities from tensor2tensor.utils import metrics import tensorflow as tf [g-bad-import-order] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_abstract.py:5 Missing module docstring [missing-docstring] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:1-126 Importing a member of a module [g-importing-member] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:5 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:18 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:18 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:18 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:18 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:26 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:26 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:26 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:26 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:25 Docstring should start with """ [g-docstring-quotes] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:46 There should not be a space before a one-line docstring summary [g-space-before-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:46 One-line docstring summary should end with ".", ".)", "?", or "!" [g-short-docstring-punctuation] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:46 One-line docstring summary should be followed by a blank line [g-no-space-after-docstring-summary] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:46 Args section is missing, does not match arg list or is badly indented. Expected: train_mode Found: Missing: train_mode Unexpected: [g-doc-args] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:45 Invalid import order. Diff: from __future__ import absolute_import from __future__ import division from __future__ import print_function + from collections import Counter import os - from collections import Counter + from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder - from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.utils import registry Copy and pastable ordering: from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import Counter import os from tensor2tensor.data_generators import dialog_abstract from tensor2tensor.data_generators import text_encoder from tensor2tensor.utils import registry [g-bad-import-order] //depot/google3/third_party/py/tensor2tensor/data_generators/dialog_dailydialog.py:5 Analyzed 6 file(s). 129 new error(s) and 0 non-actionable issue(s) found. …On Thu, Sep 12, 2019 at 10:21 AM Richard Csaky ***@***.***> wrote: Travis doesn't seem to fail due to my code, I'm not entirely sure. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1642?email_source=notifications&email_token=AAIUEFUOGKR2RGYCDNG46XDQJJ3BFA5CNFSM4IGPYJD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6ST2WY#issuecomment-530922843>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIUEFUAPUQWKP5SOCLLDZLQJJ3BFANCNFSM4IGPYJDQ> . -- We are here on earth to do good for others. What the others are here for, I don't know. Afroz Mohiuddin |
| Thanks! How can I get these though? |
| Can you try: ``` pylint -j 16 --rcfile=pylintrc <your file> ``` Note that internally the command is different but I'm assuming that should get you close. …On Thu, Sep 12, 2019 at 10:26 AM Richard Csaky ***@***.***> wrote: Thanks! How can I get these though? I ran the following command: pylint --rcfile=pylintrc — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1642?email_source=notifications&email_token=AAIUEFT2O44MV2OWMSBRUODQJJ3VPA5CNFSM4IGPYJD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SULNI#issuecomment-530924981>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIUEFRLD2KBI3OVIQT3K5TQJJ3VPANCNFSM4IGPYJDQ> . -- We are here on earth to do good for others. What the others are here for, I don't know. Afroz Mohiuddin |
| I tried to fix most of the things that you pasted above. |
| Thanks a ton Richard ! Let me give it another go. …On Fri, Sep 13, 2019 at 2:06 AM Richard Csaky ***@***.***> wrote: I tried to fix most of the things that you pasted above. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1642?email_source=notifications&email_token=AAIUEFTEHQYWHFW3CL4XESDQJNJZ3A5CNFSM4IGPYJD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UOF5Y#issuecomment-531161847>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIUEFSUL3U2Z2G6INPKRPLQJNJZ3ANCNFSM4IGPYJDQ> . -- We are here on earth to do good for others. What the others are here for, I don't know. Afroz Mohiuddin |
| Thanks a lot @ricsinaruto ! That really fixed almost everything, now running the tests internally and will merge in shortly -- many thanks for patiently working on fixing everything -- and a huge thanks for contributing the problems in the first place! |
| Awesome, I'm happy to contribute, and that they will finally make a part of tensor2tensor :) |
| Done! Thanks a lot for the work!! |
PiperOrigin-RevId: 268923712

For a while, I've been using tensor2tensor to do dialog modeling research, and I integrated some dialog problems in my own repo, but maybe others could also benefit from these if they were in the official tensor2tensor repo.
All problems are set up in a single-turn fashion without any additional inputs other than the utterances, so basically like a translate problem. I trained a transformer model on all problems and got decent results (see my repo for more details).
The PR contains 5 new files:
All problems have basic preprocessing before data generation (lowering, etc.).
At the end of each registered problem name, I put the size of the vocab (e.g. dialog_dailydialog16k).
These problems depend on the clint package to visualize data downloading progress, should this be added to the setup.py script? (as I didn't see it there)