Skip to content

Commit

Permalink
coquilles
Browse files Browse the repository at this point in the history
  • Loading branch information
Patent2net committed Jan 13, 2021
1 parent a620301 commit 74284a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Patent2Net/ClusterPreProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
stopwords.extend(brev_stpswrds)

#adding stopwords
with open('StoplistEnglish.txt', 'r') as fic:
with open('StoplistEnglish.txt', 'r', encoding='utf8') as fic:
wrds = fic.readlines()


Expand Down
4 changes: 3 additions & 1 deletion Patent2Net/FusionImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import logging

from Patent2Net.P2N_Lib import LoadBiblioFile, RenderTemplate, AnnonceProgres, AnnonceLog
from Patent2Net.P2N_Lib import LoadBiblioFile, RenderTemplate, AnnonceProgres
from Patent2Net.P2N_Config import LoadConfig
from p2n.config import label_from_prefix
from p2n.util import boot_logging, to_png
Expand Down Expand Up @@ -101,7 +101,9 @@ def run():
# Generate thumbnails
gallery = []
patents = biblio_file['brevets']
cpt = 0
for patent in patents:
cpt +1
AnnonceProgres (Appli = 'p2n_image', valMax = 100, valActu = 90 + cpt*10/len(patents))
patent_label = get_patent_label(patent)
i = 1
Expand Down

0 comments on commit 74284a1

Please sign in to comment.