grobid-client-python 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- grobid_client/format/TEI2LossyJSON.py +1 -1
- grobid_client/grobid_client.py +4 -1
- {grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/METADATA +1 -1
- {grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/RECORD +7 -7
- {grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/WHEEL +0 -0
- {grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/entry_points.txt +0 -0
- {grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -877,7 +877,7 @@ def get_refs_with_offsets(element):
|
|
|
877
877
|
# The reference text was also cleaned, so we need to find it in the final cleaned text
|
|
878
878
|
# We can search around the original position to find the correct occurrence
|
|
879
879
|
search_start = max(0, ref['offset_start'] - 10) # Look a bit before the original position
|
|
880
|
-
search_end = min(len(final_text), ref['
|
|
880
|
+
search_end = min(len(final_text), ref['offset_end'] + 10) # Look a bit after
|
|
881
881
|
search_area = final_text[search_start:search_end]
|
|
882
882
|
|
|
883
883
|
# Find the reference in the search area
|
grobid_client/grobid_client.py
CHANGED
|
@@ -720,7 +720,10 @@ class GrobidClient(ApiClient):
|
|
|
720
720
|
include_raw_citations,
|
|
721
721
|
include_raw_affiliations,
|
|
722
722
|
tei_coordinates,
|
|
723
|
-
segment_sentences
|
|
723
|
+
segment_sentences,
|
|
724
|
+
flavor=None,
|
|
725
|
+
start_page=-1,
|
|
726
|
+
end_page=-1
|
|
724
727
|
):
|
|
725
728
|
# create request based on file content
|
|
726
729
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: grobid-client-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Simple python client for GROBID REST services
|
|
5
5
|
Author-email: Patrice Lopez <patrice.lopez@science-miner.com>
|
|
6
6
|
Maintainer-email: Patrice Lopez <patrice.lopez@science-miner.com>, Luca Foppiano <lucanoro@duck.com>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
grobid_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
grobid_client/client.py,sha256=crvUiVnnkn6tFwO4lKQg2cTxAHZxCBAmeNSVtuL4ZA0,6009
|
|
3
|
-
grobid_client/grobid_client.py,sha256=
|
|
4
|
-
grobid_client/format/TEI2LossyJSON.py,sha256=
|
|
3
|
+
grobid_client/grobid_client.py,sha256=FQ-g6YjgcA6s63aOXO2MPsttFpo9x8UVD9WNPRn96OU,39465
|
|
4
|
+
grobid_client/format/TEI2LossyJSON.py,sha256=jbWBiGkCMZxNNBudn2C6vPWX-qQEPi8JjesOPOYVn_g,46048
|
|
5
5
|
grobid_client/format/TEI2Markdown.py,sha256=0NIe0aSCiq7NTDEWwPbKHhsRSudVGXWJ-vjMG9_WTNY,26779
|
|
6
6
|
grobid_client/format/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
grobid_client/format/validate_json_refs.py,sha256=_ieADmrHD77EFwblTNH1_i0x3P7SCmsaTi-PZ6SI79M,14842
|
|
8
|
-
grobid_client_python-0.1.
|
|
9
|
-
grobid_client_python-0.1.
|
|
10
|
-
grobid_client_python-0.1.
|
|
11
|
-
grobid_client_python-0.1.
|
|
12
|
-
grobid_client_python-0.1.
|
|
8
|
+
grobid_client_python-0.1.2.dist-info/METADATA,sha256=8VZWtAFYPK70kbjoP75CJVM-lxQQTha4NSCvpC6De4k,33620
|
|
9
|
+
grobid_client_python-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
grobid_client_python-0.1.2.dist-info/entry_points.txt,sha256=-WwPi8D8eXEbDB6QvitvHjxSGBeyLCyFvAoZcaDGswQ,67
|
|
11
|
+
grobid_client_python-0.1.2.dist-info/top_level.txt,sha256=HnjgWxdJNKTLIN86XkgRAfVeEK4C71fc9X4fe7qdMvA,14
|
|
12
|
+
grobid_client_python-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
{grobid_client_python-0.1.0.dist-info → grobid_client_python-0.1.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|