本文整理了Java中de.tudarmstadt.ukp.clarin.webanno.model.Project.setId()
方法的一些代码示例,展示了Project.setId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.setId()
方法的具体详情如下:
包路径:de.tudarmstadt.ukp.clarin.webanno.model.Project
类名称:Project
方法名:setId
暂无
代码示例来源:origin: webanno/webanno
@Before
public void setUp() throws Exception
{
initMocks(this);
project = new Project();
project.setId(1l);
project.setName("Test Project");
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);
workFolder = tempFolder.newFolder();
when(annotationService.listAnnotationLayer(any())).thenReturn(layers());
sut = new LayerExporter(annotationService);
}
代码示例来源:origin: webanno/webanno
private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId)
{
Project project = new Project();
project.setId(aProjectId);
SourceDocument doc = new SourceDocument();
doc.setProject(project);
doc.setId(aDocumentId);
return doc;
}
}
代码示例来源:origin: webanno/webanno
private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId)
{
Project project = new Project();
project.setId(aProjectId);
SourceDocument doc = new SourceDocument();
doc.setProject(project);
doc.setId(aDocumentId);
return doc;
}
}
代码示例来源:origin: webanno/webanno
private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId, String aDocName)
{
Project project = new Project();
project.setId(aProjectId);
SourceDocument doc = new SourceDocument();
doc.setProject(project);
doc.setId(aDocumentId);
doc.setName(aDocName);
return doc;
}
代码示例来源:origin: webanno/webanno
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);
代码示例来源:origin: webanno/webanno
@Before
public void setup() throws Exception
{
if (jcas == null) {
jcas = JCasFactory.createJCas();
}
else {
jcas.reset();
}
project = new Project();
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);
neLayer = new AnnotationLayer(NamedEntity.class.getName(), "NE", SPAN_TYPE, project, true,
TOKENS);
neLayer.setId(1l);
featureSupportRegistry = new FeatureSupportRegistryImpl(asList());
}
代码示例来源:origin: webanno/webanno
project.setId(1l);
代码示例来源:origin: webanno/webanno
@Before
public void setup() throws Exception
{
if (jcas == null) {
jcas = JCasFactory.createJCas();
}
else {
jcas.reset();
}
username = "user";
project = new Project();
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);
document = new SourceDocument();
document.setId(1l);
document.setProject(project);
neLayer = new AnnotationLayer(NamedEntity.class.getName(), "NE", SPAN_TYPE, project, true,
TOKENS);
neLayer.setId(1l);
featureSupportRegistry = new FeatureSupportRegistryImpl(asList());
behaviors = asList(new SpanStackingBehavior(), new SpanCrossSentenceBehavior(),
new SpanAnchoringModeBehavior());
}
代码示例来源:origin: webanno/webanno
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);
代码示例来源:origin: webanno/webanno
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);
内容来源于网络,如有侵权,请联系作者删除!