nlpmed_portal.nlp.forms module¶
- class nlpmed_portal.nlp.forms.MultilineJSONListWidget[source]¶
Bases:
Textarea- value_from_datadict(data, files, name)[source]¶
Given a dictionary of data and this widget’s name, return the value of this widget or None if it’s not provided.
- property media¶
- class nlpmed_portal.nlp.forms.BaseComponentForm[source]¶
Bases:
ModelForm- get_initial_for_field(field, field_name)[source]¶
Return initial data for field on form. Use initial data from the form or the field, in that order. Evaluate callable values.
- clean()[source]¶
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
- base_fields = {}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.EncodingFixerForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
EncodingFixer
- fields = ['status']¶
- widgets = {'status': <django.forms.widgets.Select object>}¶
- base_fields = {'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.PatternReplacerForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
PatternReplacer
- fields = ['status', 'pattern', 'target']¶
- widgets = {'pattern': <django.forms.widgets.TextInput object>, 'status': <django.forms.widgets.Select object>, 'target': <django.forms.widgets.TextInput object>}¶
- base_fields = {'pattern': <django.forms.fields.CharField object>, 'status': <django.forms.fields.TypedChoiceField object>, 'target': <django.forms.fields.CharField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.WordMaskerForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
WordMasker
- fields = ['status', 'words_to_mask', 'mask_char']¶
- widgets = {'mask_char': <django.forms.widgets.TextInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'mask_char': <django.forms.fields.CharField object>, 'status': <django.forms.fields.TypedChoiceField object>, 'words_to_mask': <django.forms.fields.CharField object>}¶
- declared_fields = {'words_to_mask': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.NoteFilterForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
NoteFilter
- fields = ['status', 'words_to_search']¶
- widgets = {'status': <django.forms.widgets.Select object>}¶
- base_fields = {'status': <django.forms.fields.TypedChoiceField object>, 'words_to_search': <django.forms.fields.CharField object>}¶
- declared_fields = {'words_to_search': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.SectionSplitterForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
SectionSplitter
- fields = ['status', 'delimiter']¶
- widgets = {'delimiter': <django.forms.widgets.TextInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'delimiter': <django.forms.fields.CharField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.SectionFilterForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
SectionFilter
- fields = ['status', 'section_inc_list', 'section_exc_list', 'fallback']¶
- widgets = {'fallback': <django.forms.widgets.CheckboxInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'fallback': <django.forms.fields.BooleanField object>, 'section_exc_list': <django.forms.fields.CharField object>, 'section_inc_list': <django.forms.fields.CharField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {'section_exc_list': <django.forms.fields.CharField object>, 'section_inc_list': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.SentenceSegmenterForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
SentenceSegmenter
- fields = ['status', 'model_name', 'batch_size']¶
- widgets = {'batch_size': <django.forms.widgets.NumberInput object>, 'model_name': <django.forms.widgets.Select object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'batch_size': <django.forms.fields.IntegerField object>, 'model_name': <django.forms.fields.TypedChoiceField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.DuplicateCheckerForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
DuplicateChecker
- fields = ['status', 'num_perm', 'sim_threshold', 'length_threshold']¶
- widgets = {'length_threshold': <django.forms.widgets.NumberInput object>, 'num_perm': <django.forms.widgets.NumberInput object>, 'sim_threshold': <django.forms.widgets.NumberInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'length_threshold': <django.forms.fields.IntegerField object>, 'num_perm': <django.forms.fields.IntegerField object>, 'sim_threshold': <django.forms.fields.FloatField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.SentenceFilterForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
SentenceFilter
- fields = ['status', 'words_to_search']¶
- widgets = {'status': <django.forms.widgets.Select object>}¶
- base_fields = {'status': <django.forms.fields.TypedChoiceField object>, 'words_to_search': <django.forms.fields.CharField object>}¶
- declared_fields = {'words_to_search': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.SentenceExpanderForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
SentenceExpander
- fields = ['status', 'length_threshold']¶
- widgets = {'length_threshold': <django.forms.widgets.NumberInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'length_threshold': <django.forms.fields.IntegerField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.JoinerForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- fields = ['status', 'sentence_delimiter', 'section_delimiter']¶
- widgets = {'section_delimiter': <django.forms.widgets.TextInput object>, 'sentence_delimiter': <django.forms.widgets.TextInput object>, 'status': <django.forms.widgets.Select object>}¶
- base_fields = {'section_delimiter': <django.forms.fields.CharField object>, 'sentence_delimiter': <django.forms.fields.CharField object>, 'status': <django.forms.fields.TypedChoiceField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.MLInferenceForm[source]¶
Bases:
BaseComponentForm- class Meta[source]¶
Bases:
object- model¶
alias of
MLInference
- fields = ['status', 'model_name', 'use_preped_text']¶
- widgets = {'model_name': <django.forms.widgets.Select object>, 'status': <django.forms.widgets.Select object>, 'use_preped_text': <django.forms.widgets.CheckboxInput object>}¶
- base_fields = {'model_name': <django.forms.fields.TypedChoiceField object>, 'status': <django.forms.fields.TypedChoiceField object>, 'use_preped_text': <django.forms.fields.BooleanField object>}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class nlpmed_portal.nlp.forms.NLPForm[source]¶
Bases:
ModelForm- class Meta[source]¶
Bases:
object- model¶
alias of
NLPSetting
- fields = ['input_text', 'debug']¶
- widgets = {'debug': <django.forms.widgets.CheckboxInput object>}¶
- base_fields = {'debug': <django.forms.fields.BooleanField object>, 'input_text': <django.forms.fields.CharField object>}¶
- declared_fields = {'input_text': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.