<commit_before>from thinc.neural.nn cimport NeuralNet
from thinc.extra.eg cimport Example
from thinc.structs cimport ExampleC

from .structs cimport TokenC
from .vocab cimport Vocab


cdef class TaggerNeuralNet(NeuralNet):
    cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, int i) except *
 
cdef class CharacterTagger(NeuralNet):
    cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, object strings, int i) except *

cdef class Tagger:
    cdef readonly Vocab vocab
    cdef readonly CharacterTagger model
    cdef public dict freqs<commit_msg>* Update tagger.pxd for CharacterTagger model<commit_after>from thinc.neural.nn cimport NeuralNet
from thinc.extra.eg cimport Example
from thinc.structs cimport ExampleC

from .structs cimport TokenC
from .vocab cimport Vocab


cdef class TaggerNeuralNet(NeuralNet):
    cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, int i) except *
 
cdef class CharacterTagger(NeuralNet):
    cdef readonly int depth
    cdef readonly int hidden_width
    cdef readonly int chars_width
    cdef readonly int tags_width
    cdef readonly float learn_rate
    cdef readonly int left_window
    cdef readonly int right_window
    cdef readonly int tags_window
    cdef readonly int chars_per_word
    cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, object strings, int i) except *

cdef class Tagger:
    cdef readonly Vocab vocab
    cdef readonly CharacterTagger model
    cdef public dict freqs
{'fraction_non_alphanumeric': 0.04676018704074816, 'fraction_numerical': 0.0, 'mean_word_length': 4.407942238267148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5853656', 'n_tokens_mistral': 473, 'n_tokens_neox': 462, 'n_words': 170}