Make a StringParser
using CitableParserBuilder
= CitableParserBuilder.gettysburgParser(repo) |> StringParser parser
Package version: 0.30.1
June 8, 2024
Make a string-backed parser.
Generate a full analysis with token from a lexeme and a morphological form. The result will be a (possibly empty) vector of analyses.
lex = LexemeUrn("gburglex.come")
mform = FormUrn("pennpos.VBN")
matches = generate(lex, mform, parser)
1-element Vector{Analysis}:
Analysis("come", gburglex.come, pennpos.VBN, gburgstem.come, gburgrule.pennid)
Use the token
function to extract surface tokens (here, using Julia broadcasting).
DFParsers work exactly the same way. Convert a string-backed parser to a dataframe-backed parser.
1-element Vector{InlineStrings.String15}:
"come"