From 2b459d401421f9e32b2e1bcccab24c041101669e Mon Sep 17 00:00:00 2001 From: lxz333 Date: Fri, 18 Oct 2024 12:34:05 +0800 Subject: [PATCH] Upload LICENSE --- LICENSE | 21 +++++++++++++++++++++ README.md | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f2fba7c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 [Your Name or Organization] + +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. diff --git a/README.md b/README.md index 2ec1f03..4625f30 100644 --- a/README.md +++ b/README.md @@ -272,9 +272,9 @@ visualize_attention( - `gamma`: Gamma value for the power normalization of the colormap. Default value is `1.5`. - `mode`: Visualization mode (`'question_context'`, `'self_attention'`, or `'translation'`). Default mode is `self_attention`. - `plot_titles`: List of custom titles for the subplots. The required number of titles depends on the mode: - - **_Question-Context Mode_**: List of 5 titles. - - **_Self-Attention Mode_**: List with 1 title. - - **_Translation Mode_**: List with 1 title. + - **Question-Context Mode**: List of 5 titles. + - **Self-Attention Mode**: List with 1 title. + - **Translation Mode**: List with 1 title. **Description:**