process method

UDPipeResult process(
  1. String text
)

Runs UDPipe on text and returns the parsed result.

Implementation

UDPipeResult process(String text) {
  if (!isAvailable) return UDPipeResult.empty;
  final conllu = _jsProcess(_handle.toJS, text.toJS)?.toDart;
  if (conllu == null || conllu.isEmpty) return UDPipeResult.empty;
  return buildUDPipeResult(conllu);
}