Third-party notices
===================

fse 2.0 is licensed under the MIT License (see LICENSE).

FastText ngram hashing
----------------------

The hashing in src/fse/_native_src/text/_native_hash.pxi is adapted directly
from Dictionary::hash and Dictionary::computeSubwords in fastText's
src/dictionary.cc (https://github.com/facebookresearch/fastText).

MIT License

Copyright (c) 2016-present, Facebook, 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.

Unicode Character Database
--------------------------

src/fse/_unicode.py and src/fse/_native_src/tables/_native_unicode.h hold the simple lowercase
mapping of UnicodeData.txt, Unicode 15.1.0, generated by
tools/make_unicode_tables.py. src/fse/_unicode_bert.py and
src/fse/_native_src/tables/_native_unicode_bert.h hold data of UnicodeData.txt of Unicode 8.0.0,
9.0.0 and 17.0.0 and of SpecialCasing.txt and PropList.txt of Unicode 17.0.0
(Copyright © 1991-2025 Unicode, Inc.), generated by
tools/make_wordpiece_tables.py. src/fse/_unicode_graphemes.py holds data of
GraphemeBreakProperty.txt, emoji-data.txt, DerivedCoreProperties.txt and
PropList.txt of Unicode 17.0.0, generated by tools/make_grapheme_tables.py with
src/fse/_native_src/tables/_native_unicode_graphemes.h, the same for the native code, and
tests/test_data/GraphemeBreakTest-17.0.0.txt is that file of Unicode 17.0.0,
unchanged. The data is used under the Unicode License v3:

    UNICODE LICENSE V3

    COPYRIGHT AND PERMISSION NOTICE

    Copyright © 1991-2023 Unicode, Inc.

    NOTICE TO USER: Carefully read the following legal agreement. BY
    DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
    SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
    TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
    DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of data files and any associated documentation (the "Data Files") or
    software and any associated documentation (the "Software") to deal in the
    Data Files or Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, and/or sell
    copies of the Data Files or Software, and to permit persons to whom the
    Data Files or Software are furnished to do so, provided that either (a)
    this copyright and permission notice appear with all copies of the Data
    Files or Software, or (b) this copyright and permission notice appear in
    associated Documentation.

    THE DATA FILES AND SOFTWARE ARE 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 OF
    THIRD PARTY RIGHTS.

    IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
    BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
    OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
    FILES OR SOFTWARE.

    Except as contained in this notice, the name of a copyright holder shall
    not be used in advertising or otherwise to promote the sale, use or other
    dealings in these Data Files or Software without prior written
    authorization of the copyright holder.

Arrow C Data Interface
----------------------

The structs ArrowSchema, ArrowArray and ArrowArrayStream in
src/fse/_native_src/text/_native_arrow.h are copied from the Apache Arrow C Data Interface and
C Stream Interface specifications
(https://arrow.apache.org/docs/format/CDataInterface.html,
https://arrow.apache.org/docs/format/CStreamInterface.html), which ask consumers
to copy them. Apache Arrow is licensed under the Apache License 2.0,
Copyright 2016-2026 The Apache Software Foundation.
