-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
404,165 additions
and
1,097 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Empty file.
108 changes: 108 additions & 0 deletions
108
grobid-ner/resources/dataset/nerfr/crfpp-templates/nerfr.template
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,108 @@ | ||
# Token 0 | ||
U00:%x[-4,0] | ||
U01:%x[-3,0] | ||
U02:%x[-2,0] | ||
U03:%x[-1,0] | ||
U04:%x[0,0] | ||
U05:%x[1,0] | ||
U06:%x[2,0] | ||
U07:%x[3,0] | ||
U08:%x[4,0] | ||
#U09:%x[-1,0]/%x[0,0] | ||
#U0A:%x[0,0]/%x[1,0] | ||
#U0B:%x[1,0]/%x[2,0] | ||
#U0C:%x[-2,0]/%x[-1,0] | ||
|
||
# Lowercase token 1 | ||
U10:%x[-2,1] | ||
U11:%x[-1,1] | ||
U12:%x[0,1] | ||
U13:%x[1,1] | ||
U14:%x[2,1] | ||
|
||
# Prefix 1-4 characters (2-6) | ||
U20:%x[0,2] | ||
U21:%x[0,3] | ||
U22:%x[0,4] | ||
U23:%x[0,5] | ||
U24:%x[0,6] | ||
|
||
# Suffix 1-4 characters (7-11) | ||
U30:%x[0,7] | ||
U31:%x[0,8] | ||
U32:%x[0,9] | ||
U33:%x[0,10] | ||
U34:%x[0,11] | ||
|
||
# Capitalization (12) | ||
U40:%x[0,12] | ||
U41:%x[1,12] | ||
U42:%x[-1,12] | ||
U43:%x[-2,12] | ||
#U44:%x[0,12]/%x[1,12] | ||
#U45:%x[-1,12]/%x[0,12] | ||
|
||
# Digits (13) | ||
U50:%x[0,13] | ||
U51:%x[-1,13] | ||
U52:%x[1,13] | ||
|
||
# Lexical information (14-20) | ||
U80:%x[0,14] | ||
U81:%x[0,15] | ||
U82:%x[0,16] | ||
U83:%x[0,17] | ||
U84:%x[0,18] | ||
U85:%x[0,19] | ||
U86:%x[0,20] | ||
U89:%x[-1,14] | ||
U8A:%x[-1,15] | ||
U8B:%x[-1,16] | ||
U8C:%x[-1,17] | ||
U8D:%x[-1,18] | ||
U8E:%x[-1,19] | ||
U8F:%x[-1,20] | ||
U8I:%x[1,14] | ||
U8J:%x[1,15] | ||
U8K:%x[1,16] | ||
U8L:%x[1,17] | ||
U8M:%x[1,18] | ||
U8N:%x[1,19] | ||
U8O:%x[1,20] | ||
|
||
# lexical feature: belongs to a known location (21) | ||
U90:%x[0,21] | ||
U91:%x[-1,21] | ||
U92:%x[1,21] | ||
U93:%x[-2,21] | ||
|
||
# lexical feature: belongs to a known person title (22) | ||
UA0:%x[0,22] | ||
UA1:%x[-1,22] | ||
UA2:%x[1,22] | ||
UA3:%x[-2,22] | ||
|
||
# lexical feature: belongs to a known organisation (23) | ||
UB0:%x[0,23] | ||
UB1:%x[-1,23] | ||
UB2:%x[1,23] | ||
UB3:%x[-2,23] | ||
|
||
# lexical feature: belongs to a known organisation form name (24) | ||
UC0:%x[0,24] | ||
UC1:%x[-1,24] | ||
UC2:%x[1,24] | ||
UC3:%x[-2,24] | ||
|
||
# word shape (25) | ||
UD0:%x[0,25] | ||
UD1:%x[-1,25] | ||
UD2:%x[1,25] | ||
|
||
# word shape trimmed (26) | ||
UE0:%x[0,26] | ||
UE1:%x[-1,26] | ||
UE2:%x[1,26] | ||
|
||
# Output | ||
B |
Empty file.
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
61 changes: 0 additions & 61 deletions
61
grobid-ner/src/main/java/org/grobid/core/data/TextBlocks.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.