Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nlp
ahisto-modules
Named Entity Recognition Experiments
Commits
c0f68d9c
Commit
c0f68d9c
authored
Sep 24, 2022
by
Vít Novotný
Browse files
Fix `Document.is_relevant()`
parent
e560b18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ahisto_named_entity_search/document/document.py
View file @
c0f68d9c
...
...
@@ -321,7 +321,7 @@ class Document:
def
is_relevant
(
self
)
->
bool
:
is_relevant
=
(
self
.
book_id
in
self
.
__class__
.
RELEVANT_PAGES
and
self
.
page_id
not
in
self
.
__class__
.
RELEVANT_PAGES
[
self
.
book_id
]
self
.
page_id
in
self
.
__class__
.
RELEVANT_PAGES
[
self
.
book_id
]
)
return
is_relevant
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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