Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
33a5263e
Commit
33a5263e
authored
Aug 26, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BATCH DOCUMENTS COUNT
parent
23969422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
parsing.py
gargantext/util/toolchain/parsing.py
+11
-4
No files found.
gargantext/util/toolchain/parsing.py
View file @
33a5263e
...
@@ -138,13 +138,20 @@ def parse(corpus):
...
@@ -138,13 +138,20 @@ def parse(corpus):
#adding skipped_docs for later processsing if error in parsing
#adding skipped_docs for later processsing if error in parsing
skipped_docs
.
append
(
document
.
id
)
skipped_docs
.
append
(
document
.
id
)
#documents for this resources
session
.
add
(
corpus
)
if
documents_count
%
BATCH_PARSING_SIZE
==
0
:
session
.
commit
()
corpus
.
status
(
'Docs'
,
progress
=
documents_count
)
corpus
.
save_hyperdata
()
session
.
add
(
corpus
)
session
.
commit
()
# update info about the resource
# update info about the resource
resource
[
'extracted'
]
=
True
resource
[
'extracted'
]
=
True
#print( "resource n°",i, ":", d, "docs inside this file")
#print( "resource n°",i, ":", d, "docs inside this file")
#finally store documents for this corpus
session
.
add
(
corpus
)
session
.
commit
()
#STORING AGREGATIONS INFO (STATS)
#STORING AGREGATIONS INFO (STATS)
#skipped_docs
#skipped_docs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment