Commit b0c572d7 authored by Romain Loth's avatar Romain Loth

correction du commit précédent qui changeait aussi le tagger

parent 94e16652
from ..Taggers import NltkTagger from ..Taggers import TurboTagger #NltkTagger #,
import nltk import nltk
from re import sub from re import sub
...@@ -9,12 +9,6 @@ class NgramsExtractor: ...@@ -9,12 +9,6 @@ class NgramsExtractor:
"""Class instanciation. """Class instanciation.
This method can be overriden. This method can be overriden.
-*-*-*-*-
contenus :
[...'__dict__', '_grammar', '_label', '_rule', 'extract_ngrams', 'start', 'stop', 'tagger']
""" """
def __init__(self, rule="{<JJ.*>*<NN.*|>+<JJ.*>*}"): def __init__(self, rule="{<JJ.*>*<NN.*|>+<JJ.*>*}"):
# TODO add this regex # TODO add this regex
...@@ -28,7 +22,7 @@ class NgramsExtractor: ...@@ -28,7 +22,7 @@ class NgramsExtractor:
self.stop() self.stop()
def start(self): def start(self):
self.tagger = NltkTagger() self.tagger = TurboTagger()
def stop(self): def stop(self):
pass pass
......
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