<jupyter_start><jupyter_text>Setup ModernMT<jupyter_code>!sudo apt install -y openjdk-8-jdk python3 python3-pip
!sudo apt install -y maven cmake libboost-all-dev zlib1g-dev libbz2-dev
!git clone https://github.com/modernmt/modernmt.git
%cd modernmt/
!python3 setup.py
%pushd src
!mvn clean install
%popd<jupyter_output>/content/modernmt/enjp-train/modernmt/enjp-train/modernmt/modernmt/src
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[[1;34mINFO[m] Scanning for projects...
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] [1mReactor Build Order:[m
[[1;34mINFO[m] 
[[1;34mINFO[m] MMT Root Module                                                    [pom]
[[1;34mINFO[m] Common components and interfa[...]<jupyter_text>Train ModernMT off of Japanese Corpora (.TMX)  Download Corpora Compilation (Large)<jupyter_code>!wget http://www.statmt.org/wmt10/training-giga-fren.tar
%mkdir enfr-train
%mv training-giga-fren.tar enfr-train/
%cd enfr-train
!tar -xf training-giga-fren.tar
%ls<jupyter_output>giga-fren.release2.fixed.en.gz  training-giga-fren.tar
giga-fren.release2.fixed.fr.gz<jupyter_text>Setup Data<jupyter_code>%cd -
!./mmt create en fr enfr-train
while True:pass<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16043956043956045, 'fraction_numerical': 0.017582417582417582, 'mean_word_length': 4.044321329639889, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '117076', 'license': 'MIT', 'n_tokens_mistral': 656, 'n_tokens_neox': 613, 'n_words': 134, 'path': 'ModernMT.ipynb', 'repo_name': 'HumanCodingMachine/ModernMTTransfer', 'size': '1820'}