Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://origin
- Loading branch information
1 parent
737422c
commit 8eaefe6
Showing
15 changed files
with
313 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
itest/src/edu/stanford/nlp/pipeline/TokenizerFrenchBenchmarkITest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package edu.stanford.nlp.pipeline; | ||
|
||
import java.util.Properties; | ||
|
||
|
||
public class TokenizerFrenchBenchmarkITest extends TokenizerBenchmarkTestCase { | ||
|
||
@Override | ||
public void setUp() { | ||
// set up the pipeline | ||
Properties props = new Properties(); | ||
props.put("annotators", "tokenize,ssplit,mwt"); | ||
props.put("tokenize.language", "fr"); | ||
//props.put("tokenize.options", "splitAll=false"); | ||
props.put("mwt.mappingFile", | ||
"/u/nlp/data/stanford-corenlp/test/data/mwt/fr-mwt.tsv"); | ||
props.put("mwt.pos.model", "/u/nlp/data/stanford-corenlp/test/models/fr-mwt.tagger"); | ||
props.put("mwt.statisticalMappingFile", | ||
"/u/nlp/data/stanford-corenlp/test/data/fr-mwt-statistical.tsv"); | ||
props.put("ssplit.isOneSentence", "true"); | ||
pipeline = new StanfordCoreNLP(props); | ||
} | ||
|
||
public void testOnDev() { | ||
goldFilePath = "/u/nlp/data/stanford-corenlp/test/data/tokenize/fr_gsd-ud-dev.conllu"; | ||
runTest("dev", "fr", 0.90); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.