-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3595 from flairNLP/documents_as_sentences
Add options to load full documents as Sentence objects
- Loading branch information
Showing
5 changed files
with
213 additions
and
1 deletion.
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
37 changes: 37 additions & 0 deletions
37
tests/resources/tasks/trivial/trivial_bioes_with_boundaries/dev.txt
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,37 @@ | ||
this O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
here O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
I O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
we O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
-DOCSTART- | ||
|
||
this O | ||
is O | ||
Berlin B-LOC | ||
|
||
here O | ||
is O | ||
Berlin B-LOC | ||
|
||
I O | ||
like O | ||
Berlin B-LOC | ||
|
||
we O | ||
like O | ||
Berlin B-LOC |
39 changes: 39 additions & 0 deletions
39
tests/resources/tasks/trivial/trivial_bioes_with_boundaries/test.txt
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,39 @@ | ||
this O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
here O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
I O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
we O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
-DOCSTART- | ||
|
||
this O | ||
is O | ||
Berlin B-LOC | ||
|
||
here O | ||
is O | ||
Berlin B-LOC | ||
|
||
I O | ||
like O | ||
Berlin B-LOC | ||
|
||
we O | ||
like O | ||
Berlin B-LOC | ||
|
||
-DOCSTART- |
59 changes: 59 additions & 0 deletions
59
tests/resources/tasks/trivial/trivial_bioes_with_boundaries/train.txt
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,59 @@ | ||
this O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
here O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
I O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
we O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
-DOCSTART- | ||
|
||
this O | ||
is O | ||
Berlin B-LOC | ||
|
||
here O | ||
is O | ||
Berlin B-LOC | ||
|
||
I O | ||
like O | ||
Berlin B-LOC | ||
|
||
we O | ||
like O | ||
Berlin B-LOC | ||
|
||
-DOCSTART- | ||
|
||
this O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
here O | ||
is O | ||
New B-LOC | ||
York I-LOC | ||
|
||
I O | ||
like O | ||
New B-LOC | ||
York I-LOC | ||
|
||
we O | ||
like O | ||
New B-LOC | ||
York I-LOC |
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