Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
PrinsINT committed Jun 19, 2024
2 parents 058ead6 + 285eac0 commit 84a7fb4
Show file tree
Hide file tree
Showing 45 changed files with 3,723 additions and 3,594 deletions.
2 changes: 1 addition & 1 deletion client/src/components/help/DifferentTagsetsHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p>
<i>
<b>*</b> When the tagset used in the reference layer differs from the tagset of the hypothesis layer, the
information on the accuracy of the PoS tagging below is meaningless. If so, please use the PoS confusion
information on the accuracy of the PoS tagging below is meaningless. If so, please use the PoS Confusion
table to get more insight into the performance of the evaluated tagger.
</i>
</p>
Expand Down
92 changes: 46 additions & 46 deletions client/src/components/modals/VariantsModal.vue
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<template>
<GModal small :show="show" @hide="$emit('hide')" headless>
<GTable compact showHelp :columns :items="items" sortedByField="occurrences" :sortDesc="true">
<template #title>
Types of lemma <i>{{ variantsToDisplay?.lemma }}</i> and part-of-speech <i>{{ variantsToDisplay?.pos
}}</i>
</template>
<template #help>
This is an overview of all types belonging to the chosen lemma, part-of-speech pair.
</template>
</GTable>
</GModal>
</template>

<script setup lang="ts">
// Libraries & stores
import { computed } from 'vue'
// Types & API
import { Field } from '@/types/table'
import { Distribution } from '@/types/evaluation'
// Components
import { GModal, GTable } from '@/components'

// Custom types
type DistEntry = { variant: string, occurrences: number }

// Props
const props = defineProps<{
show: boolean
variantsToDisplay: Distribution
}>();

// Fields
const columns: Field[] = [
{ key: 'variant', label: 'Type', sortOn: (x: DistEntry) => x.variant },
{ key: 'occurrences', label: 'Occurrences', sortOn: (x: DistEntry) => x.occurrences }
]
const items: DistEntry[] = computed(() => {
return Object.entries(props.variantsToDisplay.literals.literals).map(([variant, occurrences]) => ({ variant, occurrences }))
})

</script>
<style scoped>
:deep(.my-small) {
padding: 1em;
}
<template>
<GModal small :show="show" @hide="$emit('hide')" headless>
<GTable compact showHelp :columns :items="items" sortedByColumn="occurrences" :sortDesc="true">
<template #title>
Types of lemma <i>{{ variantsToDisplay?.lemma }}</i> and part-of-speech <i>{{ variantsToDisplay?.pos
}}</i>
</template>
<template #help>
This is an overview of all types belonging to the chosen lemma, part-of-speech pair.
</template>
</GTable>
</GModal>
</template>

<script setup lang="ts">
// Libraries & stores
import { computed } from 'vue'
// Types & API
import { Field } from '@/types/table'
import { Distribution } from '@/types/evaluation'
// Components
import { GModal, GTable } from '@/components'

// Custom types
type DistEntry = { variant: string, occurrences: number }

// Props
const props = defineProps<{
show: boolean
variantsToDisplay: Distribution
}>();

// Fields
const columns: Field[] = [
{ key: 'variant', label: 'Type', sortOn: (x: DistEntry) => x.variant },
{ key: 'occurrences', label: 'Occurrences', sortOn: (x: DistEntry) => x.occurrences }
]
const items: DistEntry[] = computed(() => {
return Object.entries(props.variantsToDisplay.literals.literals).map(([variant, occurrences]) => ({ variant, occurrences }))
})

</script>
<style scoped>
:deep(.my-small) {
padding: 1em;
}
</style>
Loading

0 comments on commit 84a7fb4

Please sign in to comment.