Commit d75607d4 authored by Administrator's avatar Administrator

[BUGFIX] ISI PARSER OK

parent 39e27df0
import node.models import node.models
from parsing.NgramsExtractors import EnglishNgramsExtractor, FrenchNgramsExtractor from parsing.NgramsExtractors import *
from collections import defaultdict from collections import defaultdict
...@@ -52,9 +52,7 @@ class NgramsExtractorsCache(defaultdict): ...@@ -52,9 +52,7 @@ class NgramsExtractorsCache(defaultdict):
elif language in ["fr", "fra", "fre", "french"]: elif language in ["fr", "fra", "fre", "french"]:
Extractor = FrenchNgramsExtractor Extractor = FrenchNgramsExtractor
else: else:
# TODO : Extractor = NgramsExtractor
#Extractor = NgramsExtractor
Extractor = EnglishNgramsExtractor
# try to see if already instanciated with another key # try to see if already instanciated with another key
found = False found = False
for extractor in self.values(): for extractor in self.values():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment