Problème de localisation du fichier .par (TreeTagger)
noussa90
-
noussa90 -
noussa90 -
Bonjour,
Je n'ai aucune erreur mais j'ai toujours cette exception " Unable to locate model ". Quelqu'un pourra m'aider SVP. Voilà le code:
package treetagger;
import org.annolab.tt4j.*;
import static java.util.Arrays.asList;
public class Example {
public static void main(String[] args) throws Exception {
TreeTaggerWrapper tt = new TreeTaggerWrapper<String>();
try {
tt.setModel("C:/SL072/TreeTagger/models/english.par");
tt.setHandler(new TokenHandler<String>() {
public void token(String token, String pos, String lemma) {
System.out.println(token + "\t" + pos + "\t" + lemma);
}
});
tt.process(asList(new String[] { "This", "is", "a", "test", "." }));
}
finally {
tt.destroy();
}
}
}
Merci à vous.
Je n'ai aucune erreur mais j'ai toujours cette exception " Unable to locate model ". Quelqu'un pourra m'aider SVP. Voilà le code:
package treetagger;
import org.annolab.tt4j.*;
import static java.util.Arrays.asList;
public class Example {
public static void main(String[] args) throws Exception {
TreeTaggerWrapper tt = new TreeTaggerWrapper<String>();
try {
tt.setModel("C:/SL072/TreeTagger/models/english.par");
tt.setHandler(new TokenHandler<String>() {
public void token(String token, String pos, String lemma) {
System.out.println(token + "\t" + pos + "\t" + lemma);
}
});
tt.process(asList(new String[] { "This", "is", "a", "test", "." }));
}
finally {
tt.destroy();
}
}
}
Merci à vous.
A voir également:
- Problème de localisation du fichier .par (TreeTagger)
- Google maps localisation maison - Guide
- Fichier bin - Guide
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide