From 6c4108c0732494186b7e19d63173809d9859fdb8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 11 Mar 2017 12:45:12 -0600 Subject: [PATCH] Add header for beam parser --- spacy/syntax/beam_parser.pxd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spacy/syntax/beam_parser.pxd diff --git a/spacy/syntax/beam_parser.pxd b/spacy/syntax/beam_parser.pxd new file mode 100644 index 000000000..35a60cbf3 --- /dev/null +++ b/spacy/syntax/beam_parser.pxd @@ -0,0 +1,10 @@ +from .parser cimport Parser +from ..structs cimport TokenC +from thinc.typedefs cimport weight_t + + +cdef class BeamParser(Parser): + cdef public int beam_width + cdef public weight_t beam_density + + cdef int _parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) except -1