Elamur Research

VnCoreNLP: A Vietnamese Natural Language Processing Toolkit

Paper · 2018 · Thanh Vu, Dat Quoc Nguyen, Dai Quoc Nguyen et al.

Summary

Spaces in written Vietnamese can occur inside a word. A program that treats each space as a word boundary can therefore hand the rest of its analysis the wrong units. VnCoreNLP starts by deciding which syllables belong together. It then gives the resulting words grammatical labels through part-of-speech tagging, identifies names and other entity spans through named entity recognition, and uses dependency parsing to show which words are grammatically linked. The paper presents these operations as an open-source Java toolkit that can process text from the command line or through a Java interface.

The authors develop a rule-learning approach for the Vietnamese word segmenter and build the subsequent stages from existing feature-based techniques. The stages record their results on a shared annotation object, so an application can use the whole analysis or work with the output for an individual sentence. In the paper’s example, the segmenter groups the syllables of a person’s full name into a word, the entity recognizer marks that word as a person, and the dependency analysis gives it a grammatical connection to another word in the sentence. The same output can represent an organization name that extends across several words.

The authors report a Vietnamese word segmentation F1 score of 97.90% and part-of-speech tagging accuracy of 95.88%, drawing on their companion studies. On the 2016 VLSP named entity test set, VnCoreNLP achieves 88.55% F1 with reference word boundaries and automatically predicted grammatical tags. On the VnDT dependency test set, its highest labeled attachment score is 73.39 with reference word boundaries and reference grammatical tags. The labeled score counts an attachment as correct when both the grammatical head and the relation label match the reference. With grammatical tags supplied by the toolkit, the corresponding score is 70.23.

The paper couples these quality measurements with processing speeds measured on a personal computer. The recognizer runs at 18K words per second when the timing includes grammatical tagging, and the parser’s reported automatic-tagging run reaches 8K words per second. The comparisons also show where particular kinds of input matter. Character information helps the recurrent entity recognizers chiefly on person names, while automatically predicted grammatical tags offer those recognizers little benefit in the tested configurations. The dependency parser gains some labeled attachment accuracy from predicted entity labels. Together, the experiments show what the integrated components can do under specified input conditions, with reference word boundaries still in place for the entity recognition and dependency tests.

Deep dive: VnCoreNLP: A Vietnamese Natural Language Processing Toolkit

VnCoreNLP brings Vietnamese word segmentation, grammatical tagging, entity recognition, and dependency parsing into one tested Java pipeline. · about 38 minutes to read

The problem and its context

From separate tasks to a text analysis pipeline

The toolkit addresses a practical problem that arises once several kinds of linguistic analysis are available for a language. A researcher may want to find references to people and organizations in a collection of articles, or inspect the grammatical relationship between a name and a verb. Each operation requires decisions about the text, and these decisions need a common unit. A name recognizer may predict a span of words, while a parser may assign each word a grammatical head. If the programs disagree about which syllables form a word, their outputs may refer to different sequences even when they process the same sentence. Work on individual components creates the opportunity for a pipeline, but the handoff between components is part of making those advances usable.

The paper describes Vietnamese natural language processing as an area where public evaluation resources had become available for several foundational tasks. It acknowledges that a national project focused on processing Vietnamese language and speech helped spur the research. The first VLSP evaluation campaign, in 2013, released data for word segmentation and grammatical tagging. A Vietnamese dependency treebank followed in 2014, and the second VLSP campaign, in 2016, supplied a named entity dataset. These resources made it possible to compare successive approaches on defined tasks. They also gave the authors a reason to make those tasks available together to researchers building applications that depend on their output.

A benchmark supplies examples of the decisions an annotator is expected to make. In word segmentation, the reference says which units should count as words. In grammatical tagging, it says which category applies to each word. An entity benchmark records spans and categories. A treebank supplies sentences with a structural analysis, which in this paper is used to evaluate the heads and relation labels assigned by a parser. The availability of all these resources makes it possible to ask both an experimental question about performance on a task and an engineering question about how to pass the outputs from one task to the next.

The authors cite Stanford CoreNLP as an example of the kind of integrated toolkit they wanted to make available for Vietnamese. The comparison concerns the arrangement of the software. An application can request a sequence of annotations and receive the results through a common interface. For Vietnamese users, the benefit would be access to the language’s established processing tasks without having to assemble a separate program and data interface for each. The motivation covers both developers who need an intermediate layer of linguistic analysis and researchers who want to work directly with that analysis.

Why the word boundary comes first

The paper contrasts the role of spaces in Vietnamese writing with their role in English. In Vietnamese, a space can separate syllables that belong to the same word. A space-delimited piece is therefore insufficient as a general definition of the unit to which the toolkit should assign a grammatical label or a dependency relation. Word segmentation resolves that ambiguity for the stages that follow. A change in segmentation can alter the units being labeled, the positions at which an entity begins and ends, and the set of positions a parser can choose as heads.

The paper’s name example gives this issue a concrete form. Its toolkit output puts the syllables in Nguyễn_Khắc_Chúc together in one entry. The raw writing has spaces between those syllables, and the named entity dataset initially represents them separately. The word segmentation and part-of-speech conventions used by the authors treat a full name as one word. For the authors, a realistic entity test has to reconcile those choices before it can assess the behavior of a recognizer using the toolkit’s grammatical tags.

That example also separates word boundaries from entity boundaries. An entity recognizer identifies a span that has a type, such as a person or an organization. A full personal name can occupy one entry in the output after segmentation. The organization in the paper’s demonstration occupies multiple entries and receives labels that connect them into one span. The grouping reflects two kinds of analysis. The segmenter establishes the word units, and the recognizer marks which of those units jointly refer to a named entity.

The need to segment Vietnamese was established before VnCoreNLP. The authors recount earlier pipelines that reused segmenters such as JVnSegmenter and vnTokenizer, along with grammatical taggers such as JVnTagger and vnTagger. They cite comparative work to explain why they saw room for improvement in the component choices available to such pipelines. The older systems also supply precedents for composing existing tools, including a Vietnamese segmenter studied with conditional random fields and support vector machines and a tagger studied with maximum entropy methods. Vietnamese Word Segmentation with CRFs and SVMs · Maximum entropy tagging for Vietnamese

The practical comparison the authors wanted

NNVLP offered a more recent point of comparison. The paper describes it as a Vietnamese toolkit for sequence labeling using a bidirectional recurrent architecture with character processing and a conditional random field. A sequence labeling task assigns labels along an ordered input, as grammatical tagging and entity recognition do. The authors saw an open comparison with strong feature-based systems, and they regarded NNVLP’s processing speed as a practical constraint when working with large text collections. This gave them a reason to compare component architectures as well as to package Vietnamese annotations together.

The authors’ starting judgment was that feature-based techniques were worth considering for a language with limited resources. In these techniques, a feature is a piece of information made available to the decision procedure. A grammatical tag or an entity label, for instance, can serve as a feature for a subsequent task. The usual alternatives in the comparisons learn much of their internal representation through recurrent processing. The paper treats the relative merits of the approaches as an empirical question about Vietnamese tasks, with prediction quality and processing cost both relevant to the answer.

For the authors, the under-served use case is a researcher or developer who needs several annotations for ordinary text and may have limited computing resources. Separate benchmark advances help with this use case only after they can be turned into a runnable analysis with compatible inputs and outputs. The paper’s response has a language-specific element, the word segmenter, and an integration element that brings existing tagging, recognition, and parsing techniques into a shared pipeline. This distinction matters to its contribution. The authors set out to select, adapt, and evaluate a combination of components, with a new segmentation approach where the requirements of written Vietnamese directly shape the first stage.

The method, step by step

How raw text becomes an annotated sentence

VnCoreNLP accepts text and attaches successive layers of linguistic annotation to it. The paper presents an Annotation object as the place where the pipeline records its work. The input can be short enough to inspect one sentence at a time, or long enough to contain a paragraph or a news story. The Java example shows that an application can request the component sequence, pass text to an annotation object, run the pipeline, and retrieve an individual sentence from the result. The command-line interface offers a file-based route to the same kind of analysis.

A shared object makes it possible for the stages to refer to the same sentence and the same word positions. After segmentation, a grammatical category can be attached to a word, an entity label can describe its place in a span, and a dependency can point from that word to another position. The output format reflects this arrangement. It gives each word an index, shows the segmented form, records its grammatical category and entity label, and provides the index of its head along with the relation to that head.

How VnCoreNLP annotates Vietnamese text

The steps in order.

How VnCoreNLP annotates Vietnamese textStep 1: Place the text in an annotation object1. Place the text in an annotation objectStep 2: Group syllables into words2. Group syllables into wordsStep 3: Assign grammatical categories to words3. Assign grammatical categories to wordsStep 4: Mark and classify named entity spans4. Mark and classify named entity spansStep 5: Choose dependency heads and relation labels5. Choose dependency heads and relation labelsStep 6: Return the annotated sentences6. Return the annotated sentences

The paper describes a Java archive that bundles the components so users can set up the toolkit without installing external dependencies for them. Its examples use the short component names wseg, pos, ner, and parse to identify the requested operations. The same analysis can be inspected as plain text or accessed through sentence objects in Java. The authors released the toolkit as open-source software for research and educational use. These are properties of how the system is delivered and called. The quality and speed measurements concern the behavior of the components once they have input to analyze.

The flow is a runtime description. The experiments also involve choices made before a component runs, such as how benchmark text is segmented and whether the grammatical tags come from human annotations or from the toolkit. The distinction is especially important here because the examples start with ordinary text, while the recognition and dependency comparisons start with reference word boundaries. The software supports the former, and the controlled comparisons measure what particular components do in the latter.

Segmenting syllables into words

The word segmenter takes on the task most directly tied to the writing system. Its input contains syllable sequences in which spaces can occur on either side of a word boundary or within a word. Its output establishes the units that the rest of the system will label. In the demonstration, làm_việc appears as one unit. The connector makes the grouping visible in the plain-text result, where a row needs to represent the whole word. The same convention shows Nguyễn_Khắc_Chúc as one word despite the spaces in the original writing.

The paper identifies the approach as transformation rule learning. A transformation, in this setting, changes a segmentation decision. Learning such rules uses examples of the segmentation the system is expected to produce, so that rule application can adjust boundary decisions for new text. This description tells the reader what kind of evidence the method learns from and what its rules act on. The toolkit paper delegates the precise rule design and the fuller segmentation evaluation to A Fast and Accurate Vietnamese Word Segmenter.

The segmenter’s output also puts constraints on subsequent decisions. When a full name sits at one word position, the tagger can give that position a single grammatical category. The entity recognizer can then identify a person at that position. When the written syllables are kept separate, all of those operations have more positions to account for, including decisions about which syllable begins the entity and which ones continue it. In the dependency representation, the single-position form also means that the parser links to the whole segmented name as a unit. The paper’s discussion of benchmarking takes these differences seriously because they follow from the annotation convention as much as from the prediction algorithm.

Assigning grammatical categories

After segmentation, the part-of-speech tagger assigns each word a grammatical category. A tag describes the role or category assigned to a word in the scheme, such as a verbal or nominal category. The tagger applies MarMoT, which the authors describe as a general framework for tagging grammatical categories and morphological information. It uses a conditional random field, abbreviated CRF. In sequence tagging, a CRF scores a sequence of labels in relation to the observed words. It can take account of neighboring labeling decisions when choosing the sequence, so a word’s category is assessed in context.

MarMoT is an existing technique brought into the Vietnamese pipeline. The use of a general tagger here differs from the language-specific development of the segmenter. The authors train the grammatical component for Vietnamese and use it to generate the categories that can be supplied to later stages. Their companion study gives the detailed tagging evaluation. The toolkit paper reports its headline accuracy and processing speed and describes how automatic tags enter the experimental setup for the entity recognizer and the parser.

The tag shown for a word in an output sentence reflects a predicted category. In an experiment, the authors can replace predictions with gold tags, the annotations taken as the reference. This substitution makes sense when the aim is to assess the downstream component under a fixed, carefully annotated input. Automatic tags instead let the experiment include the quality of the upstream tagger’s decisions. The two conditions answer different questions, so a reader needs to carry the distinction forward when examining both the entity and the parsing results.

Grammatical tags are also distinct from dependency labels. A category applies to a word. A relation describes how a word connects to its head. The combination lets the system say both what kind of unit it has found and how that unit fits into the sentence’s structure. In the demonstration, the verbal entry làm_việc carries the grammatical tag V and also has the dependency relation root. The fields answer separate questions even when they appear on the same output row.

Recognizing and classifying names

The named entity stage assigns categories to spans of words. The benchmark uses the labels PER, LOC, ORG, and MISC, for person, location, organization, and miscellaneous entities. The example output uses a beginning marker B and an inside marker I to record how typed spans extend across word positions. A tag such as B-ORG begins an organization mention, and I-ORG continues it. The tag O marks a position outside an entity. The span notation lets the output distinguish adjacent mentions and represent a mention occupying several words.

VnCoreNLP uses dynamic feature induction for the recognition stage. The authors describe this method as automatically optimizing combinations of features. A combination lets the recognizer take several observations into account together when deciding a label. The contribution of this stage to VnCoreNLP is the adoption and evaluation of the existing method on Vietnamese, using data prepared to match the word units and predicted grammatical labels available in the pipeline. The paper gives the name of the technique and the procedure for adapting the data, while leaving the exact feature templates and the induction algorithm to the cited work.

The output example shows how the stage operates on the rest of the annotation. Nguyễn_Khắc_Chúc is marked B-PER, and the following word is outside the person span. Đại_học begins an organization mention, with Quốc_gia and Hà_Nội marked as continuations. That part of the result illustrates why a word form need not determine its entity class by itself. In this sentence Hà_Nội occurs inside the organization span, and its label reflects that use. The recognizer assigns types to mentions in context, with segmentation providing the positions on which those decisions are recorded.

The authors compare the feature-based recognizer with recurrent alternatives. A bidirectional long short-term memory network, abbreviated BiLSTM, processes the sequence in both directions, giving a position access to context on both sides. A CRF layer then scores the labels along that sequence. In the character-aware variants, the input representation of a word also incorporates the characters within it. The convolutional variant learns representations from local character patterns, while the recurrent character variant derives them by processing the character sequence. The baseline without these additions serves as the reference for interpreting the value of the character information. BiLSTM-CRF for sequence tagging · Convolutional character representations · Recurrent character representations for entity recognition

Another baseline variant adds representations of automatically predicted grammatical tags. This gives the recognizer information produced by a separate component in addition to the words and, where applicable, their characters. The authors use an existing implementation for the recurrent comparisons, apply the tuning procedure described in their companion tagging study, and use pretrained Vietnamese word embeddings. An embedding is a numerical representation used as input, here learned for Vietnamese words before the entity recognition experiment. The sources of the word representations, character representations, and grammatical tag representations thus differ even though they can all influence the final sequence of entity labels. Reimers and Gurevych’s sequence tagging study

Preparing the entity annotations for the pipeline

The shared-task entity data supplies grammatical tags marked by annotators, and its treatment of personal names differs from the word conventions used to train the segmenter and tagger. Both differences affect the meaning of a comparison. Gold grammatical labels give a recognizer information that the toolkit would have to predict for ordinary input. Separating each syllable of a full name gives the recognizer and tagger a different series of word positions from the ones used in the toolkit. The authors alter the data so their main pipeline setting uses grammatical evidence over compatible word units.

To change the name boundaries, they use the reference person labels to identify contiguous syllables that form a full name. In the paper’s example, the label on Nguyễn begins the person name and those on Khắc and Chúc continue it. The authors merge these syllables into Nguyễn_Khắc_Chúc and put the beginning label on the resulting entry. The benchmark transformation uses the reference labels as evidence for grouping. Runtime segmentation in the architecture occurs earlier than entity recognition, and the merge in the experimental data is a way of preparing a reference input instead of a description of the segmenter’s runtime rules.

After the merge, the authors replace the gold grammatical tags with predictions from the toolkit’s tagger for the automatic-tag condition. The order matters. Once the name has been combined, automatic tagging supplies a category for the full word that the recognizer will see. The authors sample development sentences from the shared training and development pool, then train on the remaining sentences. The development data supports choices made before final testing, including the tuning for the recurrent comparisons. The shared-task test set supplies the data on which the final entity recognition scores are reported.

This procedure makes the grammatical input more representative of the toolkit’s own predictions while retaining gold word segmentation for evaluation. It also establishes the conditions behind the character analysis. The recognizer sees a full personal name as a word, and characters can reveal parts of that name even if the whole word is unfamiliar. A character-aware architecture on syllable-by-syllable input would face a different representation problem, since some name pieces would already be available as separate word entries.

Building a dependency analysis

The final stage connects words into a grammatical structure. In a dependency analysis, each ordinary attachment identifies a head and a relation to it. The head index says where the dependent word attaches. The relation label says what kind of grammatical connection that attachment represents. In the paper’s demonstration, làm_việc is the root, đang attaches to it with the label adv, and the final punctuation also points to the root word with its own relation label. An application can read the head index together with the word index to recover each of those links.

The authors use the greedy version of a transition-based parser whose broader design includes selectional branching. A transition-based parser constructs the analysis through a succession of decisions that change its state. A greedy procedure chooses a preferred next action at each step and proceeds from there. This explains the broad form of the computation. The paper identifies the parser it uses and evaluates the resulting attachments, while the exact inventory of actions and the classifier’s scoring procedure belong to the cited parser work.

The parser can receive the recognizer’s predicted entity labels as additional features. In this use, an entity label is evidence that may influence a grammatical decision. It does not directly supply a head or a grammatical relation. The authors compare parser configurations with and without this feature group, and they run both configurations with gold or automatic grammatical tags. In the condition with automatic tags and entity features, information from both earlier tagging stages can affect the final dependency output.

For parser training and testing, the paper follows an established split of the VnDT treebank. This gives the authors manually annotated head and relation decisions against which to train and evaluate, and it makes the comparison with earlier published systems easier to interpret. The account is algorithmic and procedural. The paper presents no mathematical equations for the component objectives, the segmentation rules, or the parser’s actions. Its technical detail lies in the component choices, the input conditions, the benchmark preparation, and the way the annotations fit together.

Experiments and results

Segmentation, grammatical tagging, and timing

The paper brings together results for all pipeline stages, with the fuller accounts of word segmentation and grammatical tagging appearing in companion studies. It reports segmentation F1 of 97.90% and a segmentation speed of 62K words per second. F1 combines precision and recall. Precision asks how many of the system’s proposed words match the reference, and recall asks how many reference words it recovers. The reported value describes the accuracy of the word segmentation component on its benchmark. The toolkit paper points to the companion study for a detailed account of the dataset and experimental comparisons behind that result.

For grammatical tagging, the paper reports accuracy of 95.88% and a tagging speed of 25K words per second. Accuracy here is the share of evaluated word positions receiving the correct category. The authors report that the component outperforms the BiLSTM-CRF alternatives from their tagging study. The demonstration paper gives the headline numbers, with the detailed split and baseline results left to the companion account. Thus the segmentation and tagging figures establish how the authors summarize those components, while the subsequent experiments provide fuller datasets, settings, and comparison rows for recognition and parsing.

All speeds in the paper come from a personal computer with an Intel Core i7 2.2 GHz processor. The unit is words processed per second, which is a throughput measure. It tells a reader how much text passes through a timed configuration per unit of time. The timings attach to particular components or combinations of stages, and the paper explicitly includes grammatical tagging in VnCoreNLP’s recognition timing. Keeping those boundaries in view matters when comparing the recognizer against an alternative or considering a run that requests every annotation.

Named entities on the VLSP test set

For training and development, the VLSP entity task from 2016 provides 16,861 sentences annotated by hand, with another 2,831 hand-annotated sentences for testing. From the training and development pool, the authors sample 2,000 sentences for development and use the remaining 14,861 for training. The task recognizes people, locations, organizations, and miscellaneous entities. The reference word units and the conversion of personal names discussed above set the basis on which all the entity scores in the paper are read.

The test metric is entity F1, reported as a percentage. At the level of an entity, the prediction has a span and a type. The metric rewards recovering the expected mentions while penalizing extra or missed ones. In this experiment the recognizers work with gold word segmentation. Their scores therefore assess whether they can locate and classify entities given the reference word units, with the grammatical-tag condition varying across the reported systems. A full name occupies the prepared word entry even if an automatic word segmenter would have made a different decision on the same text.

The comparison includes the feature-based VnCoreNLP recognizer, the plain BiLSTM-CRF, and the recurrent architecture with either convolutional or recurrent character information. The paper also evaluates versions of the recurrent alternatives with automatically predicted grammatical tags added. This makes it possible to compare the feature-based pipeline recognizer with the strongest recurrent configuration in the table and to examine what happens when the recurrent recognizers receive additional character or grammatical information.

VnCoreNLP records 88.55 F1 on the VLSP test set. The strongest recurrent result is 88.28 for the convolutional character variant in the group reported under gold grammatical tags. The plain BiLSTM-CRF in that group scores 86.48, and the variant with recurrent character representations scores 87.71. The groups matter when interpreting the overall ranking. The feature-based recognizer uses automatic grammatical tags under the authors’ pipeline setup. The paper groups the first recurrent comparison rows under gold POS and gives a separate group for the variants incorporating automatic POS. The chart records those comparisons with their input designations.

Recognizer comparison on the 2016 VLSP named entity test set by F1

VnCoreNLP leads the reported comparison and the convolutional character variant is the closest recurrent alternative.

Recognizer comparison on the 2016 VLSP named entity test set by F1BiLSTM-CRF, gold POS group: 86.48BiLSTM-CRF, gold POS group86.48BiLSTM-CRF with CNN characters, gold POS group: 88.28BiLSTM-CRF with CNN characters, gold POSgroup88.28BiLSTM-CRF with LSTM characters, gold POS group: 87.71BiLSTM-CRF with LSTM characters, goldPOS group87.71BiLSTM-CRF with automatic POS: 86.12BiLSTM-CRF with automatic POS86.12BiLSTM-CRF with CNN characters and automatic POS: 88.06BiLSTM-CRF with CNN characters andautomatic POS88.06BiLSTM-CRF with LSTM characters and automatic POS: 87.43BiLSTM-CRF with LSTM characters andautomatic POS87.43VnCoreNLP with automatic POS (this paper): 88.55VnCoreNLP with automatic POS (thispaper)88.55
The numbers
System or settingF1 %
BiLSTM-CRF, gold POS group86.48
BiLSTM-CRF with CNN characters, gold POS group88.28
BiLSTM-CRF with LSTM characters, gold POS group87.71
BiLSTM-CRF with automatic POS86.12
BiLSTM-CRF with CNN characters and automatic POS88.06
BiLSTM-CRF with LSTM characters and automatic POS87.43
VnCoreNLP with automatic POS (this paper)88.55

The recognition timing gives a different view of the comparison. VnCoreNLP processes 18K words per second, including the time to generate the grammatical tags it uses. The plain BiLSTM-CRF processes 2.8K words per second in its timed row. The variant that uses convolutional character representations processes 1.8K, and the one that uses recurrent character representations processes 1.3K. The paper leaves the timing cells for the additional automatic-POS variants unfilled. The timed rows establish that VnCoreNLP substantially outpaces the tested recurrent alternatives on this machine, including the one with the closest entity F1. They also show that adding character information incurs a cost in these implementations.

The scoring and timing columns should be read together when deciding what the paper has demonstrated. The higher entity F1 for the VnCoreNLP row accompanies higher throughput in the configurations for which both values are reported. A reader interested in the effect of character processing can also compare the recurrent rows internally. The convolutional and recurrent character variants recover more reference entities overall according to F1 than their plain counterpart, while their measured throughput is lower. These are results for the implementations and data used in the paper. An architecture-level speed conclusion would require controlling additional implementation choices.

Dependencies on the VnDT test set

VnDT contains 10,200 sentences. The authors follow the experimental convention in the earlier Vietnamese parsing study and reserve the last 1020 sentences for testing. The remaining sentences supply the training set. All the attachment scores use gold word segmentation and include punctuation. The latter choice can matter when comparing results across papers because a scorer that omits punctuation evaluates a different set of attachments.

The authors report labeled attachment score, abbreviated LAS, and unlabeled attachment score, abbreviated UAS. For UAS, the relevant decision is the identity of the head. LAS also requires the correct relation type for that attachment. For example, the punctuation entry in the demonstration has both an index for its head and a punctuation relation. An unlabeled scorer checks the index. A labeled scorer checks the index and the relation together. Looking at both metrics helps distinguish a system that often chooses the expected head from one that also assigns the expected grammatical relation.

The gold-POS comparison includes two VnCoreNLP configurations and earlier results for BIST-bmstparser, BIST-barchybrid, MSTParser, and MaltParser. The BIST systems use bidirectional recurrent feature representations for parsing. MSTParser and MaltParser are earlier parsing baselines cited through the preceding Vietnamese parsing study. In this group the gold grammatical tags give the compared systems the same kind of upstream information. The VnCoreNLP parser with entity features has an additional input, so the authors also show a row for the parser with those features removed. BIST dependency parsing · MSTParser

Parser comparison on the VnDT test set with gold POS by labeled attachment score

Both VnCoreNLP configurations lead the reported labeled comparison.

Parser comparison on the VnDT test set with gold POS by labeled attachment scoreMaltParser: 69.10MaltParser69.10MSTParser: 70.29MSTParser70.29BIST-barchybrid: 72.53BIST-barchybrid72.53BIST-bmstparser: 73.17BIST-bmstparser73.17VnCoreNLP without NER features: 73.21VnCoreNLP without NER features73.21VnCoreNLP with NER features (this paper): 73.39VnCoreNLP with NER features (this paper)73.39
The numbers
System or settingLAS %
MaltParser69.10
MSTParser70.29
BIST-barchybrid72.53
BIST-bmstparser73.17
VnCoreNLP without NER features73.21
VnCoreNLP with NER features (this paper)73.39

On labeled attachments in the gold-POS group, VnCoreNLP with entity features scores 73.39 and the version without them scores 73.21. The strongest older LAS in that group is 73.17 from BIST-bmstparser. The other BIST configuration reports 72.53, followed by 70.29 for MSTParser and 69.10 for MaltParser. The ranking supports the authors’ claim about the highest published LAS under this setup. It also shows that the comparison with the strongest prior parser is close, particularly when both systems are evaluated without additional entity features.

The UAS order is different. BIST-bmstparser reports 79.39 on the VnDT test set with gold POS, and BIST-barchybrid reports 79.33. VnCoreNLP with entity features has 79.02, and its version without those features has 78.91. MSTParser and MaltParser report 76.47 and 74.91, respectively. The results therefore give the strongest labeled and unlabeled figures in that part of the table to different systems. For readers using attachments as head links, the unlabeled ordering is relevant. For readers requiring the expected head and relation together, the labeled ordering is the appropriate comparison.

The automatic-POS part of the table shows how the VnCoreNLP parsers behave with the toolkit’s grammatical predictions. With entity features, the parser scores 70.23 LAS and 76.93 UAS. Without those features, the scores are 70.10 LAS and 76.85 UAS. Both configurations still use the reference word boundaries. The last row gives jPTDP as a further point of comparison. That system performs grammatical tagging and dependency parsing jointly and records 69.49 LAS and 77.68 UAS. VnCoreNLP leads the labeled comparison in this part of the table, while jPTDP records the highest UAS among these rows.

Labeled attachments on the VnDT test set with automatic or joint POS tagging

VnCoreNLP with predicted entity features gives the highest labeled score in this comparison.

Labeled attachments on the VnDT test set with automatic or joint POS taggingjPTDP with joint POS tagging and parsing: 69.49jPTDP with joint POS tagging and parsing69.49VnCoreNLP with automatic POS and without NER features: 70.10VnCoreNLP with automatic POS and withoutNER features70.10VnCoreNLP with automatic POS and NER features (this paper): 70.23VnCoreNLP with automatic POS and NERfeatures (this paper)70.23
The numbers
System or settingLAS %
jPTDP with joint POS tagging and parsing69.49
VnCoreNLP with automatic POS and without NER features70.10
VnCoreNLP with automatic POS and NER features (this paper)70.23

For the parsing rows with reported speed, the VnCoreNLP configurations process 8K words per second with entity features and 9K without them. The jPTDP row reports 700 words per second. The older rows in the gold-POS group have no speed values in the table. The available timings therefore support a comparison with the joint tagger and parser and between the toolkit configurations. The experiment’s reference segmentation and its reported timing conditions still apply. Combining the printed component rates into a separate estimate for total throughput would introduce a result the authors did not measure.

Reading the results across tasks

The paper’s performance case rests on several different observations. The segmentation and tagging figures summarize component studies. The entity experiment directly compares the feature-based recognizer with variants of a recurrent alternative and gives speed measurements for a subset of those rows. The dependency experiment compares with prior published scores, separates reference and predicted grammatical input, and adds a feature-removal comparison. These forms of evidence complement one another, but their scores describe different decisions and their test inputs differ.

In particular, the entity F1 and the labeled attachment score can both be written as percentages while measuring different kinds of decisions. An entity result concerns the recovery and typing of spans, and the attachment score concerns heads and relation labels at word positions. The conditions also give the scores different meanings as tests of pipeline behavior. VnCoreNLP’s headline entity result puts the automatic grammatical tagger in the loop, and its headline labeled parsing result uses gold grammatical tags. The automatic-tag parsing rows show a closer approximation to that part of a normal pipeline run while preserving reference word boundaries.

The throughput results matter because the intended use includes processing substantial text collections without requiring elaborate computing resources. The reported machine and the definition of the timing lend the figures a concrete basis. The strongest practical result is the combination observed within the measured settings. Recognition is fast while its F1 leads the comparison, and parsing retains a labeled-score advantage when predicted tags are used in the comparison with the joint system. The ablations help clarify how much of that performance is associated with particular inputs.

What the ablations show

Character information mainly helps with people’s names

An ablation evaluates what changes when a system gains or loses one part while keeping a common base. The paper offers comparisons of that kind in the recurrent recognition experiments and in the dependency parser. For recognition, the plain BiLSTM-CRF supplies the base, and the two character variants add different ways of representing the characters of a word. Both reach higher entity F1 than the plain base. The convolutional character variant has the highest reported F1 among the recurrent alternatives, and the timing shows that the additional character processing lowers throughput in the configurations measured.

The authors investigate which entity category accounts for the improvement. They find that most of the benefit comes from PER, the person category. The paper reports that about 50% of the named entities have this label. Its explanation connects the result to the segmentation convention. A full personal name can be unfamiliar as an entire word while containing family, middle, or given name syllables that the system has encountered in other names. A representation based on characters can give a recognizer access to recurring pieces inside the full name. That evidence remains available when the whole name has little support as an individual word entry.

The case is informative because the authors discuss Vietnamese as a language without word inflection. Character information can matter even when it has no inflectional endings to recover in this setup. Here the paper attributes its main benefit to patterns within names. The category analysis supports that interpretation by locating most of the aggregate gain in person recognition. It leaves open how the gain divides among the kinds of name syllables and how much help individual character patterns provide. The paper gives a category-level account rather than scores for those finer distinctions.

The representation of a full name as one word is part of the explanation. If the same material arrives as separate syllables, an architecture can already inspect those syllables as input positions. Under the prepared benchmark, a character-aware representation makes internal cues available without splitting the name in the word sequence. The improvement thus concerns the combination of an architecture and an input representation. The experiment gives a reason to read character results alongside the token conventions under which the recognizer was trained and tested.

Predicted grammatical categories add little to the recurrent recognizers

The recurrent comparisons also test the addition of embeddings for automatically predicted grammatical tags. The POS-augmented variants show no F1 gain in the paper’s table. The same pattern appears for the plain recurrent base and for both methods of incorporating character information. The paper thus finds little value from giving these particular recurrent recognizers an explicit, noisy grammatical prediction in the evaluated setup.

The authors offer a linguistic and architectural explanation. A bidirectional recurrent network already represents the order of words around a position, and they argue that order carries a great deal of grammatical information in Vietnamese. Automatic tags can repeat some of that evidence and can introduce errors. Under that interpretation, the extra input is sometimes redundant and sometimes unreliable. The table supports the immediate observation about these variants. The explanation about what the recurrent representation has already learned remains an interpretation because the experiment does not isolate the word-order evidence it encodes.

The comparison also helps separate two design questions. One is whether a pipeline should make a grammatical tagger available. The other is whether a particular recognizer improves when it uses that tagger’s predictions as input. The recurrent POS variants address the latter question. A grammatical tagger can still serve other consumers of the pipeline’s output, and the parser comparisons show that the quality of the grammatical input has consequences for another downstream task. The usefulness of an annotation as a feature has to be assessed at the point where it is used.

Entity features make a modest contribution to labeled parsing

The dependency experiment removes predicted entity labels from the feature set used by VnCoreNLP. With gold grammatical tags, the parser without entity features reports 73.21 LAS and 78.91 UAS. The full configuration reports 73.39 LAS and 79.02 UAS. The direction is the same with automatic grammatical tags. The configuration using entity features records 70.23 LAS and 76.93 UAS, while the version without those features records 70.10 LAS and 76.85 UAS. As a comparison within the VnCoreNLP parser, the feature removal shows that the measured contribution is consistently favorable and modest.

The gold-POS comparison with prior work makes the removal especially useful. The earlier parsers are reported without the additional entity features. The VnCoreNLP row without them gives a comparison closer in the information supplied to the parsers, and it retains the highest LAS in the gold-POS group. The full configuration answers a second question about the highest labeled score the toolkit reports when it can use its own entity recognizer’s output. The experiment distinguishes these outcomes without requiring the reader to attribute the full benchmark lead to the extra input.

The timed automatic-POS rows also show an observable cost associated with the configuration that uses entity features. Removing those features corresponds to the 9K words-per-second row, while keeping them corresponds to the 8K row. The paper gives the resulting throughput for each configuration. It leaves open how the cost divides among obtaining the entity predictions, representing them for the parser, and using them in parsing decisions. The useful observation is the paired result a user of those configurations can see in the table, with labeled accuracy and speed reported under each condition.

Gold and predicted grammatical tags change the parsing result

Switching the source of the grammatical tags provides a related controlled comparison. The VnCoreNLP parser with entity features has better labeled and unlabeled scores with gold tags than with automatic tags, and the configuration without entity features shows the same ordering. These rows measure the consequence of using the tagger’s predictions in the parsing setup while retaining reference segmentation. They make it possible to distinguish a result conditional on accurate upstream grammatical annotation from a result obtained with the toolkit’s own tagging component.

The part-of-speech and entity comparisons together suggest that the value of extra information depends on how the downstream system uses it. The recurrent recognizers gain from internal character information and receive little benefit from predicted grammatical tags in the reported tests. The parser gains modestly from predicted entity labels and performs better when its grammatical tags come from the reference. Each conclusion comes from a specific comparison. The paper leaves the exact names and constructions that produce the parsing gains unexplained because it evaluates the feature groups through aggregate attachment scores.

Limitations

Limits the authors identify

The authors say that the released tagging, recognition, and parsing components use existing pre-defined features without further Vietnamese-specific linguistic optimization. Their new contribution at the word boundary stage draws directly on the segmentation problem, while the later components reuse general techniques. The conclusion identifies Vietnamese linguistic features as a direction for further work. The paper’s results establish what the chosen feature sets achieve in the toolkit and leave the effect of adding such features for future evaluation.

The authors also identify limitations of the original named entity annotation for their pipeline evaluation. Human-supplied grammatical tags are unavailable when the toolkit receives ordinary text. Syllable-level treatment of full personal names is at odds with the word convention used in the segmentation and tagging data. The conversion and automatic-tagging procedure address these concerns explicitly. They give the experiment grammatical inputs that the toolkit can generate and name units that the downstream components can share. The remaining dependence on reference word segmentation defines how far the comparison moves toward a run on raw text.

The paper directs readers to companion studies for the detailed segmentation and grammatical tagging results. A reader can recover the headline measurements and the identity of the methods from the toolkit paper. The full experimental conditions for those earlier component evaluations, as well as details of the learned segmentation rules and tagging setup, require the companion accounts. This reflects the paper’s focus on demonstrating an integrated toolkit and reporting dedicated recognition and parsing comparisons.

Limits that follow from the experiments

The principal limit for interpreting end-to-end quality is the use of gold word segmentation in the entity and dependency tests. In a normal pipeline run, the segmenter makes the boundary decisions. A mistaken boundary can change the grammatical sequence, the positions that define an entity span, and the available dependency heads. The later-component scores describe their performance once the reference word units are in place. They leave open the size and character of any loss from automatic segmentation when the pipeline runs on raw sentences.

The full-name conversion makes that boundary particularly clear. The preparation uses gold person labels to identify which syllables to join into a word. In use, the segmenter must decide the boundaries from the input before the entity recognizer assigns a label. The evaluation can show how well the recognizer classifies a correctly grouped name and how character information helps on names in that representation. A separate evaluation starting from raw text would be needed to measure how frequently the toolkit forms the same names correctly and what happens to recognition when it does not.

The parsing headline also comes with a grammatical-tag condition. The highest LAS uses gold grammatical categories, and the automatic-tag rows show lower scores for either entity-feature setting. A use case in which the toolkit supplies its own grammatical tags is better described by those automatic-tag rows, with reference segmentation still understood. Because the systems in the comparison rank differently by LAS and UAS, a general statement about being the most accurate parser needs to specify the metric. The label-and-head result is the one on which the authors’ lead rests.

The comparison with older parsers uses a common VnDT setup and results drawn from prior work, while the ablation is an experiment within the toolkit’s own parser. These are different strengths of evidence. The former supports a benchmark ranking and the latter shows the effect of removing a particular feature group in the reported configurations. The paper gives point results without uncertainty estimates for these differences. Close LAS figures establish the ordering of the reported runs, while the stability of small gaps across repeated training and evaluation remains open.

The entity comparison has similar boundaries. Gold segmentation is shared, while the grammatical information and the architecture differ across the rows. The recognizers use a common evaluation target, which makes the scores comparable as task results. A causal conclusion about all feature-based or all recurrent approaches would need stronger controls over the resources and implementations involved. The character comparisons and the parser’s feature removal offer more direct evidence within their respective architectures. The side-by-side ranking is most informative as an assessment of the tested systems.

The speed figures come from one reported machine and cover particular stages or configurations. The authors include tagging in the toolkit’s recognition timing and list speeds for selected dependency rows. The recognition timing omits results for the POS-augmented recurrent variants, and several parsing baselines have no reported speed. The paper therefore establishes throughput comparisons where the timing values are present. It leaves open the total processing rate for a measured run from raw text through every annotation stage, as well as how the timings transfer to other machines. The shared unit of words per second makes the rows easy to read, provided their timing boundaries are kept in view.

The benchmarks likewise define the coverage of the quality claims. The annotated entity test provides evidence for the categories used in that task. The treebank split provides evidence for dependency prediction on the reserved VnDT sentences. The API demonstration shows how to obtain output for a sentence or longer passage. Applying the toolkit to another kind of text is supported as a software operation, while the expected quality there remains a separate empirical question. The prominent role of person names in the character analysis is especially tied to the makeup of the entity benchmark described in the paper.

What came after

Vietnamese representation and annotation

Later papers that cite VnCoreNLP take up both the original annotation tasks and work that starts from other representations of Vietnamese text. Their titles establish the tasks they pursue and the relation of those tasks to the toolkit’s scope. The citations establish a connection in the research literature. Questions about which VnCoreNLP component a later study ran, how it used the resulting annotations, or whether it measured a gain from that use require the later study’s methods and results.

PhoBERT (2020) pursues pretraining for Vietnamese. Its stated contribution concerns a representation learned before use on a particular task. That gives it a different place in a text analysis system from VnCoreNLP’s four directly readable annotation layers. For a reader tracing the problem of Vietnamese text representation, the connection is that both projects must define what form of written input their machinery consumes. PhoBERT is a later citing work on that broader problem. Its title establishes the pretraining focus, while the details of any segmentation link require its own methodological account.

PhoNLP (2021) has the most direct overlap with the downstream tasks in the VnCoreNLP paper. It brings grammatical tagging, entity recognition, and dependency parsing into a joint multitask approach. Joint learning means that the tasks participate in a common learning setup. VnCoreNLP arranges the tasks as successive components, with one component’s predictions available to the next. PhoNLP therefore revisits the question of how to combine these annotations at the level of learning, where the original toolkit chiefly combines them through its runtime pipeline. The overlap is in the outputs the two works address. The change named by the later work is the coupling of the tasks.

The VLSP shared task on Universal Dependencies for Vietnamese (2020) continues the work of evaluating Vietnamese dependency analysis. Its stated focus is parsing under Universal Dependencies, the annotation framework named by the shared task. VnCoreNLP’s dependency figures concern the VnDT split and its labels, so a reader following the later evaluation should pay attention to the annotations and test conditions of that task. The citation connects studies of Vietnamese parsing across evaluation settings. It leaves the participation or baseline status of the original toolkit to the shared task’s account.

KLPT (2020) brings the toolkit question to Kurdish. The parallel established by its title is the effort to make language processing functions available as a named package for a particular language. VnCoreNLP’s contribution on the Vietnamese side was to decide on compatible components, package them together, and report results on resources for that language. KLPT’s citation places that work in a wider conversation about language-specific toolkits. The later work’s own technical account would be needed to trace any particular architectural borrowing.

From sentence annotations to other tasks

The Vietnamese Text-to-SQL pilot study (2020) addresses semantic parsing for Vietnamese. Text-to-SQL aims to recover a database query corresponding to a request expressed in text. Its target is therefore a representation that can express a question over a database. VnCoreNLP supplies categories and grammatical links over words, outputs that a semantic parsing study can situate among earlier forms of text analysis. The later paper’s stated task explains why it belongs to the same research setting, while the form of any preprocessing or features drawn from the toolkit is left to its own methods.

ViNLI (2022) presents a Vietnamese corpus for open-domain natural language inference. In that task, the object of study is a relation in meaning between texts. The resource therefore extends the kinds of annotated Vietnamese tasks represented in the citing literature. The benchmarks in VnCoreNLP’s experiments evaluate word boundaries, categories, typed spans, and grammatical connections. ViNLI supplies data for a different target of evaluation. It illustrates how the resource-building context described in the original paper broadens from foundational annotation tasks to judgments involving meaning across texts.

Complex Word Identification in Vietnamese (2022) studies the identification of difficult words as a step towards Vietnamese text simplification. It shares with the original paper a concern for what counts as the word under analysis. VnCoreNLP’s segmenter defines that unit for grammatical tags and dependencies. A word identification task applies another decision to that level of representation, asking which units may pose difficulty. The task overlap makes the paper pertinent to the later study, while the citation alone leaves the exact procedure for defining or segmenting those units open.

ViHOS (2023) studies hate speech span detection in Vietnamese. Its stated task concerns finding the extent of a specific kind of expression in text. The connection to entity recognition is at the level of span boundaries. VnCoreNLP’s example labels the position at which an entity starts and the positions through which it continues. ViHOS applies span detection to a different class of content and a different annotation purpose. Its title says what spans the later study targets. The role of any word or entity annotations in that process requires its own method description.

Coreference Resolution for Vietnamese Narrative Texts (2024) pursues coreference resolution, the task of deciding whether expressions refer to the same entity. That objective extends beyond the labeling of individual named mentions. VnCoreNLP’s person and organization tags can describe what kind of mention is present at a position. Coreference concerns relations among mentions, including cases where expressions have different forms. The later work’s stated domain of narrative texts points to a setting in which those relations matter across a sequence of sentences.

The citing work on Multi-stage Information Retrieval for Vietnamese Legal Texts (2022) studies information retrieval in a legal collection. Its named contribution is a staged search process. The stages in VnCoreNLP build annotations on a text, while the stages in the retrieval paper serve the goal of finding relevant material. The connection is one of scope in the literature. Vietnamese text analysis supplies possible inputs to search, and the later work addresses the retrieval problem itself within a particular domain.

VLQA (2025) presents a Vietnamese dataset for legal question answering. Its stated contribution is a resource that supports evaluating answers to legal questions. It joins the retrieval work in showing the range of legal text tasks that cite the toolkit. The evidence from the original paper remains attached to its entity and treebank benchmarks. The later legal dataset supplies a setting in which the evaluation target is an answer to a question and where the value of any intermediate annotation is a separate empirical matter.

FreeTxt-Vi (2026) returns to the idea of a benchmarked toolkit. Its title describes Vietnamese and English coverage and names segmentation, sentiment analysis, and summarization. Segmentation is the point of direct task overlap with VnCoreNLP. Sentiment analysis and summarization give the newer toolkit a different range of outputs. The connection is therefore both an overlapping text preparation task and a shared software objective. Each work packages several operations, and each names empirical evaluation as part of what supports the toolkit.

The closest continuations address how Vietnamese annotations are learned together, how dependency parsing is evaluated, and how a new toolkit chooses the operations to offer. The broader citing works pursue span detection, links among mentions, semantic interpretation, retrieval, and question answering. Across those settings, VnCoreNLP provides a published account of how Vietnamese word units, grammatical tags, named spans, and dependencies can fit into one processing sequence. Its benchmark conditions say where the original evidence applies, while the later papers identify the further tasks for which Vietnamese text analysis became part of the research context.

Cite

Cite as Thanh Vu, Dat Quoc Nguyen, Dai Quoc Nguyen, Mark Dras and Mark Johnson. 2018. VnCoreNLP: A Vietnamese Natural Language Processing Toolkit. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/n18-5012

@inproceedings{vu2018vncorenlp,
  title = {{VnCoreNLP: A Vietnamese Natural Language Processing Toolkit}},
  author = {Thanh Vu, Dat Quoc Nguyen, Dai Quoc Nguyen, Mark Dras and Mark Johnson},
  booktitle = {Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations},
  year = {2018},
  doi = {10.18653/v1/n18-5012},
  url = {https://doi.org/10.18653/v1/n18-5012}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/vu-2018-vncorenlp-vietnamese-natural-language-processing/