File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change
1
+ # 1.1.1 (May 14, 2021)
2
+
3
+ ### Added
4
+ - Init embedding with seed during training ([ #27 ] ).
5
+
6
+ [ #27 ] : https://github.com/Synerise/cleora/pull/27
7
+
8
+
1
9
# 1.1.0 (December 23, 2020)
2
10
3
11
### Changed
Original file line number Diff line number Diff line change 1
1
#[ derive( Debug ) ]
2
2
pub enum FileType {
3
- JSON ,
4
- TSV ,
3
+ Json ,
4
+ Tsv ,
5
5
}
6
6
7
7
#[ derive( Debug ) ]
@@ -85,7 +85,7 @@ impl Configuration {
85
85
prepend_field : true ,
86
86
log_every_n : 1000 ,
87
87
in_memory_embedding_calculation : true ,
88
- file_type : FileType :: TSV ,
88
+ file_type : FileType :: Tsv ,
89
89
input,
90
90
output_dir : None ,
91
91
output_format : OutputFormat :: TextFile ,
Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ fn main() {
130
130
let input = matches. value_of ( "input" ) . unwrap ( ) ;
131
131
let file_type = match matches. value_of ( "file-type" ) {
132
132
Some ( type_name) => match type_name {
133
- "tsv" => configuration:: FileType :: TSV ,
134
- "json" => configuration:: FileType :: JSON ,
133
+ "tsv" => configuration:: FileType :: Tsv ,
134
+ "json" => configuration:: FileType :: Json ,
135
135
_ => panic ! ( "Invalid file type {}" , type_name) ,
136
136
} ,
137
- None => configuration:: FileType :: TSV ,
137
+ None => configuration:: FileType :: Tsv ,
138
138
} ;
139
139
let output_dir = matches. value_of ( "output-dir" ) . map ( |s| s. to_string ( ) ) ;
140
140
// try to create output directory for files with embeddings
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ pub fn build_graphs(
48
48
} ) ;
49
49
50
50
match & config. file_type {
51
- FileType :: JSON => {
51
+ FileType :: Json => {
52
52
let mut parser = dom:: Parser :: default ( ) ;
53
53
read_file ( config, |line| {
54
54
let row = parse_json_line ( line, & mut parser, & config. columns ) ;
55
55
entity_processor. process_row ( & row) ;
56
56
} ) ;
57
57
}
58
- FileType :: TSV => {
58
+ FileType :: Tsv => {
59
59
read_file ( config, |line| {
60
60
let row = parse_tsv_line ( line) ;
61
61
entity_processor. process_row ( & row) ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ fn prepare_config() -> Configuration {
88
88
log_every_n : 10000 ,
89
89
in_memory_embedding_calculation : true ,
90
90
input : "files/samples/edgelist_1.tsv" . to_string ( ) ,
91
- file_type : FileType :: TSV ,
91
+ file_type : FileType :: Tsv ,
92
92
output_format : OutputFormat :: TextFile ,
93
93
output_dir : None ,
94
94
relation_name : "r1" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments