首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对所有对应的功能使用相同的功能值

对所有对应的功能使用相同的功能值
EN

Stack Overflow用户
提问于 2016-07-27 13:08:09
回答 1查看 50关注 0票数 1

我已经尝试将句子设置为每个Me_UnitSpacing的特征。但是对于所有Me_UnitSpacing的出现,我都得到了相同的句子值

示例代码:

代码语言:javascript
复制
DECLARE LOWERCAMELCASE,UPPERCAMELCASE;
DECLARE ME_UNITSPACING(STRING sentence, STRING replace,STRING description);
Document{-> RETAINTYPE(SPACE)};
SW CW{->MARK(LOWERCAMELCASE,1,2)};
CW CW{->MARK(UPPERCAMELCASE,1,2)};
Document{-> RETAINTYPE};
LOWERCAMELCASE{REGEXP("mmHg")->MARK(ME_UNITSPACING)};
UPPERCAMELCASE{REGEXP("MmHg")->MARK(ME_UNITSPACING)};
W{REGEXP("Mmhg",true)->MARK(ME_UNITSPACING)};

DECLARE UnitspacingSENTENCE;
SENTENCE{CONTAINS(ME_UNITSPACING)->UnitspacingSENTENCE};
STRING unitspacingsent;
UnitspacingSENTENCE{->MATCHEDTEXT(unitspacingsent)};
ME_UNITSPACING{->ME_UNITSPACING.sentence=unitspacingsent};

示例输入:

代码语言:javascript
复制
 A number of psychological and  mmHg psychiatric correlates have been found                     
 implicated in the onset and/or repetition of NSSI behavior. Nock et al. 14      
 reported 9 k that more than half of the clinical adolescents they studied 
 met the DSM-IV criteria for an internalizing disorder, an externalizing    
 disorder, or a substance-related disorder, with a prevalence  mmHg  rate of 
 psychiatric pathologies estimated to be as high as 87%. In a large  
 community-based sample of 12,068 adolescents from 11 countries, Brunner et  
 al. (2014) found significant associations mmHg with symptoms of depression    
 and anxiety in adolescents who engaged in self-harming behavior 6, and they   
 emphasized that self-injury is strongly indicative of psychological   
 problems that require professional attention. Their results are consistent    
 with previous reports of a significantly higher rate of depressive and   
 anxious symptoms in self-injurers.5,15,16,17,18,19 The onset of NSSI   
 behavior in teenagers with depression is mainly attributable to the    
 function of NSSI as a way to seek relief from the depressive symptoms. 20  
 The literature generally stresses the broad variety of psychiatric problems  
 seen in mmHg  teenagers with history of NSSI. Cluster B personality   
 disorders are often identified, especially in self-cutting adolescent  
 females, and so are eating disorders; approximately one in three  
 adolescents with eating disorders are also self-injurers, the NSSI 
 frequently coinciding with or following the eating disorder 21, 22.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-28 11:34:11

代码语言:javascript
复制
DECLARE LOWERCAMELCASE,UPPERCAMELCASE;
DECLARE ME_UNITSPACING(STRING sentence, STRING replace,STRING description);
Document{-> RETAINTYPE(SPACE)};
SW CW{->MARK(LOWERCAMELCASE,1,2)};
CW CW{->MARK(UPPERCAMELCASE,1,2)};
Document{-> RETAINTYPE};
LOWERCAMELCASE{REGEXP("mmHg")->MARK(ME_UNITSPACING)};
UPPERCAMELCASE{REGEXP("MmHg")->MARK(ME_UNITSPACING)};
W{REGEXP("Mmhg",true)->MARK(ME_UNITSPACING)};

DECLARE UnitspacingSENTENCE;
SENTENCE{CONTAINS(ME_UNITSPACING)->UnitspacingSENTENCE};
BLOCK(foreach)UnitspacingSENTENCE{}
{
STRING unitspacingsent;
UnitspacingSENTENCE{->MATCHEDTEXT(unitspacingsent)};
ME_UNITSPACING{->ME_UNITSPACING.sentence=unitspacingsent};
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38604151

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档