Skip to content

Commit

Permalink
Fixed issue where use_gpu=False still uses GPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
owo committed Apr 14, 2023
1 parent 288202d commit b496501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camel_tools/disambig/bert/unfactored.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __init__(self, model_path, analyzer,
scorer='uniform', tie_breaker='tag', use_gpu=True,
batch_size=32, ranking_cache=None, ranking_cache_size=100000):
self._model = {
'unfactored': _BERTFeatureTagger(model_path)
'unfactored': _BERTFeatureTagger(model_path, use_gpu=use_gpu)
}
self._analyzer = analyzer
self._features = features
Expand Down

0 comments on commit b496501

Please sign in to comment.