Skip to content

Commit

Permalink
keyworder: always keep combinations
Browse files Browse the repository at this point in the history
* FIX Removes a bug in bibclassify_keyword_analyzer.py. If a combination
  is found via a synonym or regexp it is no longer thrown away just
  because the components of the combination are not found in the text.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Florian Schwennsen <schwenn@l00slschwennsen.desy.de>
  • Loading branch information
Florian Schwennsen authored and jalavik committed Feb 1, 2016
1 parent 248d3fe commit eca6684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_classifier/keyworder.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_composite_keywords(ckw_db, fulltext, skw_spans):
except KeyError:
# Some of the keyword components are not to be found in the text.
# Therefore we cannot continue because the match is incomplete.
continue
pass

ckw_spans = []
for index in range(len(spans) - 1):
Expand Down

0 comments on commit eca6684

Please sign in to comment.