-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/coref-resolution'
- Loading branch information
Showing
45 changed files
with
198,927 additions
and
165,829 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...or/extractors/InitialConnectionAgent.java → ...erator/agents/InitialConnectionAgent.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
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
32 changes: 32 additions & 0 deletions
32
...c/main/java/edu/kit/kastel/mcse/ardoco/core/datastructures/definitions/ICorefCluster.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,32 @@ | ||
/** | ||
* | ||
*/ | ||
package edu.kit.kastel.mcse.ardoco.core.datastructures.definitions; | ||
|
||
import java.util.StringJoiner; | ||
|
||
import org.eclipse.collections.api.list.ImmutableList; | ||
|
||
/** | ||
* This defines the interface of a Coreference Cluster (CorefCluster). A CorefCluster is a cluster that collects all | ||
* mentions of an entity and has a representative mention. | ||
* | ||
* @author Jan Keim | ||
* | ||
*/ | ||
public interface ICorefCluster { | ||
|
||
int getId(); | ||
|
||
String getRepresentativeMention(); | ||
|
||
ImmutableList<ImmutableList<IWord>> getMentions(); | ||
|
||
static String getTextForMention(ImmutableList<IWord> mention) { | ||
var textJoiner = new StringJoiner(" "); | ||
for (var word : mention) { | ||
textJoiner.add(word.getText()); | ||
} | ||
return textJoiner.toString(); | ||
} | ||
} |
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.