Skip to content

Commit

Permalink
fix field visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fergusq committed Feb 27, 2019
1 parent b047e21 commit 8b0946d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "conllu-rs"
version = "0.2.0"
version = "0.2.1"
authors = ["Iikka Hauhio <[email protected]>"]
edition = "2018"

Expand Down
20 changes: 10 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ use std::fmt::Debug;

#[derive(Debug, Clone)]
pub struct Word {
id: usize,
form: String,
lemma: String,
upos: String,
xpos: String,
feats: HashMap<String, String>,
head: usize,
deprel: String,
deps: HashMap<usize, String>,
misc: HashMap<String, String>
pub id: usize,
pub form: String,
pub lemma: String,
pub upos: String,
pub xpos: String,
pub feats: HashMap<String, String>,
pub head: usize,
pub deprel: String,
pub deps: HashMap<usize, String>,
pub misc: HashMap<String, String>
}

pub fn parse_conllu(lines: impl Iterator<Item=String>) -> Vec<Vec<Word>> {
Expand Down

0 comments on commit 8b0946d

Please sign in to comment.