Ejemplo n.º 1
0
 public static void Initialize()
 {
     GlobalMeta = new MetaDefin();
     GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_TERMIN, "Термин", 1, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_TERMIN_ADD, "Дополнение термина", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_VALUE, "Значение", 1, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_MISC, "Мелочь", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_DECREE, "Ссылка на НПА", 0, 0);
     Pullenti.Ner.Metadata.Feature fi = GlobalMeta.AddFeature(Pullenti.Ner.Definition.DefinitionReferent.ATTR_KIND, "Тип", 1, 1);
     fi.AddValue(Pullenti.Ner.Definition.DefinitionKind.Assertation.ToString(), "Утверждение", null, null);
     fi.AddValue(Pullenti.Ner.Definition.DefinitionKind.Definition.ToString(), "Определение", null, null);
     fi.AddValue(Pullenti.Ner.Definition.DefinitionKind.Negation.ToString(), "Отрицание", null, null);
 }
Ejemplo n.º 2
0
 public static void Initialize()
 {
     GlobalMeta = new MetaPerson();
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_IDENTITY, "Идентификация", 0, 0);
     Pullenti.Ner.Metadata.Feature sex = GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_SEX, "Пол", 0, 0);
     sex.AddValue(ATTR_SEXMALE, "мужской", null, null);
     sex.AddValue(ATTR_SEXFEMALE, "женский", null, null);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_LASTNAME, "Фамилия", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_FIRSTNAME, "Имя", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_MIDDLENAME, "Отчество", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_NICKNAME, "Псевдоним", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_ATTR, "Свойство", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_AGE, "Возраст", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_BORN, "Родился", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_DIE, "Умер", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_CONTACT, "Контактные данные", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Person.PersonReferent.ATTR_IDDOC, "Удостоверение личности", 0, 0).ShowAsParent = true;
     GlobalMeta.AddFeature(Pullenti.Ner.Referent.ATTR_GENERAL, "Обобщающая персона", 0, 1);
 }
Ejemplo n.º 3
0
 public static void Initialize()
 {
     GlobalMeta = new MetaDecreeChangeValue();
     Pullenti.Ner.Metadata.Feature fi = GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeValueReferent.ATTR_KIND, "Тип", 1, 1);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Text.ToString(), "Текст", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Words.ToString(), "Слова", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.RobustWords.ToString(), "Слова (неточно)", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Numbers.ToString(), "Цифры", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Sequence.ToString(), "Предложение", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Footnote.ToString(), "Сноска", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeValueKind.Block.ToString(), "Блок", null, null);
     KindFeature = fi;
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeValueReferent.ATTR_VALUE, "Значение", 1, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeValueReferent.ATTR_NUMBER, "Номер", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeValueReferent.ATTR_NEWITEM, "Новый структурный элемент", 0, 0);
 }
Ejemplo n.º 4
0
 public static void Initialize()
 {
     GlobalMeta = new MetaDecreeChange();
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_OWNER, "Структурный элемент", 1, 0);
     Pullenti.Ner.Metadata.Feature fi = GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_KIND, "Тип", 1, 1);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Append.ToString(), "Дополнить", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Expire.ToString(), "Утратить силу", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.New.ToString(), "В редакции", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Exchange.ToString(), "Заменить", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Remove.ToString(), "Исключить", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Consider.ToString(), "Считать", null, null);
     fi.AddValue(Pullenti.Ner.Decree.DecreeChangeKind.Container.ToString(), "Внести изменение", null, null);
     KindFeature = fi;
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_CHILD, "Дочернее изменение", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_VALUE, "Значение", 0, 1).ShowAsParent = true;
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_PARAM, "Параметр", 0, 1).ShowAsParent = true;
     GlobalMeta.AddFeature(Pullenti.Ner.Decree.DecreeChangeReferent.ATTR_MISC, "Разное", 0, 0);
 }
Ejemplo n.º 5
0
 public static void Initialize()
 {
     GlobalMeta = new MetaAddress();
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_STREET, "Улица", 0, 2);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_HOUSE, "Дом", 0, 1);
     GlobalMeta.HouseTypeFeature = GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_HOUSETYPE, "Тип дома", 0, 1);
     GlobalMeta.HouseTypeFeature.AddValue(Pullenti.Ner.Address.AddressHouseType.Estate.ToString(), "Владение", null, null);
     GlobalMeta.HouseTypeFeature.AddValue(Pullenti.Ner.Address.AddressHouseType.House.ToString(), "Дом", null, null);
     GlobalMeta.HouseTypeFeature.AddValue(Pullenti.Ner.Address.AddressHouseType.HouseEstate.ToString(), "Домовладение", null, null);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_BUILDING, "Строение", 0, 1);
     GlobalMeta.BuildingTypeFeature = GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_BUILDINGTYPE, "Тип строения", 0, 1);
     GlobalMeta.BuildingTypeFeature.AddValue(Pullenti.Ner.Address.AddressBuildingType.Building.ToString(), "Строение", null, null);
     GlobalMeta.BuildingTypeFeature.AddValue(Pullenti.Ner.Address.AddressBuildingType.Construction.ToString(), "Сооружение", null, null);
     GlobalMeta.BuildingTypeFeature.AddValue(Pullenti.Ner.Address.AddressBuildingType.Liter.ToString(), "Литера", null, null);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_CORPUS, "Корпус", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_PORCH, "Подъезд", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_FLOOR, "Этаж", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_FLAT, "Квартира", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_CORPUSORFLAT, "Корпус или квартира", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_OFFICE, "Офис", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_PLOT, "Участок", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_BLOCK, "Блок", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_BOX, "Бокс", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_KILOMETER, "Километр", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_GEO, "Город\\Регион\\Страна", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_ZIP, "Индекс", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_POSTOFFICEBOX, "Абоненский ящик", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_CSP, "ГСП", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_METRO, "Метро", 0, 1);
     Pullenti.Ner.Metadata.Feature detail = GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_DETAIL, "Дополнительный указатель", 0, 1);
     GlobalMeta.DetailFeature = detail;
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.Cross.ToString(), "На пересечении", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.Near.ToString(), "Вблизи", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.Hostel.ToString(), "Общежитие", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.North.ToString(), "Севернее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.South.ToString(), "Южнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.East.ToString(), "Восточнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.West.ToString(), "Западнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.NorthEast.ToString(), "Северо-восточнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.NorthWest.ToString(), "Северо-западнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.SouthEast.ToString(), "Юго-восточнее", null, null);
     detail.AddValue(Pullenti.Ner.Address.AddressDetailType.SouthWest.ToString(), "Юго-западнее", null, null);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_MISC, "Разное", 0, 0);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_DETAILPARAM, "Параметр детализации", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_FIAS, "Объект ФИАС", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Address.AddressReferent.ATTR_BTI, "Объект БТИ", 0, 1);
 }
Ejemplo n.º 6
0
 public static void Initialize()
 {
     GlobalMeta             = new MetaInstrumentBlock();
     GlobalMeta.KindFeature = GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_KIND, "Класс", 0, 1);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Undefined.ToString(), "Неизвестный фрагмент", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Document.ToString(), "Документ", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.InternalDocument.ToString(), "Внутренний документ", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Appendix.ToString(), "Приложение", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Content.ToString(), "Содержимое", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Head.ToString(), "Заголовочная часть", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Tail.ToString(), "Хвостовая часть", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Name.ToString(), "Название", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Number.ToString(), "Номер", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.CaseNumber.ToString(), "Номер дела", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.CaseInfo.ToString(), "Информация дела", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Editions.ToString(), "Редакции", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Approved.ToString(), "Одобрен", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Organization.ToString(), "Организация", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.DocPart.ToString(), "Часть документа", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Place.ToString(), "Место", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Signer.ToString(), "Подписант", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Subitem.ToString(), "Подпункт", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Indention.ToString(), "Абзац", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Chapter.ToString(), "Глава", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Paragraph.ToString(), "Параграф", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Subparagraph.ToString(), "Подпараграф", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.ListHead.ToString(), "Заголовок списка", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.ListItem.ToString(), "Элемент списка", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Notice.ToString(), "Примечание", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Typ.ToString(), "Тип", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Section.ToString(), "Раздел", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Subsection.ToString(), "Подраздел", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Clause.ToString(), "Статья", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.ClausePart.ToString(), "Часть", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Date.ToString(), "Дата", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Directive.ToString(), "Директива", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Index.ToString(), "Оглавление", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.IndexItem.ToString(), "Элемент оглавления", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.DocReference.ToString(), "Ссылка на документ", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Initiator.ToString(), "Инициатор", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Preamble.ToString(), "Преамбула", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Item.ToString(), "Пункт", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Keyword.ToString(), "Ключевое слово", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Comment.ToString(), "Комментарий", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Question.ToString(), "Вопрос", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Citation.ToString(), "Цитата", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Contact.ToString(), "Контакт", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.Table.ToString(), "Таблица", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.TableRow.ToString(), "Строка таблицы", null, null);
     GlobalMeta.KindFeature.AddValue(Pullenti.Ner.Instrument.InstrumentKind.TableCell.ToString(), "Ячейка таблицы", null, null);
     Pullenti.Ner.Metadata.Feature fi2 = GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_KIND, "Класс (доп.)", 0, 1);
     for (int i = 0; i < GlobalMeta.KindFeature.InnerValues.Count; i++)
     {
         fi2.AddValue(GlobalMeta.KindFeature.InnerValues[i], GlobalMeta.KindFeature.OuterValues[i], null, null);
     }
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_CHILD, "Внутренний элемент", 0, 0).ShowAsParent = true;
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_NAME, "Наименование", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_NUMBER, "Номер", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_MINNUMBER, "Минимальный номер", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_SUBNUMBER, "Подномер", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_SUB2NUMBER, "Подномер второй", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_SUB3NUMBER, "Подномер третий", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_VALUE, "Значение", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_REF, "Ссылка на объект", 0, 1);
     GlobalMeta.AddFeature(Pullenti.Ner.Instrument.InstrumentBlockReferent.ATTR_EXPIRED, "Утратил силу", 0, 1);
 }