Commit 9db0046d authored by Mathieu Rodic's avatar Mathieu Rodic

[CODE] slight improvement on tags regexp, remove useless import

parent b1eb0f62
from ..Taggers import TurboTagger
import nltk
......@@ -9,7 +8,7 @@ class NgramsExtractor:
"""Class instanciation.
This method can be overriden.
"""
def __init__(self, rule="{<JJ.*>*<NN.*|>+<JJ.*>*}"):
def __init__(self, rule="{<JJ.*|CD>*<NN.*|>+<JJ.*>*}"):
self.start()
self._label = "NP"
self._rule = self._label + ": " + rule
......
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