Skip to content

Commit

Permalink
Remove unneccessary fully qualified names
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaker-dstl committed May 8, 2019
1 parent a8d33c5 commit 1a713d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public class SentenceFactory {
public SentenceFactory(JCas jCas) {
this(
JCasUtil.indexCovered(
jCas, uk.gov.dstl.baleen.types.language.Sentence.class, WordToken.class),
jCas, Sentence.class, WordToken.class),
JCasUtil.indexCovering(jCas, WordToken.class, Entity.class),
JCasUtil.indexCovering(jCas, WordToken.class, PhraseChunk.class),
JCasUtil.indexCovered(
jCas, uk.gov.dstl.baleen.types.language.Sentence.class, Dependency.class));
jCas, Sentence.class, Dependency.class));
}

/**
Expand All @@ -55,7 +55,7 @@ public SentenceFactory(JCas jCas) {
* @param indexDependency sentence to dependency index
*/
protected SentenceFactory(
Map<uk.gov.dstl.baleen.types.language.Sentence, List<WordToken>> indexWords,
Map<Sentence, List<WordToken>> indexWords,
Map<WordToken, List<Entity>> indexEntities,
Map<WordToken, List<PhraseChunk>> indexChunks,
Map<Sentence, List<Dependency>> indexDependency) {
Expand All @@ -78,7 +78,7 @@ public List<OdinSentence> create() {
.collect(toList());

List<OdinSentence> sentences = new ArrayList<>();
for (Entry<uk.gov.dstl.baleen.types.language.Sentence, List<WordToken>> e : entrySet) {
for (Entry<Sentence, List<WordToken>> e : entrySet) {
sentences.add(create(sentences.size(), e.getKey(), e.getValue()));
}

Expand Down

0 comments on commit 1a713d9

Please sign in to comment.