@@ -22,6 +22,7 @@ use crate::{EncodingProb, SentenceDecoder, SentenceEncoder};
22
22
const ROOT_POS : & str = "ROOT" ;
23
23
24
24
/// Part-of-speech layer.
25
+ #[ allow( clippy:: upper_case_acronyms) ]
25
26
#[ serde( rename_all = "lowercase" ) ]
26
27
#[ derive( Clone , Copy , Debug , Deserialize , Eq , PartialEq , Serialize ) ]
27
28
pub enum POSLayer {
@@ -47,6 +48,7 @@ impl POSLayer {
47
48
/// in terms of part-of-speech tags. For example, a position of
48
49
/// *-2* with the pos *noun* means that the head is the second
49
50
/// preceding noun.
51
+ #[ allow( clippy:: upper_case_acronyms) ]
50
52
#[ derive( Clone , Debug , Deserialize , Eq , Hash , PartialEq , Serialize ) ]
51
53
pub struct RelativePOS {
52
54
pos : String ,
@@ -74,6 +76,7 @@ impl ToString for DependencyEncoding<RelativePOS> {
74
76
/// This encoder encodes dependency relations as token labels. The
75
77
/// dependency relation is encoded as-is. The position of the head
76
78
/// is encoded relative to the (dependent) token by part-of-speech.
79
+ #[ allow( clippy:: upper_case_acronyms) ]
77
80
#[ derive( Clone , Deserialize , Eq , PartialEq , Serialize ) ]
78
81
pub struct RelativePOSEncoder {
79
82
pos_layer : POSLayer ,
0 commit comments