Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE.md2
-rw-r--r--models/download-models.sh1
-rw-r--r--models/factors/model.npz.decoder.yml12
-rw-r--r--tests/factors/.gitignore2
-rw-r--r--tests/factors/factors.expected44
-rw-r--r--tests/factors/factors_decoder.expected98
-rwxr-xr-xtests/factors/setup.sh25
-rw-r--r--tests/factors/test_factors.sh34
-rw-r--r--tests/factors/test_factors_decoder.sh26
-rw-r--r--tests/factors/text.in98
10 files changed, 341 insertions, 1 deletions
diff --git a/LICENSE.md b/LICENSE.md
index 8789082..fbf4965 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2016 Marcin Junczys-Dowmunt, the University of Edinburgh, Adam
+Copyright (c) 2016-2021 Marcin Junczys-Dowmunt, the University of Edinburgh, Adam
Mickiewicz University
Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/models/download-models.sh b/models/download-models.sh
index 4539ee5..88432c1 100644
--- a/models/download-models.sh
+++ b/models/download-models.sh
@@ -23,6 +23,7 @@ MODEL_TARBALLS=(
wnmt18 # WNMT18 student models
wngt19 # WNGT19 student models
student-eten # Et-En student model from https://github.com/browsermt/students
+ factors # Small En-De model trained with factorized vocabs by Unbabel
#char-s2s # A character-level RNN model (obsolete)
)
diff --git a/models/factors/model.npz.decoder.yml b/models/factors/model.npz.decoder.yml
new file mode 100644
index 0000000..f2995f5
--- /dev/null
+++ b/models/factors/model.npz.decoder.yml
@@ -0,0 +1,12 @@
+relative-paths: true
+models:
+ - model.npz
+vocabs:
+ - vocab.en.fsv
+ - vocab.de.fsv
+beam-size: 6
+normalize: 0
+word-penalty: 0
+mini-batch: 32
+maxi-batch: 100
+maxi-batch-sort: src
diff --git a/tests/factors/.gitignore b/tests/factors/.gitignore
new file mode 100644
index 0000000..8ab4040
--- /dev/null
+++ b/tests/factors/.gitignore
@@ -0,0 +1,2 @@
+factors
+toy.*
diff --git a/tests/factors/factors.expected b/tests/factors/factors.expected
new file mode 100644
index 0000000..70ee0cf
--- /dev/null
+++ b/tests/factors/factors.expected
@@ -0,0 +1,44 @@
+10.77032471
+10.66634846
+10.57369232
+10.49110889
+10.42863846
+10.37640285
+10.31346226
+10.26187325
+10.20974541
+10.14718914
+10.10516739
+10.08621216
+10.04499340
+10.03392220
+10.01447582
+9.95392036
+9.91196060
+9.86151695
+9.79879570
+9.77040195
+9.74897766
+9.72190189
+9.72009087
+9.66733265
+9.62868977
+9.60218239
+9.51061630
+9.43571186
+9.44846630
+9.42066574
+9.38913155
+9.40541935
+9.32790852
+9.28542328
+9.26995373
+9.15800571
+9.10080147
+9.11642838
+9.08799362
+9.07044029
+9.08870029
+9.00327969
+8.95821762
+8.93725300
diff --git a/tests/factors/factors_decoder.expected b/tests/factors/factors_decoder.expected
new file mode 100644
index 0000000..4b8c57f
--- /dev/null
+++ b/tests/factors/factors_decoder.expected
@@ -0,0 +1,98 @@
+Indien|s0 und|s0 Japan|s0 stehen|s0 vor|s0 Ort|s0 .|s0
+der|s0 neue|s0 Premierminister|s0 Indi|s1 ens|s0 ,|s0 der|s0 sich|s0 in|s0 seinem|s0 eigenen|s0 Land|s0 befindet|s0 ,|s0 erfüllt|s0 sein|s0 jap|s1 an|s1 isches|s0 Werk|s0 ,|s0 das|s0 sich|s0 in|s0 seinem|s0 ersten|s0 großen|s0 Auslands|s1 besu|s1 ch|s0 seit|s0 der|s0 Wahl|s0 der|s0 Wahlen|s0 im|s0 Mai|s0 über|s0 wirtschaftliche|s0 und|s0 Sicherheits|s0 unterhalten|s0 .|s0
+Herr|s0 Ministerpräsident|s0 ist|s0 an|s0 einem|s0 Tag|s0 wie|s0 Japan|s0 ,|s0 der|s0 die|s0 wirtschaftlichen|s0 Beziehungen|s0 mit|s0 der|s0 d|s1 ritt|s1 größten|s0 Volks|s0 der|s0 Welt|s0 stärkt|s0 .|s0
+auf|s0 der|s0 Tagesordnung|s0 stehen|s0 hohe|s0 Pläne|s0 für|s0 mehr|s0 Atom|s0 .|s0
+auch|s0 Indien|s0 hofft|s0 auf|s0 eine|s0 Vereinbarung|s0 zur|s0 Verteidigung|s0 der|s0 Beziehungen|s0 zwischen|s0 den|s0 beiden|s0 Nationen|s0 .|s0
+die|s1 jenige|s0 von|s0 Kar|s1 ra|s1 po|s0 @-@|s0 Polizei|s1 dienst|s0 nach|s0 hoher|s0 Geschwindigkeit|s0
+es|s0 wurde|s0 ein|s0 Anfang|s0 angenommen|s0 ,|s0 nachdem|s0 es|s0 in|s0 12|s0 km|s0 und|s0 in|s0 einem|s0 Land|s0 von|s0 70|s0 km|s0 in|s0 der|s0 Lage|s0 war|s0 ,|s0 in|s0 der|s0 H|s0 @-@|s0 Zone|s0 die|s0 Polizei|s0 im|s0 Pfeiler|s0 zu|s0 ent|s1 gehen|s0 .|s0
+in|s0 Kar|s1 ra|s1 si|s0 wurde|s0 heute|s0 morgen|s0 in|s0 Kar|s1 ra|s1 si|s0 die|s0 Verkehrs|s1 poli|s1 zei|s0 ein|s0 blau|s1 es|s1 isches|s0 Spiel|s0 gesetzt|s0 ,|s0 in|s0 dem|s0 sie|s0 sich|s0 auf|s0 12|s1 a|s0 ge|s0 ,|s0 so|s0 wie|s0 er|s0 es|s0 aus|s0 einem|s0 Dien|s1 stre|s1 isen|s0 hatte|s0 ,|s0 aus|s0 dem|s0 Büro|s0 ver|s1 sammeln|s0 .|s0
+die|s0 Polizei|s0 sagte|s0 damals|s0 ,|s0 daß|s0 es|s0 dann|s0 nicht|s0 gelungen|s0 ist|s0 ,|s0 die|s0 Bur|s0 @-@|s0 Bur|s1 ge|s1 s|s0 @-@|s0 Wei|s1 de|s0 weiter|s1 zugeben|s0 ,|s0 bevor|s0 sie|s0 ins|s0 Land|s1 land|s0 verwand|s1 elt|s0 werden|s0 ,|s0 wodurch|s0 die|s0 O|s0 ihre|s0 O|s0 aus|s0 dem|s0 Auge|s0 verlieren|s0 .|s0
+die|s0 Bezeichnung|s0 "|s0 The|s1 ater|s0 "|s1 is|s0 "|s0 wurde|s0 damals|s0 in|s0 einem|s0 Haus|s0 in|s0 einem|s0 Haus|s0 in|s0 einem|s0 Haus|s0 ein|s0 .|s0
+Kar|s1 ra|s1 li|s0 hat|s0 den|s0 Mann|s0 ,|s0 den|s0 man|s0 dem|s0 Auto|s1 fahren|s0 nicht|s0 entziehen|s0 kann|s0 .|s0
+er|s0 scheint|s0 in|s0 Kar|s1 ra|s1 li|s0 zu|s0 sein|s0 ,|s0 das|s0 den|s0 Gerichtshof|s0 am|s0 23.|s0 September|s0 nennt|s0 .|s0
+der|s0 Name|s0 wurde|s0 drei|s0 Monate|s0 lang|s0 besch|s1 lag|s1 nahm|s1 t|s0 .|s0
+George|s0 B|s1 ster|s1 ster|s0 Ange|s1 kla|s1 gten|s0 von|s0 N|s1 air|s1 n|s0 und|s0 Pit|s1 is|s0 er|s0 sieht|s0 vor|s0 .|s0
+es|s0 wird|s0 ein|s0 Mann|s0 vor|s0 Gericht|s0 gestellt|s0 ,|s0 der|s0 beschuldigt|s0 wird|s0 ,|s0 die|s0 Frauen|s0 in|s0 zweierlei|s0 Maß|s0 zu|s0 ver|s1 gewal|s0 .|s0
+George|s0 U|s1 ster|s0 ,|s0 28|s0 ,|s0 stand|s0 vor|s0 den|s0 Gebühren|s0 während|s0 einer|s0 Anhörung|s0 vor|s0 dem|s0 Hohen|s0 Gericht|s0 .|s0
+er|s0 soll|s0 eine|s0 Frau|s0 auf|s0 dem|s0 schottischen|s0 Werk|s0 in|s0 Pit|s1 t|s0 in|s0 Per|s1 th|s1 shire|s0 im|s0 April|s0 @-@|s0 7|s0 @-@|s0 2013|s0 eine|s0 Frau|s0 erheben|s0 .|s0
+es|s0 wird|s0 behauptet|s0 ,|s0 sie|s0 sei|s0 ihr|s0 Kontakt|s0 ,|s0 sie|s0 und|s0 unfähig|s0 ,|s0 die|s0 Zustimmung|s0 zu|s0 erteilen|s0 .|s0
+die|s1 ster|s1 ster|s0 wird|s0 dann|s0 beauftragt|s0 ,|s0 eine|s0 zweite|s0 Frau|s0 in|s0 der|s1 is|s0 se|s0 in|s0 N|s1 air|s1 n|s0 im|s0 Rahmen|s0 von|s0 Mai|s0 4|s0 ,|s0 2014|s0 in|s0 N|s1 air|s1 n|s0 einzu|s0 .|s0
+beurteilen|s0 Sie|s0 die|s0 Ra|s1 e|s0 ,|s0 die|s0 auf|s0 dem|s0 Hohen|s0 Gericht|s0 in|s0 Edinburgh|s0 ein|s0 Test|s1 dat|s1 um|s0 für|s0 November|s0 17|s0 festgelegt|s0 haben|s0 .|s0
+An|s0 der|s0 amerikanischen|s0 Regierung|s0 ,|s0 Menschenrechte|s0 und|s0 Menschenrechte|s0 aufzunehmen|s0 .|s0
+die|s1 jenige|s0 von|s0 Gewerkschaften|s0 ,|s0 die|s0 Arbeitsplätze|s0 schaffen|s0 ,|s0 sagt|s0 ,|s0 das|s0 heißt|s0 ,|s0 der|s0 P|s1 hau|s1 ter|s1 is|s1 ter|s0 ,|s0 der|s0 den|s0 Vorsitz|s0 des|s0 Führ|s1 ers|s1 dienstes|s1 ers|s0 hat|s0 .|s0
+aus|s0 diesem|s0 Grund|s0 bin|s0 ich|s0 stolz|s0 ,|s0 daß|s0 John|s0 H|s0 das|s0 Statut|s1 gesetz|s1 ter|s1 ungs|s0 @-@|s0 Gesetz|s1 gesetz|s0 eingeführt|s0 hat|s0 .|s0
+durch|s0 diesen|s0 Verstoß|s0 gegen|s0 die|s0 Gesetzgebung|s0 werden|s0 den|s0 Arbeitnehmern|s0 die|s0 gleichen|s0 rechtlichen|s0 Möglichkeiten|s0 zur|s0 Vereinheitlichung|s0 der|s0 Union|s0 eingeräumt|s0 wie|s0 für|s0 andere|s0 Formen|s0 der|s0 Diskriminierung|s0 ,|s0 damit|s0 die|s0 gewerk|s1 schaftlichen|s0 Kräfte|s0 in|s0 ihrem|s0 eigenen|s0 Namen|s0 bleiben|s0 .|s0
+die|s0 Änderung|s0 des|s0 Nationalen|s0 Aktions|s1 gesetzes|s0 ,|s0 das|s0 die|s0 Diskriminierung|s0 von|s0 Arbeitnehmern|s0 ermöglicht|s0 ,|s0 die|s0 sich|s0 in|s0 den|s0 Zivil|s0 der|s0 Zivil|s0 vor|s0 Gericht|s0 vor|s0 Gericht|s0 bringen|s0 -|s0 und|s0 Schaden|s1 ser|s1 satz|s0 und|s0 Schaden|s0 zu|s0 sammeln|s0 -|s0 ist|s0 eine|s0 solide|s0 und|s0 notwendige|s0 Initiative|s0 .|s0
+es|s0 handelt|s0 sich|s0 jedoch|s0 keineswegs|s0 um|s0 eine|s0 radikale|s0 Initiative|s0 -|s0 zumindest|s0 durch|s0 amerikanische|s0 Normen|s0 .|s0
+der|s0 beste|s0 Weg|s0 ,|s0 um|s0 zu|s0 verstehen|s0 ,|s0 was|s0 von|s0 gemeinsam|s0 ist|s0 ,|s0 ist|s0 der|s0 beste|s0 Weg|s0 ,|s0 um|s0 zu|s0 verstehen|s0 ,|s0 was|s0 mit|s0 ihren|s0 Rechtsvorschriften|s0 verbunden|s0 ist|s0 ,|s0 besteht|s0 darin|s0 ,|s0 mit|s0 einer|s0 sehr|s0 amerikanischen|s0 Idee|s0 fortzu|s0 .|s0
+trotz|s0 der|s0 Batter|s1 ie|s0 ,|s0 die|s0 die|s0 Gewerkschaften|s0 in|s0 den|s0 letzten|s0 Jahren|s0 begangen|s0 haben|s0 -|s0 in|s0 den|s0 Händen|s0 der|s0 Amerikaner|s0 und|s0 der|s0 Staaten|s0 -|s0 haben|s0 die|s0 Amerikaner|s0 weltweit|s0 die|s0 Länder|s0 ermutigt|s0 ,|s0 die|s0 Lab|s1 or|s1 rechte|s0 zu|s0 erfassen|s0 ,|s0 zu|s0 erweitern|s0 und|s0 zu|s0 achten|s0 .|s0
+es|s0 gab|s0 eine|s0 Zeit|s0 ,|s0 in|s0 der|s0 die|s0 Millionen|s0 Amerikaner|s0 gedenken|s0 ,|s0 als|s0 dieses|s0 Land|s0 die|s0 Demokratie|s0 ,|s0 die|s0 Redefreiheit|s0 ,|s0 die|s0 Pressefreiheit|s0 und|s0 das|s0 Recht|s0 auf|s0 ein|s0 ähnliches|s1 gel|s1 t|s0 auf|s1 nahm|s0 .|s0
+es|s0 ist|s0 sich|s0 vollkommen|s0 bewußt|s0 ,|s0 daß|s0 die|s0 Arbeitnehmer|s0 und|s0 ihre|s0 Gewerkschaften|s0 bei|s0 der|s0 Gestaltung|s0 des|s0 neuen|s0 Japan|s0 eine|s0 Sprache|s0 spielen|s0 konnten|s0 ,|s0 die|s0 ausdrücklich|s0 anerkannt|s0 hat|s0 ,|s0 daß|s0 das|s0 Recht|s0 der|s0 Arbeitnehmer|s0 auf|s0 ein|s0 solches|s0 Recht|s0 und|s0 ihre|s0 Gesamtheit|s0 gewährleistet|s0 ist|s0 .|s0
+als|s0 die|s0 Vereinigten|s0 Staaten|s0 Deutschland|s0 nach|s0 dem|s0 Zweiten|s0 Weltkrieg|s0 besetzten|s0 haben|s0 ,|s0 haben|s0 General|s0 D|s1 wi|s1 m|s0 David|s0 Eisen|s1 ho|s1 m|s0 und|s0 seine|s0 Unterstützung|s0 die|s0 Deutschen|s0 dazu|s0 aufgefordert|s0 ,|s0 eine|s0 Verfassung|s0 zu|s0 schreiben|s0 ,|s0 die|s0 ihr|s0 versichern|s0 könnte|s0 ,|s0 daß|s0 das|s0 Hitler|s0 @-@|s0 Büro|s0 durch|s0 Demokratie|s0 ersetzt|s0 wurde|s0 .|s0
+die|s0 Deutschen|s0 müssen|s0 sich|s0 verpflichten|s0 ,|s0 sich|s0 in|s0 der|s0 neuen|s0 Nation|s0 zu|s0 Wort|s0 kommen|s0 zu|s0 lassen|s0 ,|s0 die|s0 Deutschen|s0 haben|s0 eine|s0 Bestimmung|s0 aufgenommen|s0 ,|s0 die|s0 ausdrücklich|s0 das|s0 Recht|s0 ,|s0 das|s0 Recht|s0 zu|s0 bilden|s0 ,|s0 die|s0 Arbeits-|s0 und|s0 Wirtschafts|s1 verhältnisse|s0 zu|s0 schützen|s0 und|s0 zu|s0 verbessern|s0 ,|s0 für|s0 jeden|s0 einzelnen|s0 und|s0 für|s0 jeden|s0 Beruf|s0 garantiert|s0 .|s0
+Abkommen|s0 ,|s0 die|s0 dieses|s0 Recht|s0 einschränken|s0 oder|s0 auf|s0 dieses|s0 Recht|s0 abzielen|s0 ,|s0 sind|s0 es|s0 ,|s0 sie|s0 zu|s0 schließen|s0 ,|s0 und|s0 Maßnahmen|s0 ,|s0 die|s0 darauf|s0 abzielen|s0 ,|s0 sind|s0 un|s1 gesetzlich|s0 .|s0
+als|s0 der|s0 frühere|s0 An|s0 der|s0 Präsidenten|s0 den|s0 Vorsitz|s0 der|s0 Internationalen|s0 Kommission|s0 für|s0 Menschenrechte|s0 unter|s1 nahm|s0 ,|s0 in|s0 der|s0 die|s0 Allgemeine|s0 Erklärung|s0 der|s0 Menschenrechte|s0 ,|s0 die|s0 von|s0 den|s0 Vereinten|s0 Nationen|s0 als|s0 globaler|s0 Ort|s0 übernommen|s0 wird|s0 ,|s0 verabschiedet|s0 wird|s0 ,|s0 gewährleistet|s0 die|s0 Tatsache|s0 ,|s0 daß|s0 jeder|s0 Mensch|s0 das|s0 Recht|s0 hat|s0 ,|s0 sich|s0 um|s0 den|s0 Schutz|s0 seiner|s0 Interessen|s0 zu|s0 beteiligen|s0 .|s0
+nach|s0 den|s0 Generationen|s0 akzep|s0 die|s0 Amerikaner|s0 die|s0 grundlegende|s0 Voraussetzung|s0 ,|s0 daß|s0 Lab|s1 or|s1 rechte|s0 Menschenrechte|s0 sind|s0 .|s0
+als|s0 dieses|s0 Land|s0 in|s0 anderen|s0 Ländern|s0 die|s0 Bürger|s0 der|s0 Bürger|s0 und|s0 demokratischen|s0 Gesellschaften|s0 be|s1 fand|s0 ,|s0 haben|s0 die|s0 Amerikaner|s0 erklärt|s0 ,|s0 das|s0 Recht|s0 auf|s0 eine|s0 Gewerk|s1 schaft|s0 sei|s0 das|s0 Recht|s0 auf|s0 Kolle|s1 ktiv|s1 verhandlungen|s0 als|s0 gleichwer|s1 tiger|s0 Partner|s0 mit|s0 Unternehmen|s0 und|s0 Behörden|s0 zu|s0 schützen|s0 .|s0
+mit|s0 diesen|s0 Rechten|s0 in|s0 Amerika|s0 ist|s0 es|s0 nun|s0 rat|s0 ,|s0 in|s0 der|s0 Tat|s0 das|s0 amerikanische|s0 I|s1 deal|s0 zu|s0 verstehen|s0 ,|s0 daß|s0 die|s0 Arbeitnehmer|s0 ein|s0 Recht|s0 darauf|s0 haben|s0 müssen|s0 ,|s0 sich|s0 in|s0 einer|s0 freien|s0 und|s0 offenen|s0 Gesellschaft|s0 Gehör|s0 zu|s0 verschaffen|s0 .|s0
+wie|s0 der|s0 Bericht|s0 von|s0 Ende|s0 Martin|s0 sagte|s0 ,|s0 sagte|s0 er|s0 sich|s0 vor|s0 50|s0 Jahren|s0
+die|s0 Geschichte|s0 ist|s0 ein|s0 großer|s0 Teil|s0 .|s0
+jetzt|s0 weiß|s0 jeder|s0 ,|s0 daß|s0 die|s0 Lab|s1 our|s1 bewegung|s0 nicht|s0 die|s0 Kraft|s0 der|s0 Nation|s0 ,|s0 sondern|s0 die|s0 Erweiterung|s0 war|s0 .|s0
+durch|s0 die|s0 Anhebung|s0 der|s0 Lebens|s0 der|s0 Leben|s0 von|s0 Millionen|s0 von|s0 Millionen|s0 wird|s0 versucht|s0 ,|s0 den|s0 Markt|s0 für|s0 die|s0 Industrie|s0 deutlich|s0 zu|s0 gestalten|s0 und|s0 die|s0 gesamte|s0 Nation|s0 wieder|s0 auf|s0 die|s0 Produktions|s1 stufen|s0 zurück|s0 zu|s0 nehmen|s0 .|s0
+wer|s0 Lab|s0 an|s1 greift|s0 ,|s0 verliert|s0 diese|s0 einfache|s0 ,|s0 aber|s0 Geschichte|s0 .|s0
+die|s0 Geschichte|s0 ist|s0 ,|s0 wie|s0 wir|s0 sollten|s0 .|s0
+die|s0 formelle|s0 Anerkennung|s0 der|s0 Lab|s1 or|s1 rechte|s1 rechte|s0 und|s0 die|s0 Ausweitung|s0 der|s0 Bürgerrechte|s0 zur|s0 Verhinderung|s0 von|s0 Diskriminierung|s0 gegen|s0 Lab|s0 ist|s0 längst|s0 über|s1 fällig|s0 .|s0
+das|s0 gleiche|s0 und|s0 die|s0 John|s0 @-@|s0 Werk|s0 sind|s0 die|s0 Ide|s1 ale|s0 ,|s0 die|s0 historisch|s0 größer|s0 geworden|s0 sind|s0 und|s0 das|s0 Versprechen|s0 einer|s0 Demokratie|s0 erfüllen|s0 .|s0
+das|s0 Urteil|s0 über|s0 das|s0 endgültige|s1 sti|s1 sche|s0 B|s1 löcke|s0 ,|s0 das|s0 alle|s0 Abtreibung|s0 beenden|s0 könnte|s0 ?|s0
+ein|s0 föder|s1 alistischer|s0 Richter|s0 am|s0 Sonntag|s0 ,|s0 in|s0 dem|s0 die|s0 Durchsetzung|s0 eines|s0 Gesetzes|s1 rechts|s0 blockiert|s0 wird|s0 ,|s0 das|s0 befürwortet|s0 wird|s0 ,|s0 hätte|s0 alle|s0 fünf|s0 Abtrei|s1 bungen|s0 in|s0 den|s0 Staat|s0 aufgehoben|s0 .|s0
+die|s0 Maßnahme|s0 ,|s0 die|s0 im|s0 Juni|s0 für|s0 den|s0 Sport|s0 im|s0 Namen|s0 des|s0 Seeverkehrs|s0 unterzeichnet|s0 wurde|s0 ,|s0 bedeutet|s0 eine|s0 Folge|s1 wirkung|s0 &cln;|s0 1.|s0 Ärzte|s0 ,|s0 die|s0 in|s0 einem|s0 Krankenh|s1 aus|s0 in|s0 30|s0 Mei|s1 len|s0 ihren|s0 Wohn|s1 sitz|s0 haben|s0 ,|s0 um|s0 in|s0 einem|s0 Krankenh|s1 aus|s0 ihre|s0 Privilegi|s1 en|s0 zu|s0 erhalten|s0 .|s0
+das|s0 Urteil|s0 des|s0 Rich|s1 ters|s0 bedeutet|s0 jedoch|s0 ,|s0 daß|s0 Ärzte|s0 vorläufig|s0 weiterhin|s0 rechtmäßig|s0 sein|s0 können|s0 ,|s0 wenn|s0 sie|s0 solche|s0 Privilegi|s1 en|s0 suchen|s0 .|s0
+es|s0 wird|s0 zugelassen|s0 werden|s0 ,|s0 daß|s0 Pla|s0 Pla|s1 k|s1 ali|s1 ktionen|s0 in|s0 ihrem|s0 Bemühen|s0 ,|s0 die|s0 Privilegi|s1 en|s0 zu|s0 erhalten|s0 ,|s0 während|s0 sie|s0 ihre|s0 Bemühungen|s0 fortsetzen|s0 ,|s0 in|s0 die|s0 Lage|s0 zu|s0 versetzen|s0 ,|s0 während|s0 die|s0 Bundes|s0 von|s0 John|s0 de|s1 ur|s0 endgültig|s0 eine|s0 Entscheidung|s0 getroffen|s0 hat|s0 .|s0
+in|s0 einem|s0 Monat|s0 wird|s0 eine|s0 Anhörung|s0 für|s0 den|s0 Richter|s0 geplant|s0 sein|s0 ,|s0 um|s0 ein|s0 dauer|s1 haftes|s1 res|s0 Urteil|s0 über|s0 das|s0 Gesetz|s0 zu|s0 treffen|s0 .|s0
+die|s1 jenige|s1 z|s0 von|s0 Schwangerschafts|s1 ab|s1 brü|s1 chen|s0 ,|s0 die|s0 den|s0 Beschluß|s0 leiten|s0 ,|s0 den|s0 letzten|s0 in|s0 einem|s0 Akt|s0 von|s0 Ur|s1 teilen|s0 gegen|s0 ähnliche|s0 Maßnahmen|s0 ,|s0 er|s0 sagte|s0 ,|s0 Ärzte|s0 mehr|s0 Zeit|s0 zu|s0 geben|s0 ,|s0 um|s1 ge|s1 kehr|s1 te|s0 Privilegi|s1 en|s0 zu|s0 suchen|s0 .|s0
+das|s0 Urteil|s0 über|s0 das|s0 Recht|s0 gewährleistet|s0 ,|s0 daß|s0 die|s0 Frauen|s0 sicher|s0 sein|s0 können|s0 ,|s0 daß|s0 sie|s0 ihre|s0 Gesundheit|s0 und|s0 ihre|s0 Rechte|s0 wahrnehmen|s0 wollen|s0 ,|s0 indem|s0 sie|s0 von|s0 Nord|s0 @-@|s0 up|s0 ,|s0 Präsidenten|s0 und|s0 Ober|s1 haupt|s1 Exekutive|s0 ,|s0 wenn|s0 sie|s0 das|s0 Recht|s0 nennen|s0 ,|s0 im|s0 Namen|s0 von|s0 drei|s0 der|s0 fünf|s0 Personen|s0 des|s0 Staates|s0 das|s0 Recht|s0 blockieren|s0 .|s0
+es|s0 war|s0 nicht|s0 sofort|s0 klar|s0 ,|s0 ob|s0 das|s0 Urteil|s0 auf|s0 Ärzte|s0 aus|s0 den|s0 beiden|s0 Fällen|s0 verhängt|s0 wurde|s0 ,|s0 die|s0 nicht|s0 in|s0 dem|s0 Maße|s0 fest|s1 gefahren|s0 sind|s0 und|s0 auch|s0 Vorrechte|s0 beantragt|s0 haben|s0 .|s0
+in|s0 elf|s0 Staaten|s0 ,|s0 die|s0 ähnliche|s0 Gesetze|s0 erlassen|s0 haben|s0 ,|s0 befinden|s0 sich|s0 die|s0 Gerichte|s0 vor|s0 kurzem|s0 über|s0 un|s0 verfassungs|s1 widri|s0 .|s0
+Schlüssel|s0 für|s0 ein|s0 Gesetz|s0 ,|s0 das|s0 am|s0 meisten|s0 in|s0 diesem|s0 Staat|s0 abgesch|s1 altet|s0 werden|s0 würde|s0 ,|s0 wurden|s0 am|s0 Freitag|s0 von|s0 einem|s0 Bundes|s1 rat|s1 ur|s0 blockiert|s0 .|s0
+die|s0 Rechte|s1 schutz|s1 rechte|s0 ,|s0 die|s0 sich|s0 zusammen|s0 mit|s0 dem|s0 amerikanischen|s0 College|s0 @-@|s1 et|s1 ri|s1 schen|s0 und|s0 Gy|s1 nec|s1 k|s0 und|s0 dem|s0 amerikanischen|s0 Regierung|s1 verb|s1 and|s0 nieder|s1 schlagen|s0 ,|s0 sagen|s0 ,|s0 daß|s0 die|s0 Privilegi|s1 en|s1 gesetze|s0 den|s0 Är|s1 zten|s0 medizin|s1 isch|s0 unnötige|s0 Anforderungen|s0 auferlegen|s0 .|s0
+bei|s0 der|s0 Abtreibung|s0 geht|s0 es|s0 darum|s0 ,|s0 daß|s0 die|s0 Maßnahmen|s0 zum|s0 Schutz|s0 der|s0 Gesundheit|s0 der|s0 Frauen|s0 dienen|s0 ,|s0 die|s0 jedoch|s0 auch|s0 ihre|s0 Wirkung|s0 zum|s0 Ausdruck|s0 gebracht|s0 haben|s0 .|s0
+nur|s0 ein|s0 Arzt|s0 ,|s0 der|s0 in|s0 seinem|s0 Besitz|s1 er|s0 sitzt|s0 ,|s0 hat|s0 die|s0 Privilegi|s1 en|s0 ,|s0 die|s0 Rechte|s0 der|s0 Re|s1 produ|s1 ktions|s0 .|s0
+wenn|s0 alle|s0 anderen|s0 Ärzte|s0 in|s0 diesem|s0 Staat|s0 gezwungen|s0 werden|s0 ,|s0 ihre|s0 Geschäfte|s0 zu|s0 stoppen|s0 ,|s0 dann|s0 würde|s0 der|s0 Arzt|s0 ,|s0 der|s0 für|s0 seine|s0 Sicherheit|s0 ist|s0 ,|s0 damit|s0 aufhören|s0 ,|s0 das|s0 Verfahren|s0 durchzuführen|s0 ,|s0 was|s0 die|s0 Fraktion|s0 gesagt|s0 hat|s0 .|s0
+mit|s0 dem|s0 Argument|s0 gegen|s0 das|s0 Urteil|s0 sagten|s0 die|s0 Beamten|s0 ,|s0 daß|s0 Ärzte|s0 nicht|s0 bestraft|s0 werden|s0 ,|s0 während|s0 ihre|s0 Anträge|s0 auf|s0 Privilegi|s1 en|s0 an|s1 hängi|s1 g|s0 sind|s0 .|s0
+eine|s0 verspä|s1 tete|s0 Diagnose|s0 und|s0 Unfähigkeit|s0 ,|s0 die|s0 beste|s0 Behandlung|s0 zugänglich|s0 zu|s0 machen|s0 ,|s0 bedeutet|s0 Öl|s0 im|s0 ländlichen|s0 Raum|s0 mehr|s0 .|s0
+Angel|s1 ina|s0 Jo|s1 lie|s0 und|s0 ihr|s0 ,|s0 Herr|s0 Minister|s0 ,|s0 haben|s0 ihre|s0 spä|s1 te|s0 Mutter|s0 ,|s0 die|s0 im|s0 Jahre|s0 2007|s0 an|s0 O|s1 vari|s1 an|s0 Krebs|s0 gestorben|s0 ist|s0 ,|s0 in|s0 einem|s0 Lob|s0 ein|s0 Lob|s0 .|s0
+die|s0 Frauen|s0 ,|s0 die|s0 in|s0 ländlichen|s0 Australien|s0 leben|s0 ,|s0 bergen|s0 die|s0 Gefahr|s0 ,|s0 daß|s0 sie|s0 von|s0 o|s1 vari|s1 an|s0 Krebs|s0 sterben|s0 .|s0
+die|s0 Forscher|s0 haben|s0 im|s0 Jahr|s0 2005|s0 medizin|s0 medizinische|s0 Auf|s1 zeichnungen|s0 von|s0 Frauen|s0 mit|s0 o|s1 vari|s1 an|s0 Krebs|s0 analysiert|s0 ,|s0 während|s0 fünf|s0 Jahre|s0 nach|s0 der|s0 Diagnose|s0 nur|s0 35|s0 Prozent|s0 le|s1 bten|s0 .|s0
+in|s0 einem|s0 Land|s0 ,|s0 in|s0 Jordanien|s0 ,|s0 in|s0 den|s0 Kat|s1 IM|s1 R|s0 @-@|s0 Büro|s1 for|s1 sch|s1 ungsinstitu|s1 t|s0 ,|s0 haben|s0 die|s0 Menschen|s0 in|s0 den|s0 Regionen|s1 -|s0 und|s0 entle|s1 genen|s0 Gebieten|s0 des|s0 Staates|s0 in|s0 der|s0 Studie|s0 etwa|s0 20|s0 %|s0 häufiger|s0 sterben|s0 als|s0 in|s0 städtischen|s0 Gebieten|s0 .|s0
+der|s0 klein|s1 ste|s0 Einsatz|s0 neuer|s0 Arzneimittel|s0 kann|s0 L|s0 @-@|s0 L|s1 un|s1 gen|s1 -|s0 und|s0 Schw|s1 inde|s1 l|s1 erk|s1 rank|s1 ungen|s0 fahren|s0 .|s0
+die|s0 Forsch|s0 in|s0 den|s0 Forsch|s0 der|s0 Frauen|s0 finden|s0 in|s0 sieben|s0 Jahren|s0 statt|s0 .|s0
+Dr.|s0 Jordanien|s0 sagte|s0 zum|s0 Zeitpunkt|s0 der|s0 Diagno|s1 sti|s0 ,|s0 der|s0 o|s1 vari|s1 an|s0 Krebs|s1 art|s0 ,|s0 eine|s0 Frau|s0 im|s0 Alter|s0 ,|s0 die|s0 über|s0 die|s0 bestehenden|s0 Krankheiten|s0 und|s0 den|s0 Status|s0 hinaus|s0 auch|s0 die|s0 Über|s1 leben|s1 schancen|s0 hat|s0 .|s0
+ältere|s0 Frauen|s0 und|s0 Personen|s0 ,|s0 deren|s0 Kre|s1 bser|s1 krankungen|s0 bei|s0 der|s0 Diagno|s1 sen|s1 diagno|s0 fortgeschrit|s1 ten|s0 waren|s0 ,|s0 hatten|s0 die|s0 ärmsten|s0 Über|s1 lebens|s1 raten|s0 .|s0
+diejenigen|s0 ,|s0 die|s0 in|s0 den|s0 Regionen|s1 -|s0 und|s0 entle|s1 genen|s0 Gebieten|s0 des|s0 Staates|s0 leben|s0 ,|s0 waren|s0 etwa|s0 20|s0 %|s0 höher|s0 als|s0 die|s0 in|s0 städtischen|s0 Gebieten|s0 .|s0
+obwohl|s0 die|s0 Studie|s0 nicht|s0 vorgesehen|s0 war|s0 ,|s0 warum|s0 Frauen|s0 ,|s0 die|s0 außerhalb|s0 der|s0 Stadt|s0 leben|s0 ,|s0 eher|s0 an|s0 o|s1 vari|s1 an|s0 Krebs|s0 stir|s0 haben|s0 ,|s0 hatte|s0 Dr.|s0 Jordanien|s0 eine|s0 verspä|s1 tete|s0 Diagnose|s0 vorgeschlagen|s0 ,|s0 und|s0 die|s0 Unfähigkeit|s0 ,|s0 Zugang|s0 zu|s0 optim|s1 aler|s0 Behandlung|s0 zu|s0 erhalten|s0 ,|s0 könnte|s0 Faktoren|s0 sein|s0 .|s0
+diese|s0 Krankheit|s0 wird|s0 am|s0 besten|s0 durch|s0 eine|s0 eigene|s0 Ök|s0 behandelt|s0 ,|s0 und|s0 sie|s0 wird|s0 in|s0 erster|s0 Linie|s0 in|s0 Groß|s0 von|s0 Groß|s1 städten|s0 betrieben|s0 ,|s0 wie|s0 sie|s0 gesagt|s0 hat|s0 .|s0
+trotz|s0 der|s0 Verbesserung|s0 der|s0 T|s1 el|s1 er|s1 medi|s1 zin|s1 dienste|s0 für|s0 die|s0 Entfernung|s0 der|s0 Fern|s1 ab|s1 satz|s0 hat|s0 sie|s0 sich|s0 verstärkt|s0 im|s0 Rahmen|s0 des|s0 Stoff|s1 verkehrs|s0 von|s0 Fach|s1 leuten|s0 darum|s0 bemüht|s0 ,|s0 den|s0 Spezi|s1 alisten|s0 die|s0 Behandlung|s0 von|s0 Frauen|s0 näher|s0 zu|s0 bringen|s0 und|s0 die|s0 Menschen|s0 bei|s0 der|s0 Behandlung|s0 von|s0 ihren|s0 Gemeinschaften|s0 zu|s0 unterstützen|s0 .|s0
+Dr.|s0 Jordanien|s0 sagte|s0 ungeachtet|s0 des|s0 geographischen|s0 Status|s0 ,|s0 daß|s0 die|s0 Studie|s0 über|s0 das|s0 Überleben|s0 von|s0 Frauen|s0 mit|s0 o|s1 vari|s1 an|s0 Krebs|s0 schlecht|s0 sei|s0 und|s0 die|s0 Notwendigkeit|s0 besserer|s0 Behandlungs|s1 -|s0 und|s0 Präventions|s1 strategien|s0 stärkt|s0 .|s0
+die|s0 Forschung|s0 ,|s0 die|s0 von|s0 Rio|s0 T|s1 into|s0 nach|s0 Con|s1 tern|s0 Krebs|s0 finanziert|s0 wird|s0 ,|s0 wird|s0 heute|s0 in|s0 Australien|s0 veröffentlicht|s0 .|s0
+im|s0 März|s0 2012|s0 hieß|s0 es|s0 in|s0 33|s0 Jahren|s0 ,|s0 daß|s0 junge|s0 Gold|s1 st|s1 rei|s0 El|s1 kt|s0 Ne|s1 a|s0 eine|s0 aggressive|s0 Form|s0 von|s0 Tier|s1 krankheiten|s0 sei|s0 .|s0
+in|s0 den|s0 Heimat|s1 besit|s0 fallenden|s0 Zentren|s0
+mit|s0 einem|s0 besonderen|s0 Rückgang|s0 der|s0 Zahl|s0 der|s0 im|s0 Alter|s0 von|s0 35|s0 unter|s0 35|s0 Jahren|s0 zu|s0 er|s1 greifenden|s1 kenden|s0 Wohn|s1 ungen|s0 könnte|s0 dazu|s0 führen|s0 ,|s0 daß|s0 in|s0 einem|s0 Jahr|s0 ,|s0 in|s0 dem|s0 die|s0 jungen|s0 Verbraucher|s0 in|s0 den|s0 Mittelpunkt|s0 der|s0 Ber|s1 ge|s1 gruppe|s1 gruppe|s0 stehen|s0 ,|s0 und|s0 gemäß|s0 der|s0 von|s0 der|s0 Financial|s0 Times|s0 gemel|s1 deten|s0 Studie|s0 die|s0 Haup|s0 Alters|s1 gruppe|s1 gruppe|s0 verlieren|s0 .|s0
+der|s0 Bericht|s0 besagt|s0 ,|s0 daß|s0 die|s0 Bürger|s0 durchschnittlich|s0 55|s0 %|s0 der|s0 Summe|s0 ausgeben|s0 ,|s0 die|s0 die|s0 mit|s0 ihren|s0 Wohn|s1 ungen|s0 für|s0 ihren|s0 Betrieb|s0 ausgeben|s0 .|s0
+er|s0 hat|s0 den|s0 Anstieg|s0 der|s0 Menschen|s0 ,|s0 die|s0 in|s0 hoch|s1 städtischen|s1 ierten|s0 Gebieten|s0 leben|s0 ,|s0 nicht|s0 im|s0 geringsten|s0 an|s0 ,|s0 wie|s0 sie|s0 sich|s0 vor|s0 Ort|s0 vor|s0 Ort|s0 und|s0 als|s0 andere|s0 Faktoren|s0 befinden|s0 ,|s0 die|s0 die|s0 Industrie|s0 bedrohen|s0 ,|s0 und|s0 die|s0 sich|s0 auf|s0 den|s0 Verkauf|s0 pro|s0 Jahr|s0 schätzungs|s1 weise|s0 auf|s0 5|s0 Mrd.|s0 Pfund|s0 beläuft|s0 .|s0
+mehr|s0 und|s0 mehr|s0 London|s0 ,|s0 wo|s0 die|s0 Heimat|s1 besit|s1 z|s0 in|s0 sechs|s0 Jahren|s0 von|s0 61|s0 %|s0 auf|s0 43|s0 %|s0 gefallen|s0 ist|s0 ,|s0 hat|s0 die|s0 niedrigsten|s0 Ausgaben|s0 Großbritanniens|s0 pro|s0 Haushalt|s0 für|s0 Produkte|s0 .|s0
+die|s0 Operation|s0 A|s0 und|s0 A|s0 der|s0 Hor|s1 st|s0 @-@|s0 Gesellschaft|s0 sagte|s0 ,|s0 daß|s0 das|s0 Eigentum|s0 oder|s0 der|s0 Mangel|s0 an|s0 Ort|s0 nicht|s0 bedeutet|s0 ,|s0 daß|s0 Menschen|s0 Pflanzen|s0 nicht|s0 wachsen|s0 konnten|s0 .|s0
+der|s0 Che|s1 f|s0 Bar|s1 ter|s0 ,|s0 der|s0 Che|s0 der|s0 Che|s1 f|s1 st|s1 ür|s1 me|s0 an|s0 den|s0 R|s1 ort|s0 ,|s0 sagte|s0 ,|s0 daß|s0 zum|s0 Beispiel|s0 ein|s0 solches|s0 Unternehmen|s0 insbesondere|s0 die|s0 Bürger|s1 meis|s1 ter|s0 ist|s0 ,|s0 die|s0 ihre|s0 Werke|s0 verlassen|s0 können|s0 .|s0
+in|s0 dem|s0 Bericht|s1 stext|s0 heißt|s0 es|s0 ,|s0 daß|s0 die|s0 Zeit|s0 zwischen|s0 1997|s0 und|s0 2005|s0 in|s0 dem|s0 Maße|s0 ,|s0 in|s0 dem|s0 der|s0 Einzel|s1 handel|s1 sektor|s1 sektor|s0 das|s0 Alter|s0 von|s0 Einzel|s1 handel|s0 und|s0 den|s0 wirtschaftlichen|s0 Wohlstand|s0 erhöht|s0 hat|s0 ,|s0 seit|s0 Ende|s0 der|s0 8|s1 0er|s0 Jahre|s0 auf|s0 die|s0 90er|s0 Jahre|s0 gestiegen|s0 ist|s0 .|s0
+auch|s0 in|s0 diesem|s0 Jahr|s0 hat|s0 sich|s0 der|s0 Markt|s0 verbessert|s0 ,|s0 weil|s0 im|s0 März|s0 und|s0 April|s0 letzten|s0 Jahres|s0 nach|s0 den|s0 Bedingungen|s0 ein|s0 besseres|s0 Wet|s1 ter|s0 stattgefunden|s0 hat|s0 .|s0
+in|s0 Pakistan|s0 hat|s0 die|s0 Protest|s1 bewegung|s0 durch|s0 einen|s0 politischen|s0 ,|s1 aum|s0 und|s0 die|s0 Regierung|s1 sch|s1 ef|s0 ,|s0 der|s0 die|s0 I|s1 ron|s1 ie|s0 des|s0 ir|s1 ren|s1 haften|s1 ierten|s0 ,|s1 haltens|s1 s|s0 geführt|s0 hat|s0 .|s0
+in|s0 der|s0 Hauptstadt|s0 des|s0 Groß|s1 kapitals|s0 haben|s0 etwa|s0 1000|s0 Demonstranten|s0 den|s0 Sender|s0 Fernseh|s0 ,|s0 P|s1 TV|s0 .|s0
+der|s0 Informations|s1 minister|s0 Per|s1 v|s1 ai|s1 z|s0 Ras|s1 mus|s0 sagte|s0 jedoch|s0 ,|s0 daß|s0 es|s0 Soldaten|s0 gelungen|s0 sei|s0 ,|s0 die|s0 Rück|s1 er|s1 stattung|s0 zu|s0 zwingen|s0 .|s0
+das|s0 Fernseh|s1 sender|s1 ger|s0 hat|s1 te|s0 den|s0 Rundfun|s1 k|s0 um|s0 etwa|s0 40|s0 Minuten|s0 ein|s0 ,|s0 aber|s0 sie|s0 hat|s0 sich|s0 seither|s0 wiederholt|s0 .|s0
+gleichzeitig|s0 versu|s1 chten|s0 die|s0 Demonstranten|s0 ,|s0 den|s0 offiziellen|s0 Willen|s0 von|s0 Premierminister|s0 Na|s1 wa|s1 z|s0 Shar|s1 if|s0 zu|s0 erreichen|s0 .|s0
+ungefähr|s0 ein|s0 einziges|s0 Mal|s0 ,|s0 das|s0 sind|s0 Sicherheits|s0 ,|s0 die|s1 jenige|s0 mit|s0 Sicherheit|s0 ,|s0 bewaffne|s1 te|s0 Sicherheits|s0 .|s0
+die|s0 Polizei|s0 hat|s0 Gas|s0 eingesetzt|s0 .|s0
+die|s0 Demonstranten|s0 forderten|s0 Shar|s1 if|s0 ,|s0 was|s0 er|s0 abgelehnt|s0 hat|s0 .|s0
+das|s0 Pakistan|s0 hat|s0 eine|s0 politische|s0 Lösung|s0 des|s0 Konflikts|s0 ohne|s0 Verzögerung|s0 und|s0 ohne|s0 Gewalt|s0 der|s0 Gewalt|s0 gefordert|s0 .|s0
+nach|s0 einem|s0 Treffen|s0 am|s0 Sonn|s1 tag|s1 abend|s1 abend|s0 hat|s0 das|s0 Militär|s0 ,|s0 das|s0 den|s0 Kontakt|s0 aufgenommen|s0 hat|s0 ,|s0 der|s0 Schutz|s0 der|s0 Sicherheit|s0 des|s0 Staates|s0 verpflichtet|s0 .|s0
+das|s0 Militär|s0 spielt|s0 eine|s0 wichtige|s0 Rolle|s0 in|s0 Pakistan|s0 und|s0 hat|s0 in|s0 der|s0 Vergangenheit|s0 mehrfach|s0 Macht|s0 ausgeübt|s0 .|s0
+der|s0 Oppositions|s1 politi|s1 ker|s0 Im|s1 ran|s0 beschuldigt|s0 Ministerpräsident|s0 Shar|s0 Shar|s1 if|s0 die|s0 Wahl|s0 der|s0 Parlamentswahlen|s0 im|s0 Mai|s0 letzten|s0 Jahres|s0 .|s0
diff --git a/tests/factors/setup.sh b/tests/factors/setup.sh
new file mode 100755
index 0000000..7e32b3a
--- /dev/null
+++ b/tests/factors/setup.sh
@@ -0,0 +1,25 @@
+#!/bin/bash -x
+
+#####################################################################
+# AUTHOR: pedrodiascoelho
+#####################################################################
+
+# Exit on error
+set -e
+
+# Test code goes here
+test -f $MRT_MODELS/factors/model.npz || exit 1
+test -f $MRT_MODELS/factors/model.npz.decoder.yml || exit 1
+test -f $MRT_MODELS/factors/vocab.en.fsv || exit 1
+test -f $MRT_MODELS/factors/vocab.de.fsv || exit 1
+
+test -f $MRT_DATA/europarl.de-en/toy.bpe.en || exit 1
+test -f $MRT_DATA/europarl.de-en/toy.bpe.de || exit 1
+
+test -s toy.bpe.fact.en || cat $MRT_DATA/europarl.de-en/toy.bpe.en | \
+ sed 's/\(\s\|$\)/|s0 /g;s/@@|s0/|s1/g;s/\s*$//' > toy.bpe.fact.en
+test -s toy.bpe.fact.de || cat $MRT_DATA/europarl.de-en/toy.bpe.en | \
+ sed 's/\(\s\|$\)/|s0 /g;s/@@|s0/|s1/g;s/\s*$//' > toy.bpe.fact.de
+
+# Exit with success code
+exit 0
diff --git a/tests/factors/test_factors.sh b/tests/factors/test_factors.sh
new file mode 100644
index 0000000..193ff37
--- /dev/null
+++ b/tests/factors/test_factors.sh
@@ -0,0 +1,34 @@
+#!/bin/bash -x
+
+#####################################################################
+# SUMMARY: Training a factored model
+# AUTHOR: pedrodiascoelho
+# TAGS: factors
+#####################################################################
+
+# Exit on error
+set -e
+
+# Remove old artifacts and create working directory
+rm -rf factors factors.{log,out,diff}
+mkdir -p factors
+
+# Run marian command
+$MRT_MARIAN/marian \
+ --no-shuffle --seed 1111 --dim-emb 32 --dim-rnn 64 --maxi-batch 1 --maxi-batch-sort none --clip-norm 0 \
+ -m factors/model.npz -t toy.bpe.fact.{en,de} -v $MRT_MODELS/factors/vocab.{en,de}.fsv \
+ --disp-freq 5 -e 5 \
+ --log factors.log
+
+# Check if files exist
+test -e factors/model.npz
+test -e factors.log
+grep -q "Factored embeddings enabled" factors.log
+grep -q "Factored outputs enabled" factors.log
+
+# Compare the current output with the expected output
+cat factors.log | $MRT_TOOLS/extract-costs.sh > factors.out
+$MRT_TOOLS/diff-nums.py factors.out factors.expected -o factors.diff
+
+# Exit with success code
+exit 0
diff --git a/tests/factors/test_factors_decoder.sh b/tests/factors/test_factors_decoder.sh
new file mode 100644
index 0000000..141a8cc
--- /dev/null
+++ b/tests/factors/test_factors_decoder.sh
@@ -0,0 +1,26 @@
+#/bin/bash -x
+
+#####################################################################
+# SUMMARY: Tests decoding with factors
+# AUTHOR: pedrodiascoelho
+# TAGS: factors
+#####################################################################
+
+# Exit on error
+set -e
+
+# Remove old artifacts
+rm -f factors_decoder.{out,diff,log}
+
+# Run marian decoder
+$MRT_MARIAN/marian-decoder -c $MRT_MODELS/factors/model.npz.decoder.yml --log factors_decoder.log < text.in > factors_decoder.out
+
+#checks factors_decoder usage
+grep -q "Factored embeddings enabled" factors_decoder.log
+grep -q "Factored outputs enabled" factors_decoder.log
+
+# Compare the output with the expected output
+$MRT_TOOLS/diff.sh factors_decoder.out factors_decoder.expected > factors_decoder.diff
+
+# Exit with success code
+exit 0
diff --git a/tests/factors/text.in b/tests/factors/text.in
new file mode 100644
index 0000000..3791fa3
--- /dev/null
+++ b/tests/factors/text.in
@@ -0,0 +1,98 @@
+India|s0 and|s0 Japan|s0 prime|s0 ministers|s0 meet|s0 in|s0 Tokyo|s0
+India|s0 &apos;s|s0 new|s0 prime|s0 minister|s0 ,|s0 Nar|s1 endra|s0 Modi|s0 ,|s0 is|s0 meeting|s0 his|s0 Japanese|s0 counterpart|s0 ,|s0 Shin|s1 zo|s0 Abe|s0 ,|s0 in|s0 Tokyo|s0 to|s0 discuss|s0 economic|s0 and|s0 security|s0 ties|s0 ,|s0 on|s0 his|s0 first|s0 major|s0 foreign|s0 visit|s0 since|s0 winning|s0 May|s0 &apos;s|s0 election|s0 .|s0
+Mr|s0 Modi|s0 is|s0 on|s0 a|s0 five-|s1 day|s0 trip|s0 to|s0 Japan|s0 to|s0 strengthen|s0 economic|s0 ties|s0 with|s0 the|s0 third|s0 largest|s0 economy|s0 in|s0 the|s0 world|s0 .|s0
+high|s0 on|s0 the|s0 agenda|s0 are|s0 plans|s0 for|s0 greater|s0 nuclear|s0 co-operation|s0 .|s0
+India|s0 is|s0 also|s0 reportedly|s0 hoping|s0 for|s0 a|s0 deal|s0 on|s0 defence|s0 collaboration|s0 between|s0 the|s0 two|s0 nations|s0 .|s0
+Kar|s1 ra|s1 tha|s0 police|s0 arrest|s0 20-|s1 year-old|s0 after|s0 high|s0 speed|s0 motorcycle|s0 chase|s0
+a|s0 motorcycle|s0 has|s0 been|s0 seized|s0 after|s0 it|s0 was|s0 ridden|s0 at|s0 12|s1 5km|s0 @/@|s0 h|s0 in|s0 a|s0 70|s1 km|s0 @/@|s0 h|s0 zone|s0 and|s0 through|s0 bush|s1 land|s0 to|s0 escape|s0 police|s0 in|s0 the|s0 Pil|s1 bara|s0 .|s0
+traffic|s0 police|s0 on|s0 patrol|s0 in|s0 Kar|s1 ra|s1 tha|s0 this|s0 morning|s0 tried|s0 to|s0 pull|s0 over|s0 a|s0 blue|s0 motorcycle|s0 when|s0 they|s0 spotted|s0 it|s0 reaching|s0 12|s1 5km|s0 @/@|s0 h|s0 as|s0 it|s0 pulled|s0 out|s0 of|s0 a|s0 service|s0 station|s0 on|s0 Bath|s1 gate|s0 Road|s0 .|s0
+police|s0 say|s0 the|s0 rider|s0 then|s0 failed|s0 to|s0 stop|s0 and|s0 continued|s0 on|s0 to|s0 Bur|s1 ges|s1 s|s0 Road|s0 before|s0 turning|s0 into|s0 bush|s1 land|s0 ,|s0 causing|s0 the|s0 officers|s0 to|s0 lose|s0 sight|s0 of|s0 it|s0 .|s0
+the|s0 motorcycle|s0 and|s0 a|s0 person|s0 matching|s0 the|s0 description|s0 of|s0 the|s0 rider|s0 was|s0 then|s0 spotted|s0 at|s0 a|s0 house|s0 on|s0 Wal|s1 cott|s0 Way|s0 in|s0 Bulgar|s1 ra|s0 .|s0
+Kar|s1 ra|s1 tha|s0 Police|s0 have|s0 charged|s0 a|s0 20-|s1 year-old|s0 man|s0 with|s0 failing|s0 to|s0 stop|s0 and|s0 reckless|s0 driving|s0 .|s0
+he|s0 is|s0 due|s0 to|s0 appear|s0 in|s0 Kar|s1 ra|s1 tha|s0 Magistr|s1 ates|s0 Court|s0 on|s0 September|s0 23|s0 .|s0
+the|s0 motorcycle|s0 was|s0 seized|s0 and|s0 im|s1 po|s1 unded|s0 for|s0 three|s0 months|s0 .|s0
+George|s0 Web|s1 ster|s0 accused|s0 of|s0 N|s1 air|s1 n|s0 and|s0 Pit|s1 loch|s1 ry|s0 hotel|s0 rap|s1 es|s0
+a|s0 man|s0 is|s0 to|s0 stand|s0 trial|s0 accused|s0 of|s0 rap|s1 ing|s0 women|s0 at|s0 two|s0 hotels|s0 .|s0
+George|s0 Web|s1 ster|s0 ,|s0 28|s0 ,|s0 faced|s0 the|s0 charges|s0 during|s0 a|s0 hearing|s0 at|s0 the|s0 High|s0 Court|s0 in|s0 Glasgow|s0 .|s0
+he|s0 is|s0 alleged|s0 to|s0 have|s0 raped|s0 a|s0 woman|s0 at|s0 the|s0 Scotland|s0 &apos;s|s0 Hotel|s0 in|s0 Pit|s1 loch|s1 ry|s0 in|s0 Per|s1 th|s1 shire|s0 on|s0 June|s0 7|s0 ,|s0 2013|s0 .|s0
+it|s0 is|s0 claimed|s0 Web|s1 ster|s0 attacked|s0 her|s0 while|s0 she|s0 was|s0 ``|s0 unconscious|s0 ,|s0 asleep|s0 and|s0 incapable|s0 of|s0 giving|s0 consent|s0 .|s0 &apos;&apos;|s0
+Web|s1 ster|s0 is|s0 then|s0 charged|s0 with|s0 rap|s1 ing|s0 a|s0 second|s0 woman|s0 at|s0 the|s0 Golf|s0 View|s0 Hotel|s0 in|s0 N|s1 air|s1 n|s0 in|s0 the|s0 Highlands|s0 on|s0 May|s0 4|s0 ,|s0 2014|s0 .|s0
+judge|s0 Lady|s0 Ra|s1 e|s0 set|s0 a|s0 trial|s0 date|s0 for|s0 November|s0 17|s0 at|s0 the|s0 High|s0 Court|s0 in|s0 Edinburgh|s0 .|s0
+re|s1 connecting|s0 With|s0 the|s0 Very|s0 American|s0 Ideal|s0 That|s0 Labor|s0 Rights|s0 Are|s0 Human|s0 Rights|s0
+``|s0 As|s0 go|s0 unions|s0 ,|s0 so|s0 go|s0 middle-class|s0 jobs|s0 ,|s0 &apos;&apos;|s0 says|s0 Ell|s1 ison|s0 ,|s0 the|s0 Minnesota|s0 Democrat|s0 who|s0 serves|s0 as|s0 a|s0 Congressional|s0 Progressive|s0 C|s1 auc|s1 us|s0 co-|s1 chair|s0 .|s0
+that|s0 &apos;s|s0 why|s0 I|s0 &apos;m|s0 proud|s0 to|s0 introduce|s0 the|s0 Emp|s1 loy|s1 ee|s0 Em|s1 power|s1 ment|s0 Act|s0 with|s0 civil|s0 rights|s0 icon|s0 John|s0 Lewis|s0 .|s0
+this|s0 ground-|s1 breaking|s0 legislation|s0 will|s0 give|s0 workers|s0 the|s0 same|s0 legal|s0 options|s0 for|s0 union|s0 organizing|s0 discrimination|s0 as|s0 for|s0 other|s0 forms|s0 of|s0 discrimination|s0 -|s0 stopping|s0 anti-|s1 union|s0 forces|s0 in|s0 their|s0 tracks|s0
+amending|s0 the|s0 National|s0 Labor|s0 Relations|s0 Act|s0 to|s0 allow|s0 workers|s0 who|s0 face|s0 discrimination|s0 for|s0 engaging|s0 in|s0 union|s0 organizing|s0 to|s0 sue|s0 for|s0 justice|s0 in|s0 the|s0 civil|s0 courts|s0 -|s0 and|s0 to|s0 collect|s0 compensatory|s0 and|s0 punitive|s0 damages|s0 -|s0 is|s0 a|s0 sound|s0 and|s0 necessary|s0 initiative|s0 .|s0
+but|s0 it|s0 in|s0 certainly|s0 not|s0 a|s0 radical|s0 initiative|s0 -|s0 at|s0 least|s0 by|s0 American|s0 standards|s0 .|s0
+indeed|s0 ,|s0 the|s0 best|s0 way|s0 to|s0 understand|s0 what|s0 Ell|s1 ison|s0 ,|s0 Lewis|s0 and|s0 the|s0 co|s1 sponsors|s0 of|s0 their|s0 legislation|s0 are|s0 proposing|s0 is|s0 as|s0 a|s0 re|s1 connection|s0 with|s0 a|s0 very|s0 American|s0 idea|s0 .|s0
+despite|s0 the|s0 batter|s1 ing|s0 that|s0 unions|s0 have|s0 taken|s0 in|s0 recent|s0 years|s0 -|s0 in|s0 Wisconsin|s0 ,|s0 Michigan|s0 and|s0 states|s0 across|s0 the|s0 country|s0 -|s0 Americans|s0 once|s0 encouraged|s0 countries|s0 around|s0 the|s0 world|s0 to|s0 embrace|s0 ,|s0 extend|s0 and|s0 respect|s0 labor|s0 rights|s0 .|s0
+there|s0 was|s0 a|s0 time|s0 ,|s0 within|s0 the|s0 living|s0 memory|s0 of|s0 millions|s0 of|s0 Americans|s0 ,|s0 when|s0 this|s0 country|s0 champion|s1 ed|s0 democracy|s0 ,|s0 freedom|s0 of|s0 speech|s0 ,|s0 freedom|s0 of|s0 the|s0 press|s0 and|s0 the|s0 right|s0 to|s0 organize|s0 in|s0 the|s0 same|s0 breath|s0 .|s0
+fully|s0 aware|s0 that|s0 workers|s0 and|s0 their|s0 unions|s0 had|s0 a|s0 role|s0 to|s0 play|s0 in|s0 shaping|s0 the|s0 new|s0 Japan|s0 ,|s0 they|s0 included|s0 language|s0 that|s0 explicitly|s0 recognized|s0 that|s0 ``|s0 the|s0 right|s0 of|s0 workers|s0 to|s0 organize|s0 and|s0 to|s0 bargain|s0 and|s0 act|s0 collectively|s0 is|s0 guaranteed|s0 .|s0 &apos;&apos;|s0
+when|s0 the|s0 United|s0 States|s0 occupied|s0 Germany|s0 after|s0 World|s0 War|s0 II|s0 ,|s0 General|s0 D|s1 wi|s1 ght|s0 David|s0 Eisen|s1 ho|s1 wer|s0 and|s0 his|s0 ai|s1 des|s0 urged|s0 the|s0 Germans|s0 to|s0 write|s0 a|s0 constitution|s0 that|s0 would|s0 assure|s0 that|s0 Adolf|s0 Hitler|s0 &apos;s|s0 fascism|s0 was|s0 replaced|s0 with|s0 muscular|s0 democracy|s0 .|s0
+recognizing|s0 that|s0 workers|s0 would|s0 need|s0 to|s0 organize|s0 and|s0 make|s0 their|s0 voices|s0 heard|s0 in|s0 the|s0 new|s0 nation|s0 ,|s0 the|s0 Germans|s0 included|s0 a|s0 provision|s0 that|s0 explicitly|s0 declared|s0 :|s0 ``|s0 The|s0 right|s0 to|s0 form|s0 associations|s0 to|s0 safeguard|s0 and|s0 improve|s0 working|s0 and|s0 economic|s0 conditions|s0 shall|s0 be|s0 guaranteed|s0 to|s0 every|s0 individual|s0 and|s0 to|s0 every|s0 occupation|s0 or|s0 profession|s0 .|s0
+agreements|s0 that|s0 restrict|s0 or|s0 seek|s0 to|s0 impair|s0 this|s0 right|s0 shall|s0 be|s0 null|s0 and|s0 void|s0 ;|s0 measures|s0 directed|s0 to|s0 this|s0 end|s0 shall|s0 be|s0 unlawful|s0 .|s0
+when|s0 former|s0 First|s0 Lady|s0 Ele|s1 an|s1 or|s0 Roosevelt|s0 chaired|s0 the|s0 International|s0 Commission|s0 on|s0 Human|s0 Rights|s0 ,|s0 which|s0 drafted|s0 the|s0 Universal|s0 Declaration|s0 of|s0 Human|s0 Rights|s0 that|s0 would|s0 in|s0 1948|s0 be|s0 adopted|s0 by|s0 the|s0 United|s0 Nations|s0 as|s0 a|s0 global|s0 covenant|s0 ,|s0 Roosevelt|s0 and|s0 the|s0 dra|s1 f|s1 ters|s0 included|s0 a|s0 guarantee|s0 that|s0 ``|s0 everyone|s0 has|s0 the|s0 right|s0 to|s0 form|s0 and|s0 to|s0 join|s0 trade|s0 unions|s0 for|s0 the|s0 protection|s0 of|s0 his|s0 interests|s0 .|s0 &apos;&apos;|s0
+for|s0 generations|s0 ,|s0 Americans|s0 accepted|s0 the|s0 basic|s0 premise|s0 that|s0 labor|s0 rights|s0 are|s0 human|s0 rights|s0 .|s0
+when|s0 this|s0 country|s0 counsel|s1 ed|s0 other|s0 countries|s0 on|s0 how|s0 to|s0 forge|s0 civil|s0 and|s0 democratic|s0 societies|s0 ,|s0 Americans|s0 explained|s0 that|s0 the|s0 right|s0 to|s0 organize|s0 a|s0 trade|s0 union|s0 -|s0 and|s0 to|s0 have|s0 that|s0 trade|s0 union|s0 engage|s0 in|s0 collective|s0 bargaining|s0 as|s0 an|s0 equal|s0 partner|s0 with|s0 corporations|s0 and|s0 government|s0 agencies|s0 -|s0 had|s0 to|s0 be|s0 protected|s0 .|s0
+now|s0 ,|s0 with|s0 those|s0 rights|s0 under|s0 assault|s0 in|s0 America|s0 ,|s0 it|s0 is|s0 wise|s0 ,|s0 indeed|s0 ,|s0 to|s0 recomm|s1 it|s0 to|s0 the|s0 American|s0 ideal|s0 that|s0 working|s0 people|s0 must|s0 have|s0 a|s0 right|s0 to|s0 organize|s0 and|s0 to|s0 make|s0 their|s0 voices|s0 heard|s0 in|s0 a|s0 free|s0 and|s0 open|s0 society|s0 .|s0
+as|s0 the|s0 Rever|s1 end|s0 Martin|s0 Luther|s0 King|s0 Jr.|s0 said|s0 fifty|s0 years|s0 ago|s0 :|s0
+history|s0 is|s0 a|s0 great|s0 teacher|s0 .|s0
+now|s0 everyone|s0 knows|s0 that|s0 the|s0 labor|s0 movement|s0 did|s0 not|s0 diminish|s0 the|s0 strength|s0 of|s0 the|s0 nation|s0 but|s0 enlarged|s0 it|s0 .|s0
+by|s0 raising|s0 the|s0 living|s0 standards|s0 of|s0 millions|s0 ,|s0 labor|s0 miracul|s1 ously|s0 created|s0 a|s0 market|s0 for|s0 industry|s0 and|s0 lifted|s0 the|s0 whole|s0 nation|s0 to|s0 und|s1 re|s1 amed|s0 of|s0 levels|s0 of|s0 production|s0 .|s0
+those|s0 who|s0 attack|s0 labor|s0 forget|s0 these|s0 simple|s0 truths|s0 ,|s0 but|s0 history|s0 remembers|s0 them|s0 .|s0
+history|s0 remembers|s0 ,|s0 as|s0 should|s0 we|s0 .|s0
+the|s0 formal|s0 recognition|s0 of|s0 labor|s0 rights|s0 as|s0 human|s0 rights|s0 -|s0 and|s0 the|s0 extension|s0 of|s0 civil|s0 rights|s0 protections|s0 to|s0 prevent|s0 discrimination|s0 against|s0 labor|s0 organizing|s0 -|s0 is|s0 long|s0 overdue|s0 .|s0
+Keith|s0 Ell|s1 ison|s0 and|s0 John|s0 Lewis|s0 are|s0 renewing|s0 ideals|s0 that|s0 have|s0 historically|s0 enlarged|s0 America|s0 and|s0 made|s0 real|s0 the|s0 promise|s0 of|s0 democracy|s0 .|s0
+judge|s0 temporarily|s0 blocks|s0 law|s0 that|s0 could|s0 close|s0 all|s0 Louisiana|s0 abortion|s0 clinics|s0
+a|s0 U.S.|s0 federal|s0 judge|s0 on|s0 Sunday|s0 temporarily|s0 blocked|s0 enforcement|s0 of|s0 a|s0 Louisiana|s0 law|s0 that|s0 advocates|s0 say|s0 would|s0 likely|s0 have|s0 closed|s0 all|s0 five|s0 abortion|s0 clinics|s0 in|s0 the|s0 state|s0 .|s0
+the|s0 measure|s0 ,|s0 signed|s0 into|s0 law|s0 by|s0 Louisiana|s0 Governor|s0 Bobby|s0 Jin|s1 dal|s0 in|s0 June|s0 and|s0 due|s0 to|s0 take|s0 effect|s0 Sept|s0 .|s0 1|s0 ,|s0 would|s0 require|s0 doctors|s0 who|s0 perform|s0 abortions|s0 to|s0 have|s0 patient|s0 admitting|s0 privileges|s0 at|s0 a|s0 hospital|s0 within|s0 30|s0 miles|s0 of|s0 their|s0 practice|s0 .|s0
+however|s0 ,|s0 the|s0 judge|s0 &apos;s|s0 ruling|s0 means|s0 that|s0 for|s0 the|s0 time|s0 being|s0 doctors|s0 can|s0 continue|s0 to|s0 perform|s0 legal|s0 abortions|s0 while|s0 seeking|s0 such|s0 privileges|s0 .|s0
+``|s0 Pla|s1 in|s1 ti|s1 ffs|s0 will|s0 be|s0 allowed|s0 to|s0 operate|s0 lawfully|s0 while|s0 continuing|s0 their|s0 efforts|s0 to|s0 obtain|s0 privileges|s0 ,|s0 &apos;&apos;|s0 Federal|s0 Judge|s0 John|s0 de|s1 Grav|s1 elles|s0 wrote|s0 in|s0 the|s0 decision|s0 .|s0
+a|s0 hearing|s0 will|s0 be|s0 scheduled|s0 within|s0 a|s0 month|s0 for|s0 the|s0 judge|s0 to|s0 make|s0 a|s0 more|s0 permanent|s0 ruling|s0 on|s0 the|s0 law|s0 .|s0
+abortion|s0 rights|s0 activists|s0 applauded|s0 the|s0 decision|s0 ,|s0 the|s0 latest|s0 in|s0 a|s0 string|s0 of|s0 rulings|s0 against|s0 similar|s0 measures|s0 ,|s0 saying|s0 it|s0 would|s0 give|s0 doctors|s0 more|s0 time|s0 to|s0 seek|s0 hospital|s0 privileges|s0 .|s0
+``|s0 Today|s0 &apos;s|s0 ruling|s0 ensures|s0 Louisiana|s0 women|s0 are|s0 safe|s0 from|s0 an|s0 under|s1 handed|s0 law|s0 that|s0 seeks|s0 to|s0 strip|s0 them|s0 of|s0 their|s0 health|s0 and|s0 rights|s0 ,|s0 &apos;&apos;|s0 said|s0 Nancy|s0 North|s1 up|s0 ,|s0 president|s0 and|s0 chief|s0 executive|s0 of|s0 the|s0 Center|s0 for|s0 Re|s1 productive|s0 Rights|s0 ,|s0 which|s0 su|s1 ed|s0 to|s0 block|s0 the|s0 law|s0 on|s0 behalf|s0 of|s0 three|s0 of|s0 the|s0 state|s0 &apos;s|s0 five|s0 clinics|s0 .|s0
+it|s0 was|s0 not|s0 immediately|s0 clear|s0 whether|s0 the|s0 ruling|s0 applied|s0 to|s0 doctors|s0 from|s0 the|s0 two|s0 clinics|s0 who|s0 were|s0 not|s0 plain|s1 ti|s1 ffs|s0 in|s0 the|s0 suit|s0 and|s0 have|s0 also|s0 applied|s0 for|s0 admitting|s0 privileges|s0 .|s0
+Louisiana|s0 is|s0 among|s0 11|s0 states|s0 that|s0 have|s0 passed|s0 similar|s0 laws|s0 ,|s0 with|s0 courts|s0 recently|s0 ruling|s0 un|s1 constitutional|s0 such|s0 measures|s0 in|s0 Alabama|s0 and|s0 Mississippi|s0 .|s0
+key|s0 parts|s0 of|s0 a|s0 Texas|s0 law|s0 that|s0 would|s0 have|s0 shut|s1 tered|s0 most|s0 remaining|s0 clinics|s0 in|s0 that|s0 state|s0 were|s0 blocked|s0 by|s0 a|s0 federal|s0 judge|s0 on|s0 Friday|s0 .|s0
+abortion|s0 rights|s0 campaigners|s0 ,|s0 along|s0 with|s0 the|s0 American|s0 College|s0 of|s0 obst|s1 et|s1 ri|s1 cians|s0 and|s0 Gy|s1 nec|s1 ologists|s0 and|s0 the|s0 American|s0 Medical|s0 Association|s0 ,|s0 say|s0 admitting|s0 privileges|s0 laws|s0 impose|s0 medi|s1 cally|s0 unnecessary|s0 requirements|s0 on|s0 doctors|s0 .|s0
+anti-|s1 abortion|s0 advocates|s0 have|s0 countered|s0 that|s0 the|s0 measures|s0 aim|s0 to|s0 protect|s0 women|s0 &apos;s|s0 health|s0 ,|s0 though|s0 some|s0 have|s0 also|s0 lau|s1 ded|s0 their|s0 effect|s0 of|s0 shut|s1 tering|s0 clinics|s0 .|s0
+only|s0 one|s0 doctor|s0 who|s0 performs|s0 abortions|s0 in|s0 Louisiana|s0 has|s0 hospital|s0 admitting|s0 privileges|s0 ,|s0 the|s0 Center|s0 for|s0 Re|s1 productive|s0 Rights|s0 said|s0 .|s0
+if|s0 all|s0 other|s0 doctors|s0 in|s0 the|s0 state|s0 are|s0 forced|s0 to|s0 stop|s0 performing|s0 abortions|s0 ,|s0 that|s0 doctor|s0 ,|s0 fearful|s0 for|s0 his|s0 safety|s0 ,|s0 would|s0 stop|s0 carrying|s0 out|s0 the|s0 procedure|s0 ,|s0 the|s0 group|s0 said|s0 .|s0
+in|s0 arguing|s0 against|s0 the|s0 ruling|s0 ,|s0 Louisiana|s0 officials|s0 said|s0 they|s0 would|s0 not|s0 punish|s0 doctors|s0 performing|s0 abortions|s0 while|s0 their|s0 applications|s0 for|s0 admitting|s0 privileges|s0 were|s0 pending|s0 .|s0
+delayed|s0 diagnosis|s0 and|s0 inability|s0 to|s0 access|s0 best|s0 treatment|s0 mean|s0 o|s1 vari|s1 an|s0 cancer|s0 kills|s0 more|s0 in|s0 rural|s0 areas|s0
+Angel|s1 ina|s0 Jo|s1 lie|s0 and|s0 her|s0 brother|s0 James|s0 have|s0 posted|s0 a|s0 video|s0 tribute|s0 to|s0 their|s0 late|s0 mother|s0 who|s0 died|s0 of|s0 O|s1 vari|s1 an|s0 cancer|s0 in|s0 2007|s0 .|s0
+women|s0 living|s0 in|s0 rural|s0 Australia|s0 are|s0 at|s0 higher|s0 risk|s0 of|s0 dying|s0 from|s0 o|s1 vari|s1 an|s0 cancer|s0 than|s0 their|s0 city|s0 counterparts|s0 .|s0
+researchers|s0 analysed|s0 medical|s0 records|s0 of|s0 more|s0 than|s0 1100|s0 Australian|s0 women|s0 diagnosed|s0 with|s0 o|s1 vari|s1 an|s0 cancer|s0 in|s0 2005|s0 ,|s0 finding|s0 just|s0 35|s0 per|s0 cent|s0 lived|s0 for|s0 five|s0 years|s0 after|s0 diagnosis|s0 .|s0
+lead|s0 researcher|s0 Susan|s0 Jordan|s0 ,|s0 of|s0 the|s0 Q|s1 IM|s1 R|s0 Bergh|s1 ofer|s0 Medical|s0 Research|s0 Institute|s0 ,|s0 said|s0 those|s0 living|s0 in|s0 regional|s0 and|s0 remote|s0 areas|s0 of|s0 the|s0 state|s0 were|s0 about|s0 20|s0 per|s0 cent|s0 more|s0 likely|s0 to|s0 die|s0 during|s0 the|s0 study|s0 than|s0 those|s0 in|s0 urban|s0 areas|s0 .|s0
+small|s0 STU|s1 DY|s0 :|s0 new|s0 drugs|s0 may|s0 slow|s0 lung|s0 ,|s0 o|s1 vari|s1 an|s0 cancer|s0
+the|s0 researchers|s0 tracked|s0 the|s0 women|s0 &apos;s|s0 medical|s0 journeys|s0 across|s0 seven|s0 years|s0 .|s0
+Dr|s0 Jordan|s0 said|s0 a|s0 woman|s0 &apos;s|s0 age|s0 at|s0 the|s0 time|s0 of|s0 diagnosis|s0 ,|s0 o|s1 vari|s1 an|s0 cancer|s0 type|s0 ,|s0 having|s0 existing|s0 illnesses|s0 and|s0 socio-economic|s0 status|s0 also|s0 impacted|s0 on|s0 survival|s0 chances|s0 .|s0
+older|s0 women|s0 and|s0 those|s0 whose|s0 cancer|s0 was|s0 more|s0 advanced|s0 at|s0 the|s0 time|s0 of|s0 diagnosis|s0 had|s0 the|s0 poorest|s0 survival|s0 rates|s0 .|s0
+those|s0 living|s0 in|s0 regional|s0 and|s0 remote|s0 areas|s0 of|s0 the|s0 state|s0 were|s0 about|s0 20|s0 per|s0 cent|s0 more|s0 likely|s0 to|s0 die|s0 during|s0 the|s0 study|s0 than|s0 those|s0 in|s0 urban|s0 areas|s0 .|s0
+although|s0 the|s0 study|s0 was|s0 not|s0 designed|s0 to|s0 determine|s0 why|s0 women|s0 living|s0 outside|s0 the|s0 city|s0 were|s0 more|s0 likely|s0 to|s0 die|s0 from|s0 o|s1 vari|s1 an|s0 cancer|s0 ,|s0 Dr|s0 Jordan|s0 suggested|s0 delayed|s0 diagnosis|s0 and|s0 inability|s0 to|s0 access|s0 best|s0 treatment|s0 might|s0 be|s0 factors|s0 .|s0
+``|s0 This|s0 disease|s0 is|s0 best|s0 treated|s0 by|s0 gyn|s1 a|s1 ecological|s0 onc|s1 ology|s0 surgeons|s0 and|s0 they|s0 &apos;re|s0 mostly|s0 based|s0 in|s0 major|s0 cities|s0 ,|s0 &apos;&apos;|s0 she|s0 said|s0 .|s0
+despite|s0 improving|s0 tel|s1 e-|s1 medicine|s0 services|s0 to|s0 lessen|s0 the|s0 tyranny|s0 of|s0 distance|s0 ,|s0 she|s0 suggested|s0 more|s0 fl|s1 y-|s1 in|s0 ,|s0 fl|s1 y-|s1 out|s0 services|s0 to|s0 allow|s0 specialists|s0 to|s0 treat|s0 women|s0 closer|s0 to|s0 home|s0 and|s0 programs|s0 to|s0 support|s0 people|s0 in|s0 treatment|s0 away|s0 from|s0 their|s0 communities|s0 could|s0 help|s0 .|s0
+Dr|s0 Jordan|s0 said|s0 regardless|s0 of|s0 geographical|s0 status|s0 ,|s0 the|s0 study|s0 found|s0 long-term|s0 survival|s0 among|s0 women|s0 with|s0 o|s1 vari|s1 an|s0 cancer|s0 was|s0 poor|s0 ,|s0 reinforcing|s0 the|s0 need|s0 for|s0 better|s0 treatment|s0 and|s0 prevention|s0 strategies|s0 .|s0
+the|s0 research|s0 ,|s0 funded|s0 by|s0 the|s0 Rio|s0 T|s1 into|s0 Ride|s0 to|s0 Con|s1 quer|s0 cancer|s0 ,|s0 will|s0 be|s0 published|s0 today|s0 in|s0 the|s0 Medical|s0 Journal|s0 of|s0 Australia|s0 .|s0
+in|s0 March|s0 2012|s0 ,|s0 at|s0 33|s0 years|s0 of|s0 age|s0 ,|s0 young|s0 Gold|s0 Coast|s0 m|s1 um|s0 El|s1 isha|s0 Ne|s1 ave|s0 was|s0 told|s0 that|s0 she|s0 had|s0 an|s0 aggressive|s0 form|s0 of|s0 o|s1 vari|s1 an|s0 cancer|s0 .|s0
+garden|s0 centres|s0 rue|s0 fall|s0 in|s0 home|s1 owners|s0
+the|s0 drop|s0 ,|s0 coupled|s0 with|s0 a|s0 particular|s0 decline|s0 in|s0 the|s0 number|s0 of|s0 home|s1 owners|s0 aged|s0 under|s0 35|s0 ,|s0 could|s0 result|s0 in|s0 garden|s0 centres|s0 losing|s0 out|s0 on|s0 tens|s0 of|s0 millions|s0 of|s0 pounds|s0 a|s0 year|s0 when|s0 today|s0 &apos;s|s0 young|s0 consumers|s0 reach|s0 the|s0 ``|s0 core|s0 gardening|s0 age|s0 group|s0 ,|s0 &apos;&apos;|s0 according|s0 to|s0 the|s0 HT|s1 A|s0 &apos;s|s0 study|s0 ,|s0 which|s0 was|s0 reported|s0 by|s0 the|s0 Financial|s0 Times|s0 .|s0
+according|s0 to|s0 the|s0 report|s0 ,|s0 people|s0 renting|s0 properties|s0 spend|s0 an|s0 average|s0 of|s0 55|s0 per|s0 cent|s0 of|s0 the|s0 amount|s0 that|s0 those|s0 with|s0 their|s0 own|s0 homes|s0 spend|s0 on|s0 their|s0 gardens|s0 .|s0
+it|s0 cited|s0 the|s0 rise|s0 in|s0 people|s0 living|s0 in|s0 highly|s0 urban|s1 ised|s0 areas|s0 with|s0 no|s0 gardens|s0 ,|s0 the|s0 popularity|s0 of|s0 paving|s0 over|s0 front|s0 gardens|s0 for|s0 parking|s0 and|s0 shrinking|s0 garden|s0 size|s0 as|s0 other|s0 factors|s0 threatening|s0 the|s0 industry|s0 ,|s0 which|s0 is|s0 worth|s0 an|s0 estimated|s0 £|s0 5|s0 billion|s0 in|s0 sales|s0 each|s0 year|s0 .|s0
+greater|s0 London|s0 ,|s0 where|s0 home|s0 ownership|s0 has|s0 fallen|s0 from|s0 61|s0 per|s0 cent|s0 to|s0 43|s0 per|s0 cent|s0 in|s0 six|s0 years|s0 ,|s0 has|s0 Britain|s0 &apos;s|s0 lowest|s0 spend|s0 per|s0 household|s0 on|s0 gardening|s0 products|s0 .|s0
+the|s0 HT|s1 A|s0 and|s0 Royal|s0 Hor|s1 ticultural|s0 Society|s0 said|s0 that|s0 renting|s0 property|s0 or|s0 a|s0 lack|s0 of|s0 garden|s0 space|s0 did|s0 not|s0 mean|s0 people|s0 could|s0 not|s0 grow|s0 plants|s0 .|s0
+guy|s0 Bar|s1 ter|s0 ,|s0 chief|s0 hor|s1 ticultural|s0 adviser|s0 to|s0 the|s0 R|s1 HS|s0 ,|s0 said|s0 :|s0 ``|s0 Container|s0 gardening|s0 ,|s0 for|s0 example|s0 ,|s0 is|s0 especially|s0 popular|s0 with|s0 ren|s1 ters|s0 who|s0 can|s0 move|s0 their|s0 plants|s0 when|s0 they|s0 relocate|s0 .|s0 &apos;&apos;|s0
+the|s0 HT|s1 A|s0 report|s0 identified|s0 the|s0 period|s0 between|s0 1997|s0 and|s0 2005|s0 as|s0 the|s0 garden|s0 retail|s0 sector|s0 &apos;s|s0 `|s0 golden|s0 age|s0 &apos;&apos;|s0 as|s0 a|s0 result|s0 of|s0 increased|s0 home|s0 ownership|s0 and|s0 economic|s0 prosperity|s0 from|s0 the|s0 late|s0 1980s|s0 to|s0 mid-|s1 1990s|s0 .|s0
+it|s0 also|s0 predicted|s0 an|s0 improved|s0 market|s0 this|s0 year|s0 due|s0 to|s0 better|s0 weather|s0 following|s0 unfavourable|s0 conditions|s0 in|s0 March|s0 and|s0 April|s0 last|s0 year|s0 .|s0
+in|s0 Pakistan|s0 ,|s0 the|s0 protest|s0 movement|s0 led|s0 by|s0 political|s0 opponent|s0 ,|s0 Im|s1 ran|s0 Khan|s0 ,|s0 and|s0 the|s0 spiritual|s0 leader|s0 ,|s0 Tah|s1 ir|s1 ul|s0 Qad|s1 ri|s0 ,|s0 continues|s0 .|s0
+in|s0 the|s0 capital|s0 city|s0 of|s0 Islamabad|s0 ,|s0 around|s0 1000|s0 demonstrators|s0 stor|s1 med|s0 the|s0 government-|s1 run|s0 television|s0 station|s0 ,|s0 P|s1 TV|s0 .|s0
+however|s0 ,|s0 information|s0 minister|s0 ,|s0 Per|s1 v|s1 ai|s1 z|s0 Ras|s1 hid|s0 ,|s0 said|s0 that|s0 soldiers|s0 had|s0 been|s0 able|s0 to|s0 force|s0 the|s0 protesters|s0 back|s0 out|s0 of|s0 the|s0 building|s0 .|s0
+the|s0 TV|s0 station|s0 stopped|s0 broadcasting|s0 for|s0 approximately|s0 40|s0 minutes|s0 ,|s0 but|s0 has|s0 since|s0 begun|s0 to|s0 broadcast|s0 again|s0 .|s0
+at|s0 the|s0 same|s0 time|s0 ,|s0 around|s0 3000|s0 demonstrators|s0 attempted|s0 to|s0 reach|s0 the|s0 official|s0 residency|s0 of|s0 Prime|s0 Minister|s0 Na|s1 wa|s1 z|s0 Shar|s1 if|s0 .|s0
+approximately|s0 one|s0 kilometre|s0 away|s0 ,|s0 they|s0 c|s1 lashed|s0 with|s0 security|s0 security|s0 services|s0 ,|s0 armed|s0 with|s0 sticks|s0 and|s0 stones|s0 .|s0
+the|s0 police|s0 used|s0 tear|s0 gas|s0 .|s0
+the|s0 demonstrators|s0 demanded|s0 Shar|s1 if|s0 &apos;s|s0 resignation|s0 ,|s0 which|s0 he|s0 refused|s0 .|s0
+the|s0 Pakistan|s0 Army|s0 called|s0 for|s0 a|s0 political|s0 solution|s0 to|s0 the|s0 conflict|s0 ``|s0 without|s0 delay|s0 and|s0 without|s0 resorting|s0 to|s0 violence|s0 .|s0 &apos;&apos;|s0
+following|s0 a|s0 meeting|s0 at|s0 its|s0 headquarters|s0 on|s0 Sunday|s0 evening|s0 ,|s0 the|s0 military|s0 announced|s0 :|s0 ``|s0 The|s0 Army|s0 remains|s0 committed|s0 to|s0 its|s0 task|s0 of|s0 ensuring|s0 security|s0 for|s0 the|s0 State|s0 .|s0 &apos;&apos;|s0
+the|s0 military|s0 plays|s0 an|s0 important|s0 role|s0 in|s0 Pakistan|s0 and|s0 has|s0 taken|s0 power|s0 by|s0 force|s0 several|s0 times|s0 in|s0 the|s0 past|s0 .|s0
+the|s0 opposition|s0 politician|s0 ,|s0 Im|s1 ran|s0 Khan|s0 ,|s0 acc|s1 uses|s0 Prime|s0 Minister|s0 Shar|s1 if|s0 of|s0 rig|s1 ging|s0 the|s0 parliamentary|s0 elections|s0 ,|s0 which|s0 took|s0 place|s0 in|s0 May|s0 last|s0 year|s0 .|s0