diff --git a/.gitattributes b/.gitattributes
index d439d9aa68efcb541f86ab4d02fa77b42f24147d..1f4ea2088afa61725188abb4cbcc32b435be4e0f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -65,3 +65,9 @@ cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sente
cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so.0 filter=lfs diff=lfs merge=lfs -text
cc-multilingual-main/cc_net/bin/lmplz filter=lfs diff=lfs merge=lfs -text
cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.a filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0 filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so.0.0.0 filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.a filter=lfs diff=lfs merge=lfs -text
+cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train-static.dir/builder.cc.o filter=lfs diff=lfs merge=lfs -text
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/COPYING.3 b/cc-multilingual-main/cc_net/third_party/kenlm/COPYING.3
new file mode 100644
index 0000000000000000000000000000000000000000..94a9ed024d3859793618152ea559a168bbcbb5e2
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/COPYING.3
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/MANIFEST.in b/cc-multilingual-main/cc_net/third_party/kenlm/MANIFEST.in
new file mode 100644
index 0000000000000000000000000000000000000000..bec8496e9203f3e33b104b4dd21e0a889da430d2
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/MANIFEST.in
@@ -0,0 +1,9 @@
+# file GENERATED by distutils, do NOT edit
+include setup.py
+include lm/*.cc
+include lm/*.hh
+include python/*.cpp
+include util/*.cc
+include util/*.hh
+include util/double-conversion/*.cc
+include util/double-conversion/*.h
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/README.md b/cc-multilingual-main/cc_net/third_party/kenlm/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..8f1aa309904373b08bd53799db0bca93998a7703
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/README.md
@@ -0,0 +1,102 @@
+# kenlm
+
+Language model inference code by Kenneth Heafield (kenlm at kheafield.com)
+
+The website https://kheafield.com/code/kenlm/ has more documentation. If you're a decoder developer, please download the latest version from there instead of copying from another decoder.
+
+## Compiling
+Use cmake, see [BUILDING](BUILDING) for build dependencies and more detail.
+```bash
+mkdir -p build
+cd build
+cmake ..
+make -j 4
+```
+
+## Compiling with your own build system
+If you want to compile with your own build system (Makefile etc) or to use as a library, there are a number of macros you can set on the g++ command line or in util/have.hh .
+
+* `KENLM_MAX_ORDER` is the maximum order that can be loaded. This is done to make state an efficient POD rather than a vector.
+* `HAVE_ICU` If your code links against ICU, define this to disable the internal StringPiece and replace it with ICU's copy of StringPiece, avoiding naming conflicts.
+
+ARPA files can be read in compressed format with these options:
+* `HAVE_ZLIB` Supports gzip. Link with -lz.
+* `HAVE_BZLIB` Supports bzip2. Link with -lbz2.
+* `HAVE_XZLIB` Supports xz. Link with -llzma.
+
+Note that these macros impact only `read_compressed.cc` and `read_compressed_test.cc`. The bjam build system will auto-detect bzip2 and xz support.
+
+## Estimation
+lmplz estimates unpruned language models with modified Kneser-Ney smoothing. After compiling with bjam, run
+```bash
+bin/lmplz -o 5 text.arpa
+```
+The algorithm is on-disk, using an amount of memory that you specify. See https://kheafield.com/code/kenlm/estimation/ for more.
+
+MT Marathon 2012 team members Ivan Pouzyrevsky and Mohammed Mediani contributed to the computation design and early implementation. Jon Clark contributed to the design, clarified points about smoothing, and added logging.
+
+## Filtering
+
+filter takes an ARPA or count file and removes entries that will never be queried. The filter criterion can be corpus-level vocabulary, sentence-level vocabulary, or sentence-level phrases. Run
+```bash
+bin/filter
+```
+and see https://kheafield.com/code/kenlm/filter/ for more documentation.
+
+## Querying
+
+Two data structures are supported: probing and trie. Probing is a probing hash table with keys that are 64-bit hashes of n-grams and floats as values. Trie is a fairly standard trie but with bit-level packing so it uses the minimum number of bits to store word indices and pointers. The trie node entries are sorted by word index. Probing is the fastest and uses the most memory. Trie uses the least memory and is a bit slower.
+
+As is the custom in language modeling, all probabilities are log base 10.
+
+With trie, resident memory is 58% of IRST's smallest version and 21% of SRI's compact version. Simultaneously, trie CPU's use is 81% of IRST's fastest version and 84% of SRI's fast version. KenLM's probing hash table implementation goes even faster at the expense of using more memory. See https://kheafield.com/code/kenlm/benchmark/.
+
+Binary format via mmap is supported. Run `./build_binary` to make one then pass the binary file name to the appropriate Model constructor.
+
+## Platforms
+`murmur_hash.cc` and `bit_packing.hh` perform unaligned reads and writes that make the code architecture-dependent.
+It has been sucessfully tested on x86\_64, x86, and PPC64.
+ARM support is reportedly working, at least on the iphone.
+
+Runs on Linux, OS X, Cygwin, and MinGW.
+
+Hideo Okuma and Tomoyuki Yoshimura from NICT contributed ports to ARM and MinGW.
+
+## Decoder developers
+- I recommend copying the code and distributing it with your decoder. However, please send improvements upstream.
+
+- It's possible to compile the query-only code without Boost, but useful things like estimating models require Boost.
+
+- Select the macros you want, listed in the previous section.
+
+- There are two build systems: compile.sh and cmake. They're pretty simple and are intended to be reimplemented in your build system.
+
+- Use either the interface in `lm/model.hh` or `lm/virtual_interface.hh`. Interface documentation is in comments of `lm/virtual_interface.hh` and `lm/model.hh`.
+
+- There are several possible data structures in `model.hh`. Use `RecognizeBinary` in `binary_format.hh` to determine which one a user has provided. You probably already implement feature functions as an abstract virtual base class with several children. I suggest you co-opt this existing virtual dispatch by templatizing the language model feature implementation on the KenLM model identified by `RecognizeBinary`. This is the strategy used in Moses and cdec.
+
+- See `lm/config.hh` for run-time tuning options.
+
+## Contributors
+Contributions to KenLM are welcome. Please base your contributions on https://github.com/kpu/kenlm and send pull requests (or I might give you commit access). Downstream copies in Moses and cdec are maintained by overwriting them so do not make changes there.
+
+## Python module
+Contributed by Victor Chahuneau.
+
+### Installation
+
+```bash
+pip install https://github.com/kpu/kenlm/archive/master.zip
+```
+
+### Basic Usage
+```python
+import kenlm
+model = kenlm.Model('lm/test.arpa')
+print(model.score('this is a sentence .', bos = True, eos = True))
+```
+See [python/example.py](python/example.py) and [python/kenlm.pyx](python/kenlm.pyx) for more, including stateful APIs.
+
+---
+
+The name was Hieu Hoang's idea, not mine.
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeCache.txt b/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeCache.txt
new file mode 100644
index 0000000000000000000000000000000000000000..784038d716b72df82ae9c5ddaa1d1cb61ecec513
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeCache.txt
@@ -0,0 +1,511 @@
+# This is the CMakeCache file.
+# For build in directory: /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build
+# It was generated by CMake: /usr/bin/cmake
+# You can edit this file to change values found and used by cmake.
+# If you do not want to change any of the values, simply exit the editor.
+# If you do want to change a value, simply edit, save, and exit the editor.
+# The syntax for the file is as follows:
+# KEY:TYPE=VALUE
+# KEY is the name of a variable in the cache.
+# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
+# VALUE is the current value for the KEY.
+
+########################
+# EXTERNAL cache entries
+########################
+
+//Path to a file.
+BZIP2_INCLUDE_DIR:PATH=/usr/include
+
+//Path to a library.
+BZIP2_LIBRARY_DEBUG:FILEPATH=BZIP2_LIBRARY_DEBUG-NOTFOUND
+
+//Path to a library.
+BZIP2_LIBRARY_RELEASE:FILEPATH=/usr/lib/x86_64-linux-gnu/libbz2.so
+
+//The directory containing a CMake configuration file for Boost.
+Boost_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0
+
+//Path to a file.
+Boost_INCLUDE_DIR:PATH=/usr/include
+
+Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE:STRING=/usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.74.0
+
+Boost_SYSTEM_LIBRARY_RELEASE:STRING=/usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0
+
+Boost_THREAD_LIBRARY_RELEASE:STRING=/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.74.0
+
+Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE:STRING=/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.74.0
+
+//Path to a program.
+CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
+
+//Path to a program.
+CMAKE_AR:FILEPATH=/usr/bin/ar
+
+//Choose the type of build, options are: None Debug Release RelWithDebInfo
+// MinSizeRel ...
+CMAKE_BUILD_TYPE:STRING=
+
+//Enable/Disable color output during build.
+CMAKE_COLOR_MAKEFILE:BOOL=ON
+
+//CXX compiler
+CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
+
+//A wrapper around 'ar' adding the appropriate '--plugin' option
+// for the GCC compiler
+CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11
+
+//A wrapper around 'ranlib' adding the appropriate '--plugin' option
+// for the GCC compiler
+CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11
+
+//Flags used by the CXX compiler during all build types.
+CMAKE_CXX_FLAGS:STRING=
+
+//Flags used by the CXX compiler during DEBUG builds.
+CMAKE_CXX_FLAGS_DEBUG:STRING=-g
+
+//Flags used by the CXX compiler during MINSIZEREL builds.
+CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
+
+//Flags used by the CXX compiler during RELEASE builds.
+CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
+
+//Flags used by the CXX compiler during RELWITHDEBINFO builds.
+CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
+
+//C compiler
+CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
+
+//A wrapper around 'ar' adding the appropriate '--plugin' option
+// for the GCC compiler
+CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11
+
+//A wrapper around 'ranlib' adding the appropriate '--plugin' option
+// for the GCC compiler
+CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11
+
+//Flags used by the C compiler during all build types.
+CMAKE_C_FLAGS:STRING=
+
+//Flags used by the C compiler during DEBUG builds.
+CMAKE_C_FLAGS_DEBUG:STRING=-g
+
+//Flags used by the C compiler during MINSIZEREL builds.
+CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
+
+//Flags used by the C compiler during RELEASE builds.
+CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
+
+//Flags used by the C compiler during RELWITHDEBINFO builds.
+CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
+
+//Path to a program.
+CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
+
+//Flags used by the linker during all build types.
+CMAKE_EXE_LINKER_FLAGS:STRING=
+
+//Flags used by the linker during DEBUG builds.
+CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
+
+//Flags used by the linker during MINSIZEREL builds.
+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
+
+//Flags used by the linker during RELEASE builds.
+CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
+
+//Flags used by the linker during RELWITHDEBINFO builds.
+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
+
+//Enable/Disable output of compile commands during generation.
+CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
+
+//Install path prefix, prepended onto install directories.
+CMAKE_INSTALL_PREFIX:PATH=/usr/local
+
+//Path to a program.
+CMAKE_LINKER:FILEPATH=/usr/bin/ld
+
+//Path to a program.
+CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
+
+//Flags used by the linker during the creation of modules during
+// all build types.
+CMAKE_MODULE_LINKER_FLAGS:STRING=
+
+//Flags used by the linker during the creation of modules during
+// DEBUG builds.
+CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
+
+//Flags used by the linker during the creation of modules during
+// MINSIZEREL builds.
+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
+
+//Flags used by the linker during the creation of modules during
+// RELEASE builds.
+CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
+
+//Flags used by the linker during the creation of modules during
+// RELWITHDEBINFO builds.
+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
+
+//Path to a program.
+CMAKE_NM:FILEPATH=/usr/bin/nm
+
+//Path to a program.
+CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
+
+//Path to a program.
+CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
+
+//Value Computed by CMake
+CMAKE_PROJECT_DESCRIPTION:STATIC=
+
+//Value Computed by CMake
+CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
+
+//Value Computed by CMake
+CMAKE_PROJECT_NAME:STATIC=kenlm
+
+//Path to a program.
+CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
+
+//Path to a program.
+CMAKE_READELF:FILEPATH=/usr/bin/readelf
+
+//Flags used by the linker during the creation of shared libraries
+// during all build types.
+CMAKE_SHARED_LINKER_FLAGS:STRING=
+
+//Flags used by the linker during the creation of shared libraries
+// during DEBUG builds.
+CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
+
+//Flags used by the linker during the creation of shared libraries
+// during MINSIZEREL builds.
+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
+
+//Flags used by the linker during the creation of shared libraries
+// during RELEASE builds.
+CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
+
+//Flags used by the linker during the creation of shared libraries
+// during RELWITHDEBINFO builds.
+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
+
+//If set, runtime paths are not added when installing shared libraries,
+// but are added when building.
+CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
+
+//If set, runtime paths are not added when using shared libraries.
+CMAKE_SKIP_RPATH:BOOL=NO
+
+//Flags used by the linker during the creation of static libraries
+// during all build types.
+CMAKE_STATIC_LINKER_FLAGS:STRING=
+
+//Flags used by the linker during the creation of static libraries
+// during DEBUG builds.
+CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
+
+//Flags used by the linker during the creation of static libraries
+// during MINSIZEREL builds.
+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
+
+//Flags used by the linker during the creation of static libraries
+// during RELEASE builds.
+CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
+
+//Flags used by the linker during the creation of static libraries
+// during RELWITHDEBINFO builds.
+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
+
+//Path to a program.
+CMAKE_STRIP:FILEPATH=/usr/bin/strip
+
+//If this value is on, makefiles will be generated without the
+// .SILENT directive, and all commands will be echoed to the console
+// during the make. This is useful for debugging only. With Visual
+// Studio IDE projects all commands are done without /nologo.
+CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
+
+//Compile tests
+COMPILE_TESTS:BOOL=OFF
+
+//Build Python bindings
+ENABLE_PYTHON:BOOL=OFF
+
+//The directory containing a CMake configuration file for Eigen3.
+Eigen3_DIR:PATH=Eigen3_DIR-NOTFOUND
+
+//Build static executables
+FORCE_STATIC:BOOL=OFF
+
+//Maximum supported ngram order
+KENLM_MAX_ORDER:STRING=6
+
+//Path to a file.
+LIBLZMA_INCLUDE_DIR:PATH=/usr/include
+
+//Path to a library.
+LIBLZMA_LIBRARY_DEBUG:FILEPATH=LIBLZMA_LIBRARY_DEBUG-NOTFOUND
+
+//Path to a library.
+LIBLZMA_LIBRARY_RELEASE:FILEPATH=/usr/lib/x86_64-linux-gnu/liblzma.so
+
+//Path to a file.
+ZLIB_INCLUDE_DIR:PATH=/usr/include
+
+//Path to a library.
+ZLIB_LIBRARY_DEBUG:FILEPATH=ZLIB_LIBRARY_DEBUG-NOTFOUND
+
+//Path to a library.
+ZLIB_LIBRARY_RELEASE:FILEPATH=/usr/lib/x86_64-linux-gnu/libz.so
+
+//The directory containing a CMake configuration file for boost_atomic.
+boost_atomic_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_atomic-1.74.0
+
+//The directory containing a CMake configuration file for boost_headers.
+boost_headers_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_headers-1.74.0
+
+//The directory containing a CMake configuration file for boost_program_options.
+boost_program_options_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_program_options-1.74.0
+
+//The directory containing a CMake configuration file for boost_system.
+boost_system_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_system-1.74.0
+
+//The directory containing a CMake configuration file for boost_thread.
+boost_thread_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_thread-1.74.0
+
+//The directory containing a CMake configuration file for boost_unit_test_framework.
+boost_unit_test_framework_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/boost_unit_test_framework-1.74.0
+
+//Value Computed by CMake
+kenlm_BINARY_DIR:STATIC=/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build
+
+//Value Computed by CMake
+kenlm_IS_TOP_LEVEL:STATIC=ON
+
+//Dependencies for the target
+kenlm_LIB_DEPENDS:STATIC=general;kenlm_util;
+
+//Value Computed by CMake
+kenlm_SOURCE_DIR:STATIC=/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm
+
+//Dependencies for the target
+kenlm_builder_LIB_DEPENDS:STATIC=general;kenlm;general;kenlm_util;
+
+//Dependencies for the target
+kenlm_filter_LIB_DEPENDS:STATIC=general;kenlm_util;
+
+//Dependencies for the target
+kenlm_util_LIB_DEPENDS:STATIC=general;/usr/lib/x86_64-linux-gnu/libz.so;general;/usr/lib/x86_64-linux-gnu/libbz2.so;general;/usr/lib/x86_64-linux-gnu/liblzma.so;general;rt;
+
+
+########################
+# INTERNAL cache entries
+########################
+
+//ADVANCED property for variable: BZIP2_INCLUDE_DIR
+BZIP2_INCLUDE_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: BZIP2_LIBRARY_DEBUG
+BZIP2_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: BZIP2_LIBRARY_RELEASE
+BZIP2_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
+//Have symbol BZ2_bzCompressInit
+BZIP2_NEED_PREFIX:INTERNAL=1
+//ADVANCED property for variable: Boost_DIR
+Boost_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_ADDR2LINE
+CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_AR
+CMAKE_AR-ADVANCED:INTERNAL=1
+//This is the directory where this CMakeCache.txt was created
+CMAKE_CACHEFILE_DIR:INTERNAL=/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build
+//Major version of cmake used to create the current loaded cache
+CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
+//Minor version of cmake used to create the current loaded cache
+CMAKE_CACHE_MINOR_VERSION:INTERNAL=22
+//Patch version of cmake used to create the current loaded cache
+CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
+//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
+CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
+//Path to CMake executable.
+CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
+//Path to cpack program executable.
+CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
+//Path to ctest program executable.
+CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
+//ADVANCED property for variable: CMAKE_CXX_COMPILER
+CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
+CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
+CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_FLAGS
+CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
+CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
+CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
+CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
+CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_COMPILER
+CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_COMPILER_AR
+CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
+CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_FLAGS
+CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
+CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
+CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
+CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
+CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_DLLTOOL
+CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
+//Executable file format
+CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
+CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
+CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
+CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
+CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
+//Name of external makefile project generator.
+CMAKE_EXTRA_GENERATOR:INTERNAL=
+//Name of generator.
+CMAKE_GENERATOR:INTERNAL=Unix Makefiles
+//Generator instance identifier.
+CMAKE_GENERATOR_INSTANCE:INTERNAL=
+//Name of generator platform.
+CMAKE_GENERATOR_PLATFORM:INTERNAL=
+//Name of generator toolset.
+CMAKE_GENERATOR_TOOLSET:INTERNAL=
+//Test CMAKE_HAVE_LIBC_PTHREAD
+CMAKE_HAVE_LIBC_PTHREAD:INTERNAL=1
+//Have include pthread.h
+CMAKE_HAVE_PTHREAD_H:INTERNAL=1
+//Source directory with the top level CMakeLists.txt file for this
+// project
+CMAKE_HOME_DIRECTORY:INTERNAL=/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm
+//Install .so files without execute permission.
+CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
+//ADVANCED property for variable: CMAKE_LINKER
+CMAKE_LINKER-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
+CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
+CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
+CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
+CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_NM
+CMAKE_NM-ADVANCED:INTERNAL=1
+//number of local generators
+CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=9
+//ADVANCED property for variable: CMAKE_OBJCOPY
+CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_OBJDUMP
+CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
+//Platform information initialized
+CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_RANLIB
+CMAKE_RANLIB-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_READELF
+CMAKE_READELF-ADVANCED:INTERNAL=1
+//Path to CMake installation.
+CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22
+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
+CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
+CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
+CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
+CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_SKIP_RPATH
+CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
+CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
+CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
+CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: CMAKE_STRIP
+CMAKE_STRIP-ADVANCED:INTERNAL=1
+//uname command
+CMAKE_UNAME:INTERNAL=/usr/bin/uname
+//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
+CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
+//Details about finding BZip2
+FIND_PACKAGE_MESSAGE_DETAILS_BZip2:INTERNAL=[/usr/lib/x86_64-linux-gnu/libbz2.so][/usr/include][v1.0.8()]
+//Details about finding Boost
+FIND_PACKAGE_MESSAGE_DETAILS_Boost:INTERNAL=[/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake][cfound components: program_options system thread unit_test_framework ][v1.74.0(1.41.0)]
+//Details about finding LibLZMA
+FIND_PACKAGE_MESSAGE_DETAILS_LibLZMA:INTERNAL=[/usr/lib/x86_64-linux-gnu/liblzma.so][/usr/include][1][1][1][v5.2.5()]
+//Details about finding Threads
+FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
+//Details about finding ZLIB
+FIND_PACKAGE_MESSAGE_DETAILS_ZLIB:INTERNAL=[/usr/lib/x86_64-linux-gnu/libz.so][/usr/include][v1.2.11()]
+//Have library rt
+HAVE_CLOCKGETTIME_RT:INTERNAL=1
+//Have library /usr/lib/x86_64-linux-gnu/liblzma.so
+LIBLZMA_HAS_AUTO_DECODER:INTERNAL=1
+//Have library /usr/lib/x86_64-linux-gnu/liblzma.so
+LIBLZMA_HAS_EASY_ENCODER:INTERNAL=1
+//Have library /usr/lib/x86_64-linux-gnu/liblzma.so
+LIBLZMA_HAS_LZMA_PRESET:INTERNAL=1
+//ADVANCED property for variable: LIBLZMA_INCLUDE_DIR
+LIBLZMA_INCLUDE_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: LIBLZMA_LIBRARY_DEBUG
+LIBLZMA_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: LIBLZMA_LIBRARY_RELEASE
+LIBLZMA_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: ZLIB_INCLUDE_DIR
+ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: ZLIB_LIBRARY_DEBUG
+ZLIB_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: ZLIB_LIBRARY_RELEASE
+ZLIB_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_atomic_DIR
+boost_atomic_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_headers_DIR
+boost_headers_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_program_options_DIR
+boost_program_options_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_system_DIR
+boost_system_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_thread_DIR
+boost_thread_DIR-ADVANCED:INTERNAL=1
+//ADVANCED property for variable: boost_unit_test_framework_DIR
+boost_unit_test_framework_DIR-ADVANCED:INTERNAL=1
+
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/build/Makefile b/cc-multilingual-main/cc_net/third_party/kenlm/build/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..67d49b7e0f204e45bd2eec5ae19b0cc74753bc89
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/build/Makefile
@@ -0,0 +1,371 @@
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 3.22
+
+# Default target executed when no arguments are given to make.
+default_target: all
+.PHONY : default_target
+
+# Allow only one "make -f Makefile2" at a time, but pass parallelism.
+.NOTPARALLEL:
+
+#=============================================================================
+# Special targets provided by cmake.
+
+# Disable implicit rules so canonical targets will work.
+.SUFFIXES:
+
+# Disable VCS-based implicit rules.
+% : %,v
+
+# Disable VCS-based implicit rules.
+% : RCS/%
+
+# Disable VCS-based implicit rules.
+% : RCS/%,v
+
+# Disable VCS-based implicit rules.
+% : SCCS/s.%
+
+# Disable VCS-based implicit rules.
+% : s.%
+
+.SUFFIXES: .hpux_make_needs_suffix_list
+
+# Command-line flag to silence nested $(MAKE).
+$(VERBOSE)MAKESILENT = -s
+
+#Suppress display of executed commands.
+$(VERBOSE).SILENT:
+
+# A target that is always out of date.
+cmake_force:
+.PHONY : cmake_force
+
+#=============================================================================
+# Set environment variables for the build.
+
+# The shell in which to execute make rules.
+SHELL = /bin/sh
+
+# The CMake executable.
+CMAKE_COMMAND = /usr/bin/cmake
+
+# The command to remove a file.
+RM = /usr/bin/cmake -E rm -f
+
+# Escaping for special characters.
+EQUALS = =
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target edit_cache
+edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
+ /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+.PHONY : edit_cache/fast
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+ /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+.PHONY : rebuild_cache/fast
+
+# Special rule for the target list_install_components
+list_install_components:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\" \"headers\""
+.PHONY : list_install_components
+
+# Special rule for the target list_install_components
+list_install_components/fast: list_install_components
+.PHONY : list_install_components/fast
+
+# Special rule for the target install
+install: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install
+
+# Special rule for the target install
+install/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install/fast
+
+# Special rule for the target install/local
+install/local: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local
+
+# Special rule for the target install/local
+install/local/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local/fast
+
+# Special rule for the target install/strip
+install/strip: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip
+
+# Special rule for the target install/strip
+install/strip/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip/fast
+
+# The main all target
+all: cmake_check_build_system
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeFiles /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build//CMakeFiles/progress.marks
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
+clean:
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
+.PHONY : clean
+
+# The main clean target
+clean/fast: clean
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+ $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+#=============================================================================
+# Target rules for targets named kenlm_util
+
+# Build rule for target.
+kenlm_util: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 kenlm_util
+.PHONY : kenlm_util
+
+# fast build rule for target.
+kenlm_util/fast:
+ $(MAKE) $(MAKESILENT) -f util/CMakeFiles/kenlm_util.dir/build.make util/CMakeFiles/kenlm_util.dir/build
+.PHONY : kenlm_util/fast
+
+#=============================================================================
+# Target rules for targets named probing_hash_table_benchmark
+
+# Build rule for target.
+probing_hash_table_benchmark: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 probing_hash_table_benchmark
+.PHONY : probing_hash_table_benchmark
+
+# fast build rule for target.
+probing_hash_table_benchmark/fast:
+ $(MAKE) $(MAKESILENT) -f util/CMakeFiles/probing_hash_table_benchmark.dir/build.make util/CMakeFiles/probing_hash_table_benchmark.dir/build
+.PHONY : probing_hash_table_benchmark/fast
+
+#=============================================================================
+# Target rules for targets named kenlm
+
+# Build rule for target.
+kenlm: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 kenlm
+.PHONY : kenlm
+
+# fast build rule for target.
+kenlm/fast:
+ $(MAKE) $(MAKESILENT) -f lm/CMakeFiles/kenlm.dir/build.make lm/CMakeFiles/kenlm.dir/build
+.PHONY : kenlm/fast
+
+#=============================================================================
+# Target rules for targets named query
+
+# Build rule for target.
+query: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 query
+.PHONY : query
+
+# fast build rule for target.
+query/fast:
+ $(MAKE) $(MAKESILENT) -f lm/CMakeFiles/query.dir/build.make lm/CMakeFiles/query.dir/build
+.PHONY : query/fast
+
+#=============================================================================
+# Target rules for targets named fragment
+
+# Build rule for target.
+fragment: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 fragment
+.PHONY : fragment
+
+# fast build rule for target.
+fragment/fast:
+ $(MAKE) $(MAKESILENT) -f lm/CMakeFiles/fragment.dir/build.make lm/CMakeFiles/fragment.dir/build
+.PHONY : fragment/fast
+
+#=============================================================================
+# Target rules for targets named build_binary
+
+# Build rule for target.
+build_binary: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 build_binary
+.PHONY : build_binary
+
+# fast build rule for target.
+build_binary/fast:
+ $(MAKE) $(MAKESILENT) -f lm/CMakeFiles/build_binary.dir/build.make lm/CMakeFiles/build_binary.dir/build
+.PHONY : build_binary/fast
+
+#=============================================================================
+# Target rules for targets named kenlm_benchmark
+
+# Build rule for target.
+kenlm_benchmark: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 kenlm_benchmark
+.PHONY : kenlm_benchmark
+
+# fast build rule for target.
+kenlm_benchmark/fast:
+ $(MAKE) $(MAKESILENT) -f lm/CMakeFiles/kenlm_benchmark.dir/build.make lm/CMakeFiles/kenlm_benchmark.dir/build
+.PHONY : kenlm_benchmark/fast
+
+#=============================================================================
+# Target rules for targets named kenlm_builder
+
+# Build rule for target.
+kenlm_builder: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 kenlm_builder
+.PHONY : kenlm_builder
+
+# fast build rule for target.
+kenlm_builder/fast:
+ $(MAKE) $(MAKESILENT) -f lm/builder/CMakeFiles/kenlm_builder.dir/build.make lm/builder/CMakeFiles/kenlm_builder.dir/build
+.PHONY : kenlm_builder/fast
+
+#=============================================================================
+# Target rules for targets named lmplz
+
+# Build rule for target.
+lmplz: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lmplz
+.PHONY : lmplz
+
+# fast build rule for target.
+lmplz/fast:
+ $(MAKE) $(MAKESILENT) -f lm/builder/CMakeFiles/lmplz.dir/build.make lm/builder/CMakeFiles/lmplz.dir/build
+.PHONY : lmplz/fast
+
+#=============================================================================
+# Target rules for targets named count_ngrams
+
+# Build rule for target.
+count_ngrams: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 count_ngrams
+.PHONY : count_ngrams
+
+# fast build rule for target.
+count_ngrams/fast:
+ $(MAKE) $(MAKESILENT) -f lm/builder/CMakeFiles/count_ngrams.dir/build.make lm/builder/CMakeFiles/count_ngrams.dir/build
+.PHONY : count_ngrams/fast
+
+#=============================================================================
+# Target rules for targets named kenlm_filter
+
+# Build rule for target.
+kenlm_filter: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 kenlm_filter
+.PHONY : kenlm_filter
+
+# fast build rule for target.
+kenlm_filter/fast:
+ $(MAKE) $(MAKESILENT) -f lm/filter/CMakeFiles/kenlm_filter.dir/build.make lm/filter/CMakeFiles/kenlm_filter.dir/build
+.PHONY : kenlm_filter/fast
+
+#=============================================================================
+# Target rules for targets named filter
+
+# Build rule for target.
+filter: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 filter
+.PHONY : filter
+
+# fast build rule for target.
+filter/fast:
+ $(MAKE) $(MAKESILENT) -f lm/filter/CMakeFiles/filter.dir/build.make lm/filter/CMakeFiles/filter.dir/build
+.PHONY : filter/fast
+
+#=============================================================================
+# Target rules for targets named phrase_table_vocab
+
+# Build rule for target.
+phrase_table_vocab: cmake_check_build_system
+ $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 phrase_table_vocab
+.PHONY : phrase_table_vocab
+
+# fast build rule for target.
+phrase_table_vocab/fast:
+ $(MAKE) $(MAKESILENT) -f lm/filter/CMakeFiles/phrase_table_vocab.dir/build.make lm/filter/CMakeFiles/phrase_table_vocab.dir/build
+.PHONY : phrase_table_vocab/fast
+
+# Help Target
+help:
+ @echo "The following are some of the valid targets for this Makefile:"
+ @echo "... all (the default if no target is provided)"
+ @echo "... clean"
+ @echo "... depend"
+ @echo "... edit_cache"
+ @echo "... install"
+ @echo "... install/local"
+ @echo "... install/strip"
+ @echo "... list_install_components"
+ @echo "... rebuild_cache"
+ @echo "... build_binary"
+ @echo "... count_ngrams"
+ @echo "... filter"
+ @echo "... fragment"
+ @echo "... kenlm"
+ @echo "... kenlm_benchmark"
+ @echo "... kenlm_builder"
+ @echo "... kenlm_filter"
+ @echo "... kenlm_util"
+ @echo "... lmplz"
+ @echo "... phrase_table_vocab"
+ @echo "... probing_hash_table_benchmark"
+ @echo "... query"
+.PHONY : help
+
+
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+ $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
+
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/build/cmake_install.cmake b/cc-multilingual-main/cc_net/third_party/kenlm/build/cmake_install.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..fb478b0c4b68796bd52fa8c622ce427f1d13fb22
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/build/cmake_install.cmake
@@ -0,0 +1,248 @@
+# Install script for directory: /home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm
+
+# Set the install prefix
+if(NOT DEFINED CMAKE_INSTALL_PREFIX)
+ set(CMAKE_INSTALL_PREFIX "/usr/local")
+endif()
+string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
+
+# Set the install configuration name.
+if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
+ if(BUILD_TYPE)
+ string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
+ CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
+ else()
+ set(CMAKE_INSTALL_CONFIG_NAME "Release")
+ endif()
+ message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
+endif()
+
+# Set the component getting installed.
+if(NOT CMAKE_INSTALL_COMPONENT)
+ if(COMPONENT)
+ message(STATUS "Install component: \"${COMPONENT}\"")
+ set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
+ else()
+ set(CMAKE_INSTALL_COMPONENT)
+ endif()
+endif()
+
+# Install shared libraries without execute permission?
+if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
+ set(CMAKE_INSTALL_SO_NO_EXE "1")
+endif()
+
+# Is this installation the result of a crosscompile?
+if(NOT DEFINED CMAKE_CROSSCOMPILING)
+ set(CMAKE_CROSSCOMPILING "FALSE")
+endif()
+
+# Set default install directory permissions.
+if(NOT DEFINED CMAKE_OBJDUMP)
+ set(CMAKE_OBJDUMP "/usr/bin/objdump")
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
+ if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake/kenlmTargets.cmake")
+ file(DIFFERENT EXPORT_FILE_CHANGED FILES
+ "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake/kenlmTargets.cmake"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeFiles/Export/share/kenlm/cmake/kenlmTargets.cmake")
+ if(EXPORT_FILE_CHANGED)
+ file(GLOB OLD_CONFIG_FILES "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake/kenlmTargets-*.cmake")
+ if(OLD_CONFIG_FILES)
+ message(STATUS "Old export file \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake/kenlmTargets.cmake\" will be replaced. Removing files [${OLD_CONFIG_FILES}].")
+ file(REMOVE ${OLD_CONFIG_FILES})
+ endif()
+ endif()
+ endif()
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake" TYPE FILE FILES "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeFiles/Export/share/kenlm/cmake/kenlmTargets.cmake")
+ if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake" TYPE FILE FILES "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/CMakeFiles/Export/share/kenlm/cmake/kenlmTargets-release.cmake")
+ endif()
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/util" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/bit_packing.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/ersatz_progress.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/exception.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/fake_ostream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/file.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/file_piece.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/file_stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/fixed_array.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/float_to_string.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/getopt.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/have.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/integer_to_string.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/joint_sort.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/mmap.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/multi_intersection.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/murmur_hash.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/parallel_read.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/pcqueue.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/pool.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/probing_hash_table.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/proxy_iterator.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/read_compressed.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/scoped.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/sized_iterator.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/sorted_uniform.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/spaces.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/string_piece.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/string_piece_hash.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/string_stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/thread_pool.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/tokenize_piece.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/usage.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/util/double-conversion" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/bignum-dtoa.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/bignum.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/cached-powers.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/diy-fp.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/double-conversion.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/fast-dtoa.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/fixed-dtoa.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/ieee.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/strtod.h"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/double-conversion/utils.h"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/util/stream" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/block.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/chain.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/config.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/count_records.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/io.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/line_input.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/multi_progress.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/multi_stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/rewindable_stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/sort.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/util/stream/typed_stream.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/lm" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/bhiksha.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/binary_format.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/blank.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/config.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/enumerate_vocab.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/facade.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/left.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/lm_exception.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/max_order.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/model.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/model_type.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/ngram_query.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/partial.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/quantize.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/read_arpa.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/return.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/search_hashed.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/search_trie.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/sizes.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/state.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/trie.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/trie_sort.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/value.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/value_build.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/virtual_interface.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/vocab.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/weights.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/word_index.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/lm/builder" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/adjust_counts.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/combine_counts.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/corpus_count.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/debug_print.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/discount.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/hash_gamma.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/header_info.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/initial_probabilities.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/interpolate.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/output.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/payload.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/builder/pipeline.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/lm/common" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/compare.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/joint_order.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/model_buffer.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/ngram.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/ngram_stream.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/print.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/renumber.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/size_option.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/common/special.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/lm/filter" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/arpa_io.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/count_io.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/format.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/phrase.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/thread.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/vocab.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/filter/wrapper.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xheadersx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/kenlm/lm/interpolate" TYPE FILE FILES
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/backoff_matrix.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/backoff_reunification.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/bounded_sequence_encoding.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/interpolate_info.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/merge_probabilities.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/merge_vocab.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/normalize.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/pipeline.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/split_worker.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/tune_derivatives.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/tune_instances.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/tune_matrix.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/tune_weights.hh"
+ "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/lm/interpolate/universal_vocab.hh"
+ )
+endif()
+
+if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/kenlm/cmake" TYPE FILE FILES "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/kenlmConfig.cmake")
+endif()
+
+if(NOT CMAKE_INSTALL_LOCAL_ONLY)
+ # Include the install script for each subdirectory.
+ include("/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/util/cmake_install.cmake")
+ include("/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/lm/cmake_install.cmake")
+
+endif()
+
+if(CMAKE_INSTALL_COMPONENT)
+ set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
+else()
+ set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
+endif()
+
+string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
+ "${CMAKE_INSTALL_MANIFEST_FILES}")
+file(WRITE "/home/sdp/Common_crawl/cc-multilingual-main/cc-multilingual-main/cc_net/third_party/kenlm/build/${CMAKE_INSTALL_MANIFEST}"
+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/build/kenlmConfig.cmake b/cc-multilingual-main/cc_net/third_party/kenlm/build/kenlmConfig.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..1bb7ab5bf646c1e4042f0f75f549f16d0f7dac33
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/build/kenlmConfig.cmake
@@ -0,0 +1,26 @@
+
+####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
+####### Any changes to this file will be overwritten by the next CMake run ####
+####### The input file was kenlmConfig.cmake.in ########
+
+get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
+
+####################################################################################
+
+include(CMakeFindDependencyMacro)
+
+find_dependency(Boost)
+find_dependency(Threads)
+
+# Compression libs
+if ()
+ find_dependency(ZLIB)
+endif()
+if ()
+ find_dependency(BZip2)
+endif()
+if ()
+ find_dependency(LibLZMA)
+endif()
+
+include("${CMAKE_CURRENT_LIST_DIR}/kenlmTargets.cmake")
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/cmake/KenLMFunctions.cmake b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/KenLMFunctions.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..c9ba4463d7665a543c0072a5cd87917a56b0999e
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/KenLMFunctions.cmake
@@ -0,0 +1,81 @@
+# Helper functions used across the CMake build system
+
+include(CMakeParseArguments)
+
+# Adds a bunch of executables to the build, each depending on the specified
+# dependent object files and linking against the specified libraries
+function(AddExes)
+ set(multiValueArgs EXES DEPENDS LIBRARIES)
+ cmake_parse_arguments(AddExes "" "" "${multiValueArgs}" ${ARGN})
+
+ # Iterate through the executable list
+ foreach(exe ${AddExes_EXES})
+
+ # Compile the executable, linking against the requisite dependent object files
+ add_executable(${exe} ${exe}_main.cc ${AddExes_DEPENDS})
+
+ # Link the executable against the supplied libraries
+ target_link_libraries(${exe} ${AddExes_LIBRARIES})
+
+ # Group executables together
+ set_target_properties(${exe} PROPERTIES FOLDER executables)
+
+ # End for loop
+ endforeach(exe)
+
+ # Install the executable files
+ install(TARGETS ${AddExes_EXES} DESTINATION bin)
+endfunction()
+
+# Adds a single test to the build, depending on the specified dependent
+# object files, linking against the specified libraries, and with the
+# specified command line arguments
+function(KenLMAddTest)
+ cmake_parse_arguments(KenLMAddTest "" "TEST"
+ "DEPENDS;LIBRARIES;TEST_ARGS" ${ARGN})
+
+ # Compile the executable, linking against the requisite dependent object files
+ add_executable(${KenLMAddTest_TEST}
+ ${KenLMAddTest_TEST}.cc
+ ${KenLMAddTest_DEPENDS})
+
+ if (Boost_USE_STATIC_LIBS)
+ set(DYNLINK_FLAGS)
+ else()
+ set(DYNLINK_FLAGS COMPILE_FLAGS -DBOOST_TEST_DYN_LINK)
+ endif()
+
+ # Require the following compile flag
+ set_target_properties(${KenLMAddTest_TEST} PROPERTIES
+ ${DYNLINK_FLAGS}
+ RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
+
+ target_link_libraries(${KenLMAddTest_TEST} ${KenLMAddTest_LIBRARIES} ${TIMER_LINK})
+
+ set(test_params "")
+ if(KenLMAddTest_TEST_ARGS)
+ set(test_params ${KenLMAddTest_TEST_ARGS})
+ endif()
+
+ # Specify command arguments for how to run each unit test
+ add_test(NAME ${KenLMAddTest_TEST}
+ COMMAND ${KenLMAddTest_TEST} ${test_params})
+
+ # Group unit tests together
+ set_target_properties(${KenLMAddTest_TEST} PROPERTIES FOLDER "unit_tests")
+endfunction()
+
+# Adds a bunch of tests to the build, each depending on the specified
+# dependent object files and linking against the specified libraries
+function(AddTests)
+ set(multiValueArgs TESTS DEPENDS LIBRARIES TEST_ARGS)
+ cmake_parse_arguments(AddTests "" "" "${multiValueArgs}" ${ARGN})
+
+ # Iterate through the Boost tests list
+ foreach(test ${AddTests_TESTS})
+ KenLMAddTest(TEST ${test}
+ DEPENDS ${AddTests_DEPENDS}
+ LIBRARIES ${AddTests_LIBRARIES}
+ TEST_ARGS ${AddTests_TEST_ARGS})
+ endforeach(test)
+endfunction()
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/cmake/kenlmConfig.cmake.in b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/kenlmConfig.cmake.in
new file mode 100644
index 0000000000000000000000000000000000000000..0fbf0c64f1c837d41de41b405cdc78ced02aadf7
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/kenlmConfig.cmake.in
@@ -0,0 +1,19 @@
+@PACKAGE_INIT@
+
+include(CMakeFindDependencyMacro)
+
+find_dependency(Boost)
+find_dependency(Threads)
+
+# Compression libs
+if (@ZLIB_FOUND@)
+ find_dependency(ZLIB)
+endif()
+if (@BZIP2_FOUND@)
+ find_dependency(BZip2)
+endif()
+if (@LIBLZMA_FOUND@)
+ find_dependency(LibLZMA)
+endif()
+
+include("${CMAKE_CURRENT_LIST_DIR}/kenlmTargets.cmake")
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/cmake/modules/FindEigen3.cmake b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/modules/FindEigen3.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..cea1afeabcbfafc37886fc647f13e73a10466c44
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/cmake/modules/FindEigen3.cmake
@@ -0,0 +1,90 @@
+# - Try to find Eigen3 lib
+#
+# This module supports requiring a minimum version, e.g. you can do
+# find_package(Eigen3 3.1.2)
+# to require version 3.1.2 or newer of Eigen3.
+#
+# Once done this will define
+#
+# EIGEN3_FOUND - system has eigen lib with correct version
+# EIGEN3_INCLUDE_DIR - the eigen include directory
+# EIGEN3_VERSION - eigen version
+#
+# This module reads hints about search locations from
+# the following enviroment variables:
+#
+# EIGEN3_ROOT
+# EIGEN3_ROOT_DIR
+
+# Copyright (c) 2006, 2007 Montel Laurent,
+# Copyright (c) 2008, 2009 Gael Guennebaud,
+# Copyright (c) 2009 Benoit Jacob
+# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
+
+if(NOT Eigen3_FIND_VERSION)
+ if(NOT Eigen3_FIND_VERSION_MAJOR)
+ set(Eigen3_FIND_VERSION_MAJOR 2)
+ endif(NOT Eigen3_FIND_VERSION_MAJOR)
+ if(NOT Eigen3_FIND_VERSION_MINOR)
+ set(Eigen3_FIND_VERSION_MINOR 91)
+ endif(NOT Eigen3_FIND_VERSION_MINOR)
+ if(NOT Eigen3_FIND_VERSION_PATCH)
+ set(Eigen3_FIND_VERSION_PATCH 0)
+ endif(NOT Eigen3_FIND_VERSION_PATCH)
+
+ set(Eigen3_FIND_VERSION "${Eigen3_FIND_VERSION_MAJOR}.${Eigen3_FIND_VERSION_MINOR}.${Eigen3_FIND_VERSION_PATCH}")
+endif(NOT Eigen3_FIND_VERSION)
+
+macro(_eigen3_check_version)
+ file(READ "${EIGEN3_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h" _eigen3_version_header)
+
+ string(REGEX MATCH "define[ \t]+EIGEN_WORLD_VERSION[ \t]+([0-9]+)" _eigen3_world_version_match "${_eigen3_version_header}")
+ set(EIGEN3_WORLD_VERSION "${CMAKE_MATCH_1}")
+ string(REGEX MATCH "define[ \t]+EIGEN_MAJOR_VERSION[ \t]+([0-9]+)" _eigen3_major_version_match "${_eigen3_version_header}")
+ set(EIGEN3_MAJOR_VERSION "${CMAKE_MATCH_1}")
+ string(REGEX MATCH "define[ \t]+EIGEN_MINOR_VERSION[ \t]+([0-9]+)" _eigen3_minor_version_match "${_eigen3_version_header}")
+ set(EIGEN3_MINOR_VERSION "${CMAKE_MATCH_1}")
+
+ set(EIGEN3_VERSION ${EIGEN3_WORLD_VERSION}.${EIGEN3_MAJOR_VERSION}.${EIGEN3_MINOR_VERSION})
+ if(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION})
+ set(EIGEN3_VERSION_OK FALSE)
+ else(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION})
+ set(EIGEN3_VERSION_OK TRUE)
+ endif(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION})
+
+ if(NOT EIGEN3_VERSION_OK)
+
+ message(STATUS "Eigen3 version ${EIGEN3_VERSION} found in ${EIGEN3_INCLUDE_DIR}, "
+ "but at least version ${Eigen3_FIND_VERSION} is required")
+ endif(NOT EIGEN3_VERSION_OK)
+endmacro(_eigen3_check_version)
+
+if (EIGEN3_INCLUDE_DIR)
+
+ # in cache already
+ _eigen3_check_version()
+ set(EIGEN3_FOUND ${EIGEN3_VERSION_OK})
+
+else (EIGEN3_INCLUDE_DIR)
+
+ find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
+ HINTS
+ ENV EIGEN3_ROOT
+ ENV EIGEN3_ROOT_DIR
+ PATHS
+ ${CMAKE_INSTALL_PREFIX}/include
+ ${KDE4_INCLUDE_DIR}
+ PATH_SUFFIXES eigen3 eigen
+ )
+
+ if(EIGEN3_INCLUDE_DIR)
+ _eigen3_check_version()
+ endif(EIGEN3_INCLUDE_DIR)
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(Eigen3 DEFAULT_MSG EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK)
+
+ mark_as_advanced(EIGEN3_INCLUDE_DIR)
+
+endif(EIGEN3_INCLUDE_DIR)
+
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/compile_query_only.sh b/cc-multilingual-main/cc_net/third_party/kenlm/compile_query_only.sh
new file mode 100644
index 0000000000000000000000000000000000000000..7a82f49ca210724beeb44cb0efa646e9e96c4270
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/compile_query_only.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+#This is just an example compilation. You should integrate these files into your build system. Boost jam is provided and preferred.
+
+echo You must use ./bjam if you want language model estimation, filtering, or support for compressed files \(.gz, .bz2, .xz\) 1>&2
+
+rm {lm,util}/*.o 2>/dev/null
+set -e
+
+CXX=${CXX:-g++}
+
+CXXFLAGS+=" -I. -O3 -DNDEBUG -DKENLM_MAX_ORDER=6"
+
+#If this fails for you, consider using bjam.
+if [ ${#NPLM} != 0 ]; then
+ CXXFLAGS+=" -DHAVE_NPLM -lneuralLM -L$NPLM/src -I$NPLM/src -lboost_thread-mt -fopenmp"
+ ADDED_PATHS="lm/wrappers/*.cc"
+fi
+echo 'Compiling with '$CXX $CXXFLAGS
+
+#Grab all cc files in these directories except those ending in test.cc or main.cc
+objects=""
+for i in util/double-conversion/*.cc util/*.cc lm/*.cc $ADDED_PATHS; do
+ if [ "${i%test.cc}" == "$i" ] && [ "${i%main.cc}" == "$i" ]; then
+ $CXX $CXXFLAGS -c $i -o ${i%.cc}.o
+ objects="$objects ${i%.cc}.o"
+ fi
+done
+
+mkdir -p bin
+if [ "$(uname)" != Darwin ]; then
+ CXXFLAGS="$CXXFLAGS -lrt"
+fi
+$CXX lm/build_binary_main.cc $objects -o bin/build_binary $CXXFLAGS $LDFLAGS
+$CXX lm/query_main.cc $objects -o bin/query $CXXFLAGS $LDFLAGS
diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/setup.py b/cc-multilingual-main/cc_net/third_party/kenlm/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..9e0f0d1557b926cb43aada50d3fd6d017b005b46
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/kenlm/setup.py
@@ -0,0 +1,62 @@
+from setuptools import setup, Extension
+import glob
+import platform
+import os
+import sys
+import re
+
+#Does gcc compile with this header and library?
+def compile_test(header, library):
+ dummy_path = os.path.join(os.path.dirname(__file__), "dummy")
+ command = "bash -c \"g++ -include " + header + " -l" + library + " -x c++ - <<<'int main() {}' -o " + dummy_path + " >/dev/null 2>/dev/null && rm " + dummy_path + " 2>/dev/null\""
+ return os.system(command) == 0
+
+max_order = "6"
+is_max_order = [s for s in sys.argv if "--max_order" in s]
+for element in is_max_order:
+ max_order = re.split('[= ]',element)[1]
+ sys.argv.remove(element)
+
+FILES = glob.glob('util/*.cc') + glob.glob('lm/*.cc') + glob.glob('util/double-conversion/*.cc') + glob.glob('python/*.cc')
+FILES = [fn for fn in FILES if not (fn.endswith('main.cc') or fn.endswith('test.cc'))]
+
+if platform.system() == 'Linux':
+ LIBS = ['stdc++', 'rt']
+elif platform.system() == 'Darwin':
+ LIBS = ['c++']
+else:
+ LIBS = []
+
+#We don't need -std=c++11 but python seems to be compiled with it now. https://github.com/kpu/kenlm/issues/86
+ARGS = ['-O3', '-DNDEBUG', '-DKENLM_MAX_ORDER='+max_order, '-std=c++11']
+
+#Attempted fix to https://github.com/kpu/kenlm/issues/186 and https://github.com/kpu/kenlm/issues/197
+if platform.system() == 'Darwin':
+ ARGS += ["-stdlib=libc++", "-mmacosx-version-min=10.7"]
+
+if compile_test('zlib.h', 'z'):
+ ARGS.append('-DHAVE_ZLIB')
+ LIBS.append('z')
+
+if compile_test('bzlib.h', 'bz2'):
+ ARGS.append('-DHAVE_BZLIB')
+ LIBS.append('bz2')
+
+if compile_test('lzma.h', 'lzma'):
+ ARGS.append('-DHAVE_XZLIB')
+ LIBS.append('lzma')
+
+ext_modules = [
+ Extension(name='kenlm',
+ sources=FILES + ['python/kenlm.cpp'],
+ language='C++',
+ include_dirs=['.'],
+ libraries=LIBS,
+ extra_compile_args=ARGS)
+]
+
+setup(
+ name='kenlm',
+ ext_modules=ext_modules,
+ include_package_data=True,
+)
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train-static.dir/builder.cc.o b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train-static.dir/builder.cc.o
new file mode 100644
index 0000000000000000000000000000000000000000..bcf75b3e0f33927dd6e01a40b31d87c3c27517f6
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train-static.dir/builder.cc.o
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:976b84fde8bfb7971b25df0fc93e046d5ffd234aac0b2863eb43a0dab4307d8f
+size 1117264
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.a b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.a
new file mode 100644
index 0000000000000000000000000000000000000000..9c769d1983db5020be62a2ddc839234e5291b679
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.a
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:843738e17346c8b3edf05f5c13cc172f2291243fd855a261c6b46052bd0d839b
+size 2025446
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so
new file mode 100644
index 0000000000000000000000000000000000000000..fe76bcd95994d75f9ae1f23c20ec80076ed6e2b8
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d852b5a0f12c183a9a51eff748b3dafd9135e655d574228201f87387d793eb00
+size 1126472
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so.0.0.0 b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so.0.0.0
new file mode 100644
index 0000000000000000000000000000000000000000..fe76bcd95994d75f9ae1f23c20ec80076ed6e2b8
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece.so.0.0.0
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d852b5a0f12c183a9a51eff748b3dafd9135e655d574228201f87387d793eb00
+size 1126472
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.a b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.a
new file mode 100644
index 0000000000000000000000000000000000000000..c34961ffce57ecc48abbe2173250bac28f4bd20e
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.a
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:34b423aaa7273e14f6cd064179f3660c5f17047a410799da24937df72e49d75a
+size 1921634
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0 b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0
new file mode 100644
index 0000000000000000000000000000000000000000..5de230cd2ecfef5d4812e0afcdb9ba3b753869ab
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2ec684eaf2a6f1d19285c97f5d3a0382c4a983fa08d78aeede21d6cf2563ff4d
+size 1544648
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/CMakeLists.txt b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a2356d41420c4e3c252a36f7edf05d42ad7eb3d2
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/CMakeLists.txt
@@ -0,0 +1,288 @@
+# Copyright 2018 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.!
+
+if (SPM_USE_BUILTIN_PROTOBUF)
+ set(SPM_PROTO_HDRS builtin_pb/sentencepiece.pb.h)
+ set(SPM_PROTO_SRCS builtin_pb/sentencepiece.pb.cc)
+ set(SPM_MODEL_PROTO_HDRS builtin_pb/sentencepiece_model.pb.h)
+ set(SPM_MODEL_PROTO_SRCS builtin_pb/sentencepiece_model.pb.cc)
+ set(PROTOBUF_LITE_LIBRARY "")
+ set(PROTOBUF_LITE_SRCS
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/arena.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/arenastring.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/bytestream.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/coded_stream.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/common.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/extension_set.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/generated_message_table_driven_lite.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/generated_message_util.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/implicit_weak_message.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/int128.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/io_win32.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/message_lite.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/repeated_field.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/status.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/statusor.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/stringpiece.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/stringprintf.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/structurally_valid.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/strutil.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/time.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/wire_format_lite.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/zero_copy_stream.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite/zero_copy_stream_impl_lite.cc)
+ if (MSVC)
+ add_definitions("/DHAVE_PTHREAD /wd4018 /wd4514")
+ else()
+ add_definitions("-pthread -DHAVE_PTHREAD=1 -Wno-sign-compare")
+ endif()
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../third_party/protobuf-lite)
+ include_directories(builtin_pb)
+else()
+ find_package(Protobuf REQUIRED)
+ include_directories(${Protobuf_INCLUDE_DIRS})
+ protobuf_generate_cpp(SPM_PROTO_SRCS SPM_PROTO_HDRS sentencepiece.proto)
+ protobuf_generate_cpp(SPM_MODEL_PROTO_SRCS SPM_MODEL_PROTO_HDRS sentencepiece_model.proto)
+ set(PROTOBUF_LITE_SRCS "")
+ include_directories(${PROTOBUF_INCLUDE_DIR})
+endif()
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+set(SPM_SRCS
+ ${PROTOBUF_LITE_SRCS}
+ ${SPM_PROTO_HDRS}
+ ${SPM_PROTO_SRCS}
+ ${SPM_MODEL_PROTO_HDRS}
+ ${SPM_MODEL_PROTO_SRCS}
+ bpe_model.h
+ common.h
+ normalizer.h
+ util.h
+ freelist.h
+ filesystem.h
+ flags.h
+ sentencepiece_processor.h
+ word_model.h
+ model_factory.h
+ char_model.h
+ model_interface.h
+ testharness.h
+ unigram_model.h
+ bpe_model.cc
+ char_model.cc
+ error.cc
+ filesystem.cc
+ flags.cc
+ model_factory.cc
+ model_interface.cc
+ normalizer.cc
+ sentencepiece_processor.cc
+ unigram_model.cc
+ util.cc
+ word_model.cc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/absl/strings/string_view.cc)
+
+set(SPM_TRAIN_SRCS
+ ${SPM_PROTO_HDRS}
+ ${SPM_MODEL_PROTO_HDRS}
+ builder.h
+ normalization_rule.h
+ unicode_script.h
+ unicode_script_map.h
+ trainer_factory.h
+ trainer_interface.h
+ unigram_model_trainer.h
+ word_model_trainer.h
+ char_model_trainer.h
+ bpe_model_trainer.h
+ sentencepiece_trainer.h
+ builder.cc
+ unicode_script.cc
+ trainer_factory.cc
+ trainer_interface.cc
+ unigram_model_trainer.cc
+ word_model_trainer.cc
+ char_model_trainer.cc
+ bpe_model_trainer.cc
+ sentencepiece_trainer.cc)
+
+set(SPM_TEST_SRCS
+ ${SPM_PROTO_HDRS}
+ ${SPM_MODEL_PROTO_HDRS}
+ testharness.h
+ bpe_model_test.cc
+ bpe_model_trainer_test.cc
+ builder_test.cc
+ char_model_test.cc
+ char_model_trainer_test.cc
+ filesystem_test.cc
+ flags_test.cc
+ model_factory_test.cc
+ model_interface_test.cc
+ normalizer_test.cc
+ sentencepiece_processor_test.cc
+ sentencepiece_trainer_test.cc
+ test_main.cc
+ testharness.cc
+ trainer_factory_test.cc
+ trainer_interface_test.cc
+ unicode_script_test.cc
+ unigram_model_test.cc
+ unigram_model_trainer_test.cc
+ util_test.cc
+ word_model_test.cc
+ word_model_trainer_test.cc)
+
+find_package(Threads REQUIRED)
+
+set(SPM_LIBS ${PROTOBUF_LITE_LIBRARY} Threads::Threads)
+
+if (SPM_ENABLE_NFKC_COMPILE)
+ find_package(ICU 4.4 COMPONENTS i18n data uc REQUIRED)
+ include_directories(${ICU_INCLUDE_DIRS})
+ add_definitions(-DENABLE_NFKC_COMPILE)
+ list(APPEND SPM_LIBS ICU::i18n ICU::data ICU::uc)
+endif()
+
+if (SPM_ENABLE_TCMALLOC)
+ if (SPM_TCMALLOC_STATIC)
+ find_library(TCMALLOC_LIB NAMES libtcmalloc_minimal.a)
+ else()
+ find_library(TCMALLOC_LIB NAMES tcmalloc_minimal)
+ endif()
+ if (TCMALLOC_LIB)
+ message(STATUS "Found TCMalloc: ${TCMALLOC_LIB}")
+ list(APPEND SPM_LIBS ${TCMALLOC_LIB})
+ add_definitions(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free)
+ else()
+ message(STATUS "Not Found TCMalloc: ${TCMALLOC_LIB}")
+ endif()
+endif()
+
+if (SPM_ENABLE_SHARED)
+ add_library(sentencepiece SHARED ${SPM_SRCS})
+ add_library(sentencepiece_train SHARED ${SPM_TRAIN_SRCS})
+endif()
+
+add_library(sentencepiece-static STATIC ${SPM_SRCS})
+add_library(sentencepiece_train-static STATIC ${SPM_TRAIN_SRCS})
+
+target_link_libraries(sentencepiece-static INTERFACE ${SPM_LIBS})
+target_link_libraries(sentencepiece_train-static INTERFACE sentencepiece-static ${SPM_LIBS})
+
+if (SPM_ENABLE_SHARED)
+ target_link_libraries(sentencepiece ${SPM_LIBS})
+ target_link_libraries(sentencepiece_train ${SPM_LIBS} sentencepiece)
+ set(SPM_INSTALLTARGETS sentencepiece sentencepiece_train sentencepiece-static sentencepiece_train-static)
+ set_target_properties(sentencepiece sentencepiece_train PROPERTIES SOVERSION 0 VERSION 0.0.0)
+ set_target_properties(sentencepiece PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS YES)
+ set_target_properties(sentencepiece_train PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS YES)
+ if (MSVC)
+ set_target_properties(sentencepiece PROPERTIES IMPORT_SUFFIX "_import.lib")
+ set_target_properties(sentencepiece_train PROPERTIES IMPORT_SUFFIX "_import.lib")
+ elseif (MINGW)
+ set_target_properties(sentencepiece PROPERTIES IMPORT_SUFFIX ".dll.a")
+ set_target_properties(sentencepiece_train PROPERTIES IMPORT_SUFFIX ".dll.a")
+ endif()
+else()
+ add_library(sentencepiece ALIAS sentencepiece-static)
+ add_library(sentencepiece_train ALIAS sentencepiece_train-static)
+ set(SPM_INSTALLTARGETS sentencepiece-static sentencepiece_train-static)
+endif()
+
+set_target_properties(sentencepiece-static PROPERTIES OUTPUT_NAME "sentencepiece")
+set_target_properties(sentencepiece_train-static PROPERTIES OUTPUT_NAME "sentencepiece_train")
+
+if (NOT MSVC)
+ if (SPM_COVERAGE)
+ set(CMAKE_CXX_FLAGS "-O0 -Wall -fPIC -coverage ${CMAKE_CXX_FLAGS}")
+ else()
+ set(CMAKE_CXX_FLAGS "-O3 -Wall -fPIC ${CMAKE_CXX_FLAGS}")
+ endif()
+ if (SPM_ENABLE_TENSORFLOW_SHARED)
+ add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
+ endif()
+ if (SPM_NO_THREADLOCAL)
+ add_definitions(-DSPM_NO_THREADLOCAL=1)
+ add_definitions(-DGOOGLE_PROTOBUF_NO_THREADLOCAL=1)
+ endif()
+ set_source_files_properties(
+ sentencepiece.pb.cc sentencepiece_model.pb.cc
+ PROPERTIES COMPILE_FLAGS "-Wno-misleading-indentation")
+ set_source_files_properties(${SPM_TEST_SRCS}
+ PROPERTIES COMPILE_FLAGS "-Wno-sign-compare")
+ if (SPM_ENABLE_SHARED)
+ set_property(TARGET sentencepiece APPEND_STRING PROPERTY COMPILE_FLAGS " -DPIC")
+ set_property(TARGET sentencepiece_train APPEND_STRING PROPERTY COMPILE_FLAGS " -DPIC")
+ endif()
+endif()
+
+add_executable(spm_encode spm_encode_main.cc)
+add_executable(spm_decode spm_decode_main.cc)
+add_executable(spm_normalize spm_normalize_main.cc)
+add_executable(spm_train spm_train_main.cc)
+add_executable(spm_export_vocab spm_export_vocab_main.cc)
+
+target_link_libraries(spm_encode sentencepiece)
+target_link_libraries(spm_decode sentencepiece)
+target_link_libraries(spm_normalize sentencepiece sentencepiece_train)
+target_link_libraries(spm_train sentencepiece sentencepiece_train)
+target_link_libraries(spm_export_vocab sentencepiece)
+
+if (SPM_ENABLE_NFKC_COMPILE)
+ add_executable(compile_charsmap compile_charsmap_main.cc)
+ target_link_libraries(compile_charsmap sentencepiece sentencepiece_train)
+endif()
+
+list(APPEND SPM_INSTALLTARGETS
+ spm_encode spm_decode spm_normalize spm_train spm_export_vocab)
+
+install(TARGETS ${SPM_INSTALLTARGETS}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(FILES sentencepiece_trainer.h sentencepiece_processor.h
+ DESTINATION ${CMAKE_INSTALL_INCDIR})
+
+file(TO_NATIVE_PATH "${PROJECT_SOURCE_DIR}/data" data_dir)
+
+if (SPM_BUILD_TEST OR SPM_COVERAGE)
+ enable_testing()
+ add_executable(spm_test test_main.cc ${SPM_TEST_SRCS})
+
+ if (SPM_COVERAGE)
+ target_link_libraries(spm_test sentencepiece sentencepiece_train "-lgcov")
+ else()
+ target_link_libraries(spm_test sentencepiece sentencepiece_train)
+ endif()
+
+ set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=definite,possible --error-exitcode=1")
+ find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
+ include(Dart)
+
+ add_test(NAME sentencepiece_test
+ COMMAND $ --data_dir=${data_dir})
+endif()
+
+if (SPM_COVERAGE)
+ add_custom_target(coverage
+ COMMAND mkdir -p coverage
+ COMMAND $ --data_dir=${data_dir}
+ COMMAND lcov -c -d . -o coverage.info
+ COMMAND lcov --remove coverage.info "include*" "/c++" "_test*" "testharness*" "third_party*" ".pb.*" -o coverage.info
+ COMMAND mkdir -p lcov_html
+ COMMAND genhtml -o lcov_html coverage.info)
+ add_dependencies(coverage spm_test)
+endif()
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model.cc b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7e0d08ddd0c9b2ff8389e3c77d11a12b24f4ab76
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model.cc
@@ -0,0 +1,189 @@
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.!
+
+#include "bpe_model.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include "freelist.h"
+#include "util.h"
+
+namespace sentencepiece {
+namespace bpe {
+
+Model::Model(const ModelProto &model_proto) {
+ model_proto_ = &model_proto;
+ InitializePieces();
+}
+
+Model::~Model() {}
+
+std::vector> Model::Encode(
+ absl::string_view normalized) const {
+ if (!status().ok() || normalized.empty()) {
+ return {};
+ }
+
+ struct SymbolPair {
+ int left; // left index of this pair
+ int right; // right index of this pair
+ float score; // score of this pair. large is better.
+ size_t size; // length of this piece
+ };
+
+ class SymbolPairComparator {
+ public:
+ const bool operator()(SymbolPair *h1, SymbolPair *h2) {
+ return (h1->score < h2->score ||
+ (h1->score == h2->score && h1->left > h2->left));
+ }
+ };
+
+ struct Symbol {
+ int prev; // prev index of this symbol. -1 for BOS.
+ int next; // next index of tihs symbol. -1 for EOS.
+ bool freeze; // this symbol is never be merged.
+ absl::string_view piece;
+ };
+
+ using Agenda = std::priority_queue,
+ SymbolPairComparator>;
+ Agenda agenda;
+ std::vector symbols;
+ symbols.reserve(normalized.size());
+
+ // Reverse merge rules.
+ // key: merged symbol, value: pair of original symbols.
+ std::unordered_map,
+ string_util::string_view_hash>
+ rev_merge;
+
+ // Pre-allocates SymbolPair for efficiency.
+ constexpr size_t kPreallocateSymbolPairSize = 256;
+ model::FreeList symbol_pair_allocator(kPreallocateSymbolPairSize);
+
+ // Lookup new symbol pair at [left, right] and inserts it to agenda.
+ auto MaybeAddNewSymbolPair = [this, &symbol_pair_allocator, &symbols, &agenda,
+ &rev_merge](int left, int right) {
+ if (left == -1 || right == -1 || symbols[left].freeze ||
+ symbols[right].freeze)
+ return;
+ const absl::string_view piece(
+ symbols[left].piece.data(),
+ symbols[left].piece.size() + symbols[right].piece.size());
+ const auto it = pieces_.find(piece);
+ if (it == pieces_.end()) {
+ return;
+ }
+ auto *h = symbol_pair_allocator.Allocate();
+ h->left = left;
+ h->right = right;
+ h->score = GetScore(it->second);
+ h->size = piece.size();
+ agenda.push(h);
+
+ // Makes `rev_merge` for resegmentation.
+ if (IsUnusedInlined(it->second)) {
+ rev_merge[piece] =
+ std::make_pair(symbols[left].piece, symbols[right].piece);
+ }
+ };
+
+ // Splits the input into character sequence
+ int index = 0;
+ while (!normalized.empty()) {
+ Symbol s;
+ const int mblen = matcher_->PrefixMatch(normalized, &s.freeze);
+ s.piece = absl::string_view(normalized.data(), mblen);
+ s.prev = index == 0 ? -1 : index - 1;
+ normalized.remove_prefix(mblen);
+ s.next = normalized.empty() ? -1 : index + 1;
+ ++index;
+ symbols.emplace_back(s);
+ }
+
+ if (symbols.empty()) {
+ return {};
+ }
+
+ // Lookup all bigrams.
+ for (size_t i = 1; i < symbols.size(); ++i) {
+ MaybeAddNewSymbolPair(i - 1, i);
+ }
+
+ // Main loop.
+ while (!agenda.empty()) {
+ SymbolPair *top = agenda.top();
+ agenda.pop();
+
+ // `top` is no longer available.
+ if (symbols[top->left].piece.empty() || symbols[top->right].piece.empty() ||
+ symbols[top->left].piece.size() + symbols[top->right].piece.size() !=
+ top->size) {
+ continue;
+ }
+
+ // Replaces symbols with `top` rule.
+ symbols[top->left].piece = absl::string_view(
+ symbols[top->left].piece.data(),
+ symbols[top->left].piece.size() + symbols[top->right].piece.size());
+
+ // Updates prev/next pointers.
+ symbols[top->left].next = symbols[top->right].next;
+ if (symbols[top->right].next >= 0) {
+ symbols[symbols[top->right].next].prev = top->left;
+ }
+ symbols[top->right].piece = absl::string_view("");
+
+ // Adds new symbol pairs which are newly added after symbol replacement.
+ MaybeAddNewSymbolPair(symbols[top->left].prev, top->left);
+ MaybeAddNewSymbolPair(top->left, symbols[top->left].next);
+ }
+
+ std::function resegment;
+ resegment = [this, &resegment, &rev_merge](absl::string_view w,
+ EncodeResult *output) -> void {
+ const int id = PieceToId(w);
+ if (id == -1 || !IsUnusedInlined(id)) {
+ output->emplace_back(w, id);
+ return;
+ }
+ const auto p = rev_merge.find(w);
+ if (p == rev_merge.end()) {
+ // This block will never be called, as `rev_merge` stores all the
+ // resegmentation info for unused id.
+ output->emplace_back(w, id);
+ return;
+ }
+ // Recursively resegment left and right symbols.
+ resegment(p->second.first, output);
+ resegment(p->second.second, output);
+ };
+
+ EncodeResult output;
+ for (int index = 0; index != -1; index = symbols[index].next) {
+ CHECK_GE(index, 0);
+ CHECK_LT(index, static_cast(symbols.size()));
+ resegment(symbols[index].piece, &output);
+ }
+
+ return output;
+}
+} // namespace bpe
+} // namespace sentencepiece
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer.h b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer.h
new file mode 100644
index 0000000000000000000000000000000000000000..2597139f131d0280ea722513a9d9b54789e81de2
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer.h
@@ -0,0 +1,125 @@
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.!
+
+#ifndef BPE_MODEL_TRAINER_H_
+#define BPE_MODEL_TRAINER_H_
+
+#include
+#include
+#include
+#include
+
+#include "sentencepiece_model.pb.h"
+#include "trainer_interface.h"
+
+namespace sentencepiece {
+namespace bpe {
+
+// Trainer class for BPE model.
+class Trainer : public TrainerInterface {
+ public:
+ Trainer(const TrainerSpec &trainer_spec,
+ const NormalizerSpec &normalizer_spec)
+ : TrainerInterface::TrainerInterface(trainer_spec, normalizer_spec) {}
+
+ util::Status Train() override;
+
+ private:
+ // Symbol represents a character or symbol bigram.
+ struct Symbol {
+ const Symbol *left; // left symbol in bigram
+ const Symbol *right; // right symbol in bigram
+ string_util::UnicodeText chars; // all flattend chracter sequence
+ bool is_unk; // true if this symbol is unknown.
+ uint64 fp; // fingerprint of this symbol.
+ uint64 freq; // frequency of this symbol.
+
+ // Position list. Use set so that we can keep the order of occurrence.
+ // See EncodePos/DecodePos.
+ std::set positions;
+
+ bool IsBigram() const { return left != nullptr && right != nullptr; }
+ std::string ToString() const;
+ Symbol() : left(nullptr), right(nullptr), is_unk(false), fp(0), freq(0) {}
+ };
+
+ struct Position {
+ int sid; // sentence id
+ int left; // left symbol index
+ int right; // right symbol index
+ };
+
+ // Encodes sid, left and right bigram index into uint64.
+ // Encoded value keeps the order of sid, left and right.
+ static uint64 EncodePos(int sid, int l, int r) {
+ CHECK_GE(l, 0);
+ CHECK_GE(r, 0);
+ CHECK_LE(l, kuint16max);
+ CHECK_LE(r, kuint16max);
+ const uint64 n = (static_cast(sid) << 32 | (l << 16 | r));
+ return n;
+ }
+
+ // Decodes sid, left and right bigram index from uint64.
+ static Position DecodePos(uint64 n) {
+ Position p;
+ p.sid = n >> 32;
+ p.left = (n >> 16) & 0xffff;
+ p.right = n & 0xffff;
+ return p;
+ }
+
+ // Gets unary (character) symbol from the char code |c|.
+ // The return value is cached.
+ Symbol *GetCharSymbol(char32 c);
+
+ // Gets symbol pair from left/right symbols. The return value is cached.
+ Symbol *GetPairSymbol(const Symbol *left, const Symbol *right);
+
+ // Computes the frequency of |symbol| and update symbol->freq field.
+ void ComputeFreq(Symbol *symbol) const;
+
+ // Returns the valid index before symbols_[sid][index].
+ int GetNextIndex(int sid, int index) const;
+
+ // Returns the valid index after symbols_[sid][index].
+ int GetPrevIndex(int sid, int index) const;
+
+ // Makes a new bigram from [symbols_[sid][left], symbols_[sid][right]] and
+ // Adds it to symbols_cache_ and active_symbols_.
+ void AddNewPair(int sid, int left, int right);
+
+ // Resets the fequency of bigram [symbols_[sid][left] symbols_[sid][right]],
+ // if this bigram is not |best|.
+ void ResetFreq(int sid, int left, int right, const Symbol *best);
+
+ // Updates |active_symbols_| by copying the top 5% frequent symbols in
+ // symbols_cache_.
+ void UpdateActiveSymbols();
+
+ // All unique symbols. Key is a fingerprint of Symbol.
+ std::unordered_map symbols_cache_;
+
+ // Set of symbols from which we find the best symbol in each iteration.
+ std::set active_symbols_;
+
+ // Stores symbols allocated in heap so that we can delete them at onece.
+ std::vector allocated_;
+
+ // Sentences. symbols_[sid][index] stores a symbol in sentence_[sid][index].
+ std::vector> symbols_;
+};
+} // namespace bpe
+} // namespace sentencepiece
+#endif // BPE_MODEL_TRAINER_H_
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer_test.cc b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7647504f8fff210e5efb7323c4341c703f372056
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/bpe_model_trainer_test.cc
@@ -0,0 +1,129 @@
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.!
+
+#include "bpe_model_trainer.h"
+
+#include
+#include
+#include "filesystem.h"
+#include "flags.h"
+#include "sentencepiece_processor.h"
+#include "sentencepiece_trainer.h"
+#include "testharness.h"
+#include "util.h"
+
+DECLARE_string(data_dir);
+
+namespace sentencepiece {
+namespace bpe {
+namespace {
+
+// Space symbol
+#define WS "\xe2\x96\x81"
+
+std::string RunTrainer(
+ const std::vector &input, int size,
+ const std::vector &user_defined_symbols = {}) {
+ test::ScopedTempFile input_scoped_file("input");
+ test::ScopedTempFile model_scoped_file("model");
+ const std::string input_file = input_scoped_file.filename();
+ const std::string model_prefix = model_scoped_file.filename();
+ {
+ auto output = filesystem::NewWritableFile(input_file);
+ for (const auto &line : input) {
+ output->WriteLine(line);
+ }
+ }
+
+ TrainerSpec trainer_spec;
+ trainer_spec.set_model_type(TrainerSpec::BPE);
+ trainer_spec.add_input(input_file);
+ trainer_spec.set_vocab_size(size - 3); // remove , ,
+ trainer_spec.set_model_prefix(model_prefix);
+
+ NormalizerSpec normalizer_spec;
+ normalizer_spec.set_name("identity");
+ normalizer_spec.set_add_dummy_prefix(false);
+
+ for (const auto &w : user_defined_symbols) {
+ trainer_spec.add_user_defined_symbols(w);
+ }
+
+ Trainer trainer(trainer_spec, normalizer_spec);
+ EXPECT_OK(trainer.Train());
+
+ SentencePieceProcessor processor;
+ EXPECT_OK(processor.Load(model_prefix + ".model"));
+
+ const auto &model = processor.model_proto();
+ std::vector pieces;
+
+ // remove , ,
+ for (int i = 3; i < model.pieces_size(); ++i) {
+ pieces.emplace_back(model.pieces(i).piece());
+ }
+
+ return string_util::Join(pieces, " ");
+}
+
+TEST(BPETrainerTest, BasicTest) {
+ EXPECT_EQ("ab ra abra ad cad abracad abracadabra ac br a b r c d",
+ RunTrainer({"abracadabra"}, 20));
+ EXPECT_EQ("ap le app apple en in ine pen p e a l n i",
+ RunTrainer({"pen", "pineapple", "apple"}, 20));
+ EXPECT_EQ("he ll llo hello hellohe el lo oh hel ohe e h l o",
+ RunTrainer({"hellohe"}, 20));
+ EXPECT_EQ("app le en in ine pen pine ne pe e l n p i",
+ RunTrainer({"pen", "pineapple", "apple"}, 20, {"app"}));
+}
+
+TEST(BPETrainerTest, EndToEndTest) {
+ const test::ScopedTempFile sf("tmp_model");
+ const std::string input =
+ util::JoinPath(FLAGS_data_dir, "wagahaiwa_nekodearu.txt");
+
+ EXPECT_OK(SentencePieceTrainer::Train(string_util::StrCat(
+ "--model_prefix=", sf.filename(), " --input=", input,
+ " --vocab_size=8000 --normalization_rule_name=identity"
+ " --model_type=bpe --control_symbols= "
+ "--max_sentence_length=2048")));
+
+ SentencePieceProcessor sp;
+ EXPECT_OK(sp.Load(std::string(sf.filename()) + ".model"));
+ EXPECT_EQ(8000, sp.GetPieceSize());
+
+ const int cid = sp.PieceToId("");
+ EXPECT_TRUE(sp.IsControl(cid));
+
+ std::vector tok;
+ EXPECT_OK(sp.Encode("", &tok));
+ EXPECT_TRUE(tok.empty());
+
+ EXPECT_OK(sp.Encode(
+ "吾輩《わがはい》は猫である。名前はまだ無い。"
+ "どこで生れたかとんと見当《けんとう》がつかぬ。"
+ "何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している"
+ "。",
+ &tok));
+ EXPECT_EQ(WS
+ " 吾輩 《 わが はい 》 は猫 である 。 名前 はまだ 無い 。 "
+ "どこで 生 れた か とん と見 当 《 けんとう 》 が つかぬ 。 "
+ "何でも 薄 暗 いじ め じ め した 所で ニャー ニャー 泣 いていた "
+ "事 だけは 記憶 している 。",
+ string_util::Join(tok, " "));
+}
+
+} // namespace
+} // namespace bpe
+} // namespace sentencepiece
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.cc b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ca6d6b666f90cf9231d85a1dec76bd6e475ba370
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.cc
@@ -0,0 +1,581 @@
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.!
+
+#include "builder.h"
+#include
+#include
+#include
+#include "filesystem.h"
+
+#include "config.h"
+
+#ifdef ENABLE_NFKC_COMPILE
+#include
+#include
+#include
+#include
+#include
+#include
+#endif
+
+#include
+
+#include "normalization_rule.h"
+#include "normalizer.h"
+#include "third_party/darts_clone/darts.h"
+#include "util.h"
+
+namespace sentencepiece {
+namespace normalizer {
+namespace {
+
+constexpr int kMaxUnicode = 0x10FFFF;
+
+static constexpr char kDefaultNormalizerName[] = "nfkc";
+
+#ifdef ENABLE_NFKC_COMPILE
+// Normalize `input` with ICU's normalizer with `mode`.
+Builder::Chars UnicodeNormalize(UNormalizationMode mode,
+ const Builder::Chars &input) {
+ const std::string utf8 = string_util::UnicodeTextToUTF8(input);
+ CHECK(!utf8.empty());
+
+ icu::UnicodeString ustr;
+ const size_t utf8_length = utf8.size();
+ UChar *utf16 = ustr.getBuffer(utf8.size() + 1);
+ int32 utf16_length = 0;
+ icu::ErrorCode icuerrorcode;
+ u_strFromUTF8Lenient(utf16, ustr.getCapacity(), &utf16_length, utf8.data(),
+ utf8_length, icuerrorcode);
+ ustr.releaseBuffer(utf16_length);
+
+ UErrorCode status = U_ZERO_ERROR;
+ icu::UnicodeString dst;
+ icu::Normalizer::normalize(ustr, mode, 0, dst, status);
+ CHECK(U_SUCCESS(status));
+ std::string normalized;
+ normalized.reserve(dst.length() * 3);
+ dst.toUTF8String(normalized);
+ return string_util::UTF8ToUnicodeText(normalized);
+}
+
+Builder::Chars ToNFKD(const Builder::Chars &input) {
+ return UnicodeNormalize(UNORM_NFKD, input);
+}
+
+Builder::Chars ToNFKC(const Builder::Chars &input) {
+ return UnicodeNormalize(UNORM_NFKC, input);
+}
+
+Builder::Chars ToNFC(const Builder::Chars &input) {
+ return UnicodeNormalize(UNORM_NFC, input);
+}
+
+Builder::Chars ToNFD(const Builder::Chars &input) {
+ return UnicodeNormalize(UNORM_NFD, input);
+}
+
+// Given an NFKD-normalized string, returns a set of all strings which are
+// normalized into the same `nfkd`. `norm2orig` is the normalized to
+// un-normalized character mapping.
+std::vector ExpandUnnormalized(
+ const Builder::Chars &nfkd,
+ const std::map> &norm2orig) {
+ CHECK(!nfkd.empty());
+ std::vector results;
+ for (const auto c : port::FindOrDie(norm2orig, nfkd[0])) {
+ results.push_back({c});
+ }
+ for (size_t i = 1; i < nfkd.size(); ++i) {
+ const auto &orig = port::FindOrDie(norm2orig, nfkd[i]);
+ std::vector new_results;
+ for (const auto &r : results) {
+ for (const auto c : orig) {
+ new_results.emplace_back(r);
+ new_results.back().push_back(c);
+ }
+ }
+ results = std::move(new_results);
+ }
+ CHECK_EQ(nfkd.size(), results[0].size());
+ return results;
+}
+#endif
+
+// Normalizes `src` with `chars_map` and returns normalized Chars.
+// `max_len` specifies the maximum length of the key in `chars_map`.
+Builder::Chars Normalize(const Builder::CharsMap &chars_map,
+ const Builder::Chars &src, int max_len) {
+ CHECK_GE(max_len, 1);
+ Builder::Chars normalized;
+
+ for (size_t i = 0; i < src.size();) {
+ Builder::CharsMap::const_iterator it = chars_map.end();
+ const size_t slice = std::min(i + max_len, src.size());
+ // starts with the longest prefix.
+ Builder::Chars key(src.begin() + i, src.begin() + slice);
+ while (!key.empty()) {
+ it = chars_map.find(key);
+ if (it != chars_map.end()) {
+ break;
+ }
+ key.pop_back(); // remove the last character.
+ }
+
+ // Consumes one character when no rule is found.
+ if (it == chars_map.end()) {
+ normalized.push_back(src[i]);
+ ++i;
+ } else {
+ std::copy(it->second.begin(), it->second.end(),
+ std::back_inserter(normalized));
+ i += it->first.size();
+ }
+ }
+
+ return normalized;
+}
+} // namespace
+
+// static
+util::Status Builder::CompileCharsMap(const CharsMap &chars_map,
+ std::string *output) {
+ CHECK_OR_RETURN(output);
+ CHECK_OR_RETURN(!chars_map.empty());
+
+ LOG(INFO) << "Loading CharsMap of size=" << chars_map.size();
+
+ // Aggregates the same target strings to save footprint.
+ std::map normalized2pos;
+ for (const auto &p : chars_map) {
+ normalized2pos[p.second] = 0;
+ }
+
+ std::string normalized;
+ for (auto &p : normalized2pos) {
+ p.second = normalized.size(); // stores the pointer (position).
+ const std::string utf8_out = string_util::UnicodeTextToUTF8(p.first);
+ CHECK_OR_RETURN(string_util::IsStructurallyValid(utf8_out));
+ normalized += utf8_out;
+ normalized += '\0';
+ }
+
+ std::vector> kv; // key-value of Trie.
+ for (const auto &p : chars_map) {
+ // The value of Trie stores the pointer to the normalized string.
+ const std::string utf8_in = string_util::UnicodeTextToUTF8(p.first);
+ CHECK_OR_RETURN(!utf8_in.empty());
+ CHECK_OR_RETURN(string_util::IsStructurallyValid(utf8_in));
+ kv.emplace_back(utf8_in, port::FindOrDie(normalized2pos, p.second));
+ }
+
+ std::sort(kv.begin(), kv.end());
+ std::vector key(kv.size());
+ std::vector value(kv.size());
+ for (size_t i = 0; i < kv.size(); ++i) {
+ key[i] = kv[i].first.c_str();
+ value[i] = kv[i].second;
+ }
+
+ Darts::DoubleArray trie;
+ CHECK_EQ_OR_RETURN(0, trie.build(key.size(), const_cast(&key[0]),
+ nullptr, &value[0]))
+ << "cannot build double-array";
+
+ int max_nodes_size = 0;
+ std::vector results(
+ 2 * Normalizer::kMaxTrieResultsSize);
+ for (const char *str : key) {
+ const int num_nodes = trie.commonPrefixSearch(str, results.data(),
+ results.size(), strlen(str));
+ max_nodes_size = std::max(num_nodes, max_nodes_size);
+ }
+ CHECK_LT_OR_RETURN(max_nodes_size, Normalizer::kMaxTrieResultsSize)
+ << "This charmaps contain many shared prefix. "
+ << "The number of shared prefix must be less than "
+ << Normalizer::kMaxTrieResultsSize;
+
+ absl::string_view trie_blob(static_cast(trie.array()),
+ trie.size() * trie.unit_size());
+ *output = Normalizer::EncodePrecompiledCharsMap(trie_blob, normalized);
+
+ LOG(INFO) << "Generated normalizer blob. size=" << output->size();
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::DecompileCharsMap(absl::string_view blob,
+ Builder::CharsMap *chars_map) {
+ CHECK_OR_RETURN(chars_map);
+ chars_map->clear();
+
+ absl::string_view trie_blob, normalized;
+ RETURN_IF_ERROR(
+ Normalizer::DecodePrecompiledCharsMap(blob, &trie_blob, &normalized));
+
+ Darts::DoubleArray trie;
+ trie.set_array(const_cast(trie_blob.data()),
+ trie_blob.size() / trie.unit_size());
+
+ std::string key;
+ std::function traverse;
+
+ // Given a Trie node at `node_pos` and the key position at `key_position`,
+ // Expands children nodes from `node_pos`.
+ // When leaf nodes are found, stores them into `chars_map`.
+ traverse = [&traverse, &key, &trie, &normalized, &chars_map](
+ size_t node_pos, size_t key_pos) -> void {
+ for (int c = 0; c <= 255; ++c) {
+ key.push_back(static_cast(c));
+ size_t copied_node_pos = node_pos;
+ size_t copied_key_pos = key_pos;
+ // Note: `copied_(node|key)_pos` are non-const references.
+ // They store the new positions after node traversal.
+ const Darts::DoubleArray::result_type result = trie.traverse(
+ key.data(), copied_node_pos, copied_key_pos, key.size());
+ if (result >= -1) { // node exists.
+ if (result >= 0) { // has a value after transition.
+ const absl::string_view value = normalized.data() + result;
+ Chars key_chars, value_chars;
+ for (const auto c : string_util::UTF8ToUnicodeText(key))
+ key_chars.push_back(c);
+ for (const auto c : string_util::UTF8ToUnicodeText(value))
+ value_chars.push_back(c);
+ (*chars_map)[key_chars] = value_chars;
+ }
+ // Recursively traverse.
+ traverse(copied_node_pos, copied_key_pos);
+ }
+ key.pop_back();
+ }
+ };
+
+ traverse(0, 0);
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::GetPrecompiledCharsMap(const std::string &name,
+ std::string *output) {
+ CHECK_OR_RETURN(output);
+
+ if (name == "identity") {
+ output->clear();
+ return util::OkStatus();
+ }
+
+ std::string result;
+ for (size_t i = 0; i < kNormalizationRules_size; ++i) {
+ const auto *blob = &kNormalizationRules_blob[i];
+ if (blob->name == name) {
+ output->assign(blob->data, blob->size);
+ return util::OkStatus();
+ }
+ }
+ return util::StatusBuilder(util::error::NOT_FOUND)
+ << "No precompiled charsmap is found: " << name;
+}
+
+// static
+util::Status Builder::BuildNFKCMap(CharsMap *chars_map) {
+#ifdef ENABLE_NFKC_COMPILE
+ LOG(INFO) << "Running BuildNFKCMap";
+
+ // Set of fully NFKD decomposed characters.
+ std::set nfkd_decomposed;
+
+ // Fully normalized one character to unnormalized one character map.
+ std::map> norm2orig;
+
+ Builder::CharsMap nfkc_map; // The final NFKC mapping.
+
+ constexpr int kMaxUnicode = 0x10FFFF;
+ for (char32 cp = 1; cp <= kMaxUnicode; ++cp) {
+ if (!U_IS_UNICODE_CHAR(cp)) {
+ continue;
+ }
+ // Aggregates single character to fully NFKC normalized characters.
+ const auto nfkc = ToNFKC({cp});
+ if (nfkc.size() >= 2 || (nfkc.size() == 1 && nfkc[0] != cp)) {
+ nfkc_map[{cp}] = nfkc;
+ }
+ const auto nfkd = ToNFKD({cp});
+ if (nfkd.size() == 1) {
+ // Aggregates reverse mapping from normalized to unnormalized character.
+ norm2orig[nfkd[0]].insert(cp);
+ } else {
+ // One character is decomposed into multiple characters.
+ nfkd_decomposed.insert(nfkd);
+ }
+ }
+
+ for (const auto &nfkd : nfkd_decomposed) {
+ const auto nfkc = ToNFC(nfkd);
+ // This case is already covered by single-character to NFKC mapping.
+ if (nfkc == nfkd) {
+ continue;
+ }
+ // Expand all possible sequences which are normalized into the same
+ // `nfkd`.
+ for (const auto &nfkd_orig : ExpandUnnormalized(nfkd, norm2orig)) {
+ if (nfkd_orig != nfkc) {
+ nfkc_map[nfkd_orig] = nfkc;
+ }
+ }
+ }
+
+ RETURN_IF_ERROR(RemoveRedundantMap(&nfkc_map));
+ *chars_map = std::move(nfkc_map);
+
+#else
+ LOG(ERROR) << "NFKC compile is not enabled."
+ << " rebuild with ./configure --enable-nfkc-compile";
+#endif
+
+ return util::OkStatus();
+}
+
+util::Status Builder::BuildNmtNFKCMap(CharsMap *chars_map) {
+#ifdef ENABLE_NFKC_COMPILE
+ LOG(INFO) << "Running BuildNmtNFKCMap";
+
+ CharsMap nfkc_map;
+ RETURN_IF_ERROR(Builder::BuildNFKCMap(&nfkc_map));
+
+ // Other code points considered as whitespace.
+ nfkc_map[{0x0009}] = {0x20}; // TAB
+ nfkc_map[{0x000A}] = {0x20}; // LINE FEED
+ nfkc_map[{0x000C}] = {0x20}; // FORM FEED
+ nfkc_map[{0x000D}] = {0x20}; // CARRIAGE RETURN
+ nfkc_map[{0x1680}] = {0x20}; // OGHAM SPACE MARK
+ nfkc_map[{0x200B}] = {0x20}; // ZERO WIDTH SPACE
+ nfkc_map[{0x200E}] = {0x20}; // LEFT-TO-RIGHT MARK
+ nfkc_map[{0x200F}] = {0x20}; // RIGHT-TO-LEFT MARK
+ nfkc_map[{0x2028}] = {0x20}; // LINE SEPARATOR
+ nfkc_map[{0x2029}] = {0x20}; // PARAGRAPH SEPARATOR
+ nfkc_map[{0x2581}] = {0x20}; // LOWER ONE EIGHT BLOCK
+ nfkc_map[{0xFEFF}] = {0x20}; // ZERO WIDTH NO-BREAK
+ nfkc_map[{0xFFFD}] = {0x20}; // REPLACEMENT CHARACTER
+ nfkc_map[{0x200C}] = {0x20}; // ZERO WIDTH NON-JOINER
+ nfkc_map[{0x200D}] = {0x20}; // ZERO WIDTH JOINER
+
+ // Ascii Control characters
+ nfkc_map[{0x0001}] = {};
+ nfkc_map[{0x0002}] = {};
+ nfkc_map[{0x0003}] = {};
+ nfkc_map[{0x0004}] = {};
+ nfkc_map[{0x0005}] = {};
+ nfkc_map[{0x0006}] = {};
+ nfkc_map[{0x0007}] = {};
+ nfkc_map[{0x0008}] = {};
+ nfkc_map[{0x000B}] = {};
+ nfkc_map[{0x000E}] = {};
+ nfkc_map[{0x000F}] = {};
+ nfkc_map[{0x0010}] = {};
+ nfkc_map[{0x0011}] = {};
+ nfkc_map[{0x0012}] = {};
+ nfkc_map[{0x0013}] = {};
+ nfkc_map[{0x0014}] = {};
+ nfkc_map[{0x0015}] = {};
+ nfkc_map[{0x0016}] = {};
+ nfkc_map[{0x0017}] = {};
+ nfkc_map[{0x0018}] = {};
+ nfkc_map[{0x0019}] = {};
+ nfkc_map[{0x001A}] = {};
+ nfkc_map[{0x001B}] = {};
+ nfkc_map[{0x001C}] = {};
+ nfkc_map[{0x001D}] = {};
+ nfkc_map[{0x001E}] = {};
+ nfkc_map[{0x001F}] = {};
+
+ // ..
+ nfkc_map[{0x007F}] = {};
+ nfkc_map[{0x008F}] = {};
+ nfkc_map[{0x009F}] = {};
+
+ // Do not normalize FULL_WIDTH TILDE, since FULL_WIDTH TILDE
+ // and HALF_WIDTH TILDE are used differently in Japanese.
+ nfkc_map.erase({0xFF5E});
+
+ RETURN_IF_ERROR(RemoveRedundantMap(&nfkc_map));
+
+ *chars_map = std::move(nfkc_map);
+
+#else
+ LOG(ERROR) << "NFKC compile is not enabled."
+ << " rebuild with ./configure --enable-nfkc-compile";
+#endif
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::MergeUnicodeCaseFoldMap(Builder::CharsMap *chars_map) {
+#ifdef ENABLE_NFKC_COMPILE
+ for (auto &c : *chars_map) {
+ std::vector trg;
+ for (char32 c : c.second) trg.push_back(u_foldCase(c, U_FOLD_CASE_DEFAULT));
+ c.second = trg;
+ }
+
+ constexpr int kMaxUnicode = 0x10FFFF;
+ for (char32 cp = 1; cp <= kMaxUnicode; ++cp) {
+ if (!U_IS_UNICODE_CHAR(cp)) {
+ continue;
+ }
+ if (chars_map->find({cp}) != chars_map->end()) continue;
+ const char32 trg = u_foldCase(cp, U_FOLD_CASE_DEFAULT);
+ if (trg != cp) (*chars_map)[{cp}] = {trg};
+ }
+
+ RETURN_IF_ERROR(RemoveRedundantMap(chars_map));
+#endif
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::BuildNFKC_CFMap(CharsMap *chars_map) {
+#ifdef ENABLE_NFKC_COMPILE
+ CharsMap nfkc_map;
+ RETURN_IF_ERROR(Builder::BuildNFKCMap(&nfkc_map));
+ RETURN_IF_ERROR(Builder::MergeUnicodeCaseFoldMap(&nfkc_map));
+ *chars_map = std::move(nfkc_map);
+#else
+ LOG(ERROR) << "NFKC_CF compile is not enabled."
+ << " rebuild with ./configure --enable-nfkc-compile";
+#endif
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::BuildNmtNFKC_CFMap(CharsMap *chars_map) {
+#ifdef ENABLE_NFKC_COMPILE
+ CharsMap nfkc_map;
+ RETURN_IF_ERROR(Builder::BuildNmtNFKCMap(&nfkc_map));
+ RETURN_IF_ERROR(Builder::MergeUnicodeCaseFoldMap(&nfkc_map));
+ *chars_map = std::move(nfkc_map);
+#else
+ LOG(ERROR) << "NMT_NFKC_CF compile is not enabled."
+ << " rebuild with ./configure --enable-nfkc-compile";
+#endif
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::LoadCharsMap(absl::string_view filename,
+ CharsMap *chars_map) {
+ LOG(INFO) << "Loading maping file: " << filename.data();
+ CHECK_OR_RETURN(chars_map);
+
+ auto input = filesystem::NewReadableFile(filename);
+
+ RETURN_IF_ERROR(input->status());
+
+ std::string line;
+ chars_map->clear();
+ while (input->ReadLine(&line)) {
+ auto fields = string_util::SplitPiece(line, "\t", true /* allow empty*/);
+ CHECK_GE(fields.size(), 1);
+ if (fields.size() == 1) fields.push_back(""); // Deletion rule.
+ std::vector src, trg;
+ for (auto &s : string_util::SplitPiece(fields[0], " ")) {
+ if (s.empty()) continue;
+ string_util::ConsumePrefix(&s, "U+");
+ src.push_back(string_util::HexToInt(s));
+ }
+ for (auto &s : string_util::SplitPiece(fields[1], " ")) {
+ if (s.empty()) continue;
+ string_util::ConsumePrefix(&s, "U+");
+ trg.push_back(string_util::HexToInt(s));
+ }
+ CHECK_OR_RETURN(!src.empty());
+ (*chars_map)[src] = trg;
+ }
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::SaveCharsMap(absl::string_view filename,
+ const Builder::CharsMap &chars_map) {
+ auto output = filesystem::NewWritableFile(filename);
+ RETURN_IF_ERROR(output->status());
+
+ for (const auto &c : chars_map) {
+ std::vector src, trg;
+ string_util::UnicodeText srcu, trgu;
+ for (char32 v : c.first) {
+ src.push_back(string_util::IntToHex(v));
+ srcu.push_back(v);
+ }
+ for (char32 v : c.second) {
+ trg.push_back(string_util::IntToHex(v));
+ trgu.push_back(v);
+ }
+ std::string line = string_util::Join(src, " ") + "\t" +
+ string_util::Join(trg, " ") + "\t# " +
+ string_util::UnicodeTextToUTF8(c.first) + " => " +
+ string_util::UnicodeTextToUTF8(c.second);
+ line = string_util::StringReplace(line, "\b", " ", true);
+ line = string_util::StringReplace(line, "\v", " ", true);
+ line = string_util::StringReplace(line, "\f", " ", true);
+ line = string_util::StringReplace(line, "\n", " ", true);
+ line = string_util::StringReplace(line, "\r", " ", true);
+ output->WriteLine(line);
+ }
+
+ return util::OkStatus();
+}
+
+// static
+util::Status Builder::RemoveRedundantMap(CharsMap *chars_map) {
+ CHECK_OR_RETURN(chars_map);
+
+ CharsMap new_chars_map;
+ size_t max_len = 0;
+ for (const auto &p : *chars_map) {
+ max_len = std::max(p.first.size(), max_len);
+ if (p.first.size() == 1) {
+ new_chars_map.insert(p);
+ }
+ }
+ CHECK_GT_OR_RETURN(max_len, 0);
+
+ // Checks whether the rules with size of `len` can be normalized by
+ // the rules with size of [1 .. len - 1].
+ for (size_t len = 2; len <= max_len; ++len) {
+ for (const auto &p : *chars_map) {
+ if (p.first.size() == len &&
+ p.second != Normalize(new_chars_map, p.first, len - 1)) {
+ new_chars_map.insert(p);
+ }
+ }
+ }
+
+ // Verify all characters in `chars_map` are normalized by `new_chars_map`.
+ for (const auto &p : *chars_map) {
+ CHECK_EQ_OR_RETURN(p.second, Normalize(new_chars_map, p.first, max_len));
+ }
+
+ *chars_map = std::move(new_chars_map);
+
+ return util::OkStatus();
+}
+} // namespace normalizer
+} // namespace sentencepiece
diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.h b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..3178d8c25f3d31eeb12cfb52c0c0d02626c92a05
--- /dev/null
+++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/src/builder.h
@@ -0,0 +1,127 @@
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.!
+
+#ifndef BUILDER_H_
+#define BUILDER_H_
+
+#include