Skip to content

Commit

Permalink
代码重构、添加双语字幕多国语言识别、添加设置面板
Browse files Browse the repository at this point in the history
  • Loading branch information
JuchiaLu committed Jun 30, 2023
1 parent 7ffe86f commit b5af8cb
Show file tree
Hide file tree
Showing 78 changed files with 2,418 additions and 654 deletions.
25 changes: 25 additions & 0 deletions LanguageDetection/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2014 Pēteris Ņikiforovs
// Copyright 2020 Samhammer AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(false)]

[assembly: InternalsVisibleTo("LanguageDetection.Tests")]
138 changes: 138 additions & 0 deletions LanguageDetection/LanguageDetection.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>2.0.0</Version>
<PackageId>Samhammer.LanguageDetection</PackageId>
<Authors>Samhammer AG</Authors>
<Company>Samhammer AG</Company>
<Summary>Detect the language of a text using naive a Bayesian filter with generated language profiles from Wikipedia abstract xml, 99% over precision for 53 languages. Original author: Nakatani Shuyo.</Summary>
<Description>Detect the language of a text using naive a Bayesian filter with generated language profiles from Wikipedia abstract xml, 99% over precision for 53 languages. Original author: Nakatani Shuyo.</Description>
<Copyright>Copyright 2020 Samhammer AG</Copyright>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/SamhammerAG/language-detection</PackageProjectUrl>
<RepositoryUrl>https://github.com/SamhammerAG/language-detection</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>nlp, language identification, language guessing, language detection, language detecting, language detector</PackageTags>
<PackageReleaseNotes>Convert all language pack codes to use 3 character ISO 639-3 codes.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
<None Remove="Profiles\afr" />
<None Remove="Profiles\ara" />
<None Remove="Profiles\ben" />
<None Remove="Profiles\bul" />
<None Remove="Profiles\ces" />
<None Remove="Profiles\dan" />
<None Remove="Profiles\deu" />
<None Remove="Profiles\ell" />
<None Remove="Profiles\eng" />
<None Remove="Profiles\est" />
<None Remove="Profiles\fas" />
<None Remove="Profiles\fin" />
<None Remove="Profiles\fra" />
<None Remove="Profiles\guj" />
<None Remove="Profiles\heb" />
<None Remove="Profiles\hin" />
<None Remove="Profiles\hrv" />
<None Remove="Profiles\hun" />
<None Remove="Profiles\ind" />
<None Remove="Profiles\ita" />
<None Remove="Profiles\jpn" />
<None Remove="Profiles\kan" />
<None Remove="Profiles\kor" />
<None Remove="Profiles\lav" />
<None Remove="Profiles\lit" />
<None Remove="Profiles\mal" />
<None Remove="Profiles\mar" />
<None Remove="Profiles\mkd" />
<None Remove="Profiles\nep" />
<None Remove="Profiles\nld" />
<None Remove="Profiles\nor" />
<None Remove="Profiles\pan" />
<None Remove="Profiles\pol" />
<None Remove="Profiles\por" />
<None Remove="Profiles\ron" />
<None Remove="Profiles\rus" />
<None Remove="Profiles\slk" />
<None Remove="Profiles\slv" />
<None Remove="Profiles\som" />
<None Remove="Profiles\spa" />
<None Remove="Profiles\sqi" />
<None Remove="Profiles\swa" />
<None Remove="Profiles\swe" />
<None Remove="Profiles\tam" />
<None Remove="Profiles\tel" />
<None Remove="Profiles\tgl" />
<None Remove="Profiles\tha" />
<None Remove="Profiles\tur" />
<None Remove="Profiles\twi" />
<None Remove="Profiles\ukr" />
<None Remove="Profiles\urd" />
<None Remove="Profiles\vie" />
<None Remove="Profiles\zho" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Profiles\afr" />
<EmbeddedResource Include="Profiles\ara" />
<EmbeddedResource Include="Profiles\ben" />
<EmbeddedResource Include="Profiles\bul" />
<EmbeddedResource Include="Profiles\ces" />
<EmbeddedResource Include="Profiles\dan" />
<EmbeddedResource Include="Profiles\deu" />
<EmbeddedResource Include="Profiles\ell" />
<EmbeddedResource Include="Profiles\eng" />
<EmbeddedResource Include="Profiles\est" />
<EmbeddedResource Include="Profiles\fas" />
<EmbeddedResource Include="Profiles\fin" />
<EmbeddedResource Include="Profiles\fra" />
<EmbeddedResource Include="Profiles\guj" />
<EmbeddedResource Include="Profiles\heb" />
<EmbeddedResource Include="Profiles\hin" />
<EmbeddedResource Include="Profiles\hrv" />
<EmbeddedResource Include="Profiles\hun" />
<EmbeddedResource Include="Profiles\ind" />
<EmbeddedResource Include="Profiles\ita" />
<EmbeddedResource Include="Profiles\jpn" />
<EmbeddedResource Include="Profiles\kan" />
<EmbeddedResource Include="Profiles\kor" />
<EmbeddedResource Include="Profiles\lav" />
<EmbeddedResource Include="Profiles\lit" />
<EmbeddedResource Include="Profiles\mal" />
<EmbeddedResource Include="Profiles\mar" />
<EmbeddedResource Include="Profiles\mkd" />
<EmbeddedResource Include="Profiles\nep" />
<EmbeddedResource Include="Profiles\nld" />
<EmbeddedResource Include="Profiles\nor" />
<EmbeddedResource Include="Profiles\pan" />
<EmbeddedResource Include="Profiles\pol" />
<EmbeddedResource Include="Profiles\por" />
<EmbeddedResource Include="Profiles\ron" />
<EmbeddedResource Include="Profiles\rus" />
<EmbeddedResource Include="Profiles\slk" />
<EmbeddedResource Include="Profiles\slv" />
<EmbeddedResource Include="Profiles\som" />
<EmbeddedResource Include="Profiles\spa" />
<EmbeddedResource Include="Profiles\sqi" />
<EmbeddedResource Include="Profiles\swa" />
<EmbeddedResource Include="Profiles\swe" />
<EmbeddedResource Include="Profiles\tam" />
<EmbeddedResource Include="Profiles\tel" />
<EmbeddedResource Include="Profiles\tgl" />
<EmbeddedResource Include="Profiles\tha" />
<EmbeddedResource Include="Profiles\tur" />
<EmbeddedResource Include="Profiles\twi" />
<EmbeddedResource Include="Profiles\ukr" />
<EmbeddedResource Include="Profiles\urd" />
<EmbeddedResource Include="Profiles\vie" />
<EmbeddedResource Include="Profiles\zho" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
</ItemGroup>

</Project>
Loading

0 comments on commit b5af8cb

Please sign in to comment.