| Conditions | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Vocabulary management functionality for Annif""" |
||
| 24 | def _create_subject_index(self, subject_corpus): |
||
| 25 | self._subjects = annif.corpus.SubjectIndex(subject_corpus) |
||
| 26 | annif.util.atomic_save(self._subjects, self.datadir, 'subjects') |
||
| 27 | |||
| 28 | @property |
||
| 29 | def subjects(self): |
||
| 30 | if self._subjects is None: |
||
| 44 |