added fullFormLexicon in Java

This commit is contained in:
Krasimir Angelov
2017-08-30 08:08:19 +02:00
parent bee61fe4aa
commit 3e9de6ffbb
3 changed files with 9 additions and 4 deletions

View File

@@ -775,7 +775,7 @@ word form with its possible analyses:
Prelude PGF2> mapM_ print [(form,lemma,analysis,prob) | (form,analyses) <- fullFormLexicon eng, (lemma,analysis,prob) &lt- analyses]
</pre>
<pre class="java">
for (FullFormEntry entry in eng.fullFormLexicon()) { ///// TODO
for (FullFormEntry entry : eng.fullFormLexicon()) {
for (MorphoAnalysis analysis : entry.getAnalyses()) {
System.out.println(entry.getForm()+" "+analysis.getProb()+" "+analysis.getLemma()+" "+analysis.getField());
}