From ad3f05fa18967690deaf39a8bd4ef8de44489d2a Mon Sep 17 00:00:00 2001 From: Yao Chi Date: Wed, 8 Jul 2020 10:47:43 +0800 Subject: [PATCH] copyright and blank lines added --- LanguageModeling/BERT/evaluate-v1.1.py | 21 +++++++++++++++++++++ LanguageModeling/BERT/npy2json.py | 21 +++++++++++++++++++++ LanguageModeling/BERT/run_squad_predict.py | 3 ++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/LanguageModeling/BERT/evaluate-v1.1.py b/LanguageModeling/BERT/evaluate-v1.1.py index 0137fbc..822c295 100644 --- a/LanguageModeling/BERT/evaluate-v1.1.py +++ b/LanguageModeling/BERT/evaluate-v1.1.py @@ -1,3 +1,24 @@ +# MIT License + +# Copyright (c) [2020] [OneFlow-Inc] + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. """ Official evaluation script for v1.1 of the SQuAD dataset. """ from __future__ import print_function from collections import Counter diff --git a/LanguageModeling/BERT/npy2json.py b/LanguageModeling/BERT/npy2json.py index d9b7695..594fb12 100644 --- a/LanguageModeling/BERT/npy2json.py +++ b/LanguageModeling/BERT/npy2json.py @@ -1,3 +1,24 @@ +# MIT License + +# Copyright (c) [2020] [OneFlow-Inc] + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # diff --git a/LanguageModeling/BERT/run_squad_predict.py b/LanguageModeling/BERT/run_squad_predict.py index a811aae..f088c8a 100755 --- a/LanguageModeling/BERT/run_squad_predict.py +++ b/LanguageModeling/BERT/run_squad_predict.py @@ -245,4 +245,5 @@ def main(): print(len(all_results), "all_resutls saved") if __name__ == "__main__": - main() \ No newline at end of file + main() + -- GitLab