Skip to content

Commit

Permalink
fix pslpython to 2.2.2 as encountering runtime regression on 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Binh Vu committed Jul 12, 2022
1 parent 4c700f7 commit f14f26c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions grams/algorithm/inferences/psl_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@ def predict(
break
except ModelError as e:
# error related to parser (not jvm), no retry
non_recoverable_error = any(
line.find(k) != -1
for line in self.logs
for k in [
"org.linqs.psl.parser.antlr.PSLParser",
"Unique index or primary key violation",
]
)
# non_recoverable_error = any(
# line.find(k) != -1
# for line in self.logs
# for k in [
# "org.linqs.psl.parser.antlr.PSLParser",
# "Unique index or primary key violation",
# ]
# )
non_recoverable_error = False
self.log_errors(e)
if not retry or non_recoverable_error:
raise
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rdflib = "^6.1.1"
ipython = "^8.0.1"
matplotlib = "^3.4.2"
rltk = "==2.0.0-alpha.15"
pslpython = "^2.2.2"
pslpython = "==2.2.2"
fastnumbers = "^3.1.0"
ftfy = "^6.1.1"
python-Levenshtein = "^0.12.2"
Expand Down

0 comments on commit f14f26c

Please sign in to comment.