de.tudarmstadt.ukp.clarin.webanno.model.Project.setId()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(102)

本文整理了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

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);

相关文章