Commit ae1d5f45 authored by WUUUGI's avatar WUUUGI

Fixed empty replacePattern bug and added ConLL.

parent 915112fc
Pipeline #14887918 failed with stages
in 1 minute and 43 seconds
......@@ -61,6 +61,11 @@
<artifactId>de.tudarmstadt.ukp.dkpro.core.io.text-asl</artifactId>
<version>1.9.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
<artifactId>de.tudarmstadt.ukp.dkpro.core.io.conll-asl</artifactId>
<version>1.10.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -60,8 +60,11 @@ public class ConverterService {
public void setReplacePattern(String replacePattern) {
String[] split = replacePattern.split("\\\\&");
this.replacePatterns.addAll(Arrays.asList(split));
if (!replacePattern.isEmpty()) {
//TODO: matcher to check if patterns are correct...
String[] split = replacePattern.split("\\\\&");
this.replacePatterns.addAll(Arrays.asList(split));
}
}
public void iterateOverFiles(String filePattern, String targetLocation) throws UIMAException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment